]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc: Fix build failure of load_unaligned_zeropad test
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 12 Oct 2015 04:28:57 +0000 (15:28 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 13 Oct 2015 04:08:37 +0000 (15:08 +1100)
commitc57264f67aebd78f4fb2ee82dad142db41bf576d
tree14473279e495bc74e1c89c2f0ba0c6291fffd871
parentd05d5e23205e1dadd1257067c27fedc31e617481
selftests/powerpc: Fix build failure of load_unaligned_zeropad test

Commit 478de270f4c8 ("arch/powerpc: provide zero_bytemask() for
big-endian") added a call to __fls() in our word-at-a-time.h. That was
fine for the kernel build but missed the fact that we also use
word-at-a-time.h in a userspace test.

Pulling in the kernel version of __fls() gets messy, so just define our
own, it's unlikely to change often.

Fixes: 478de270f4c8 ("arch/powerpc: provide zero_bytemask() for big-endian")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/primitives/load_unaligned_zeropad.c