bitops: protect find_first_{,zero}_bit properly
authorYury Norov <yury.norov@gmail.com>
Sat, 14 Aug 2021 21:16:57 +0000 (14:16 -0700)
committerYury Norov <yury.norov@gmail.com>
Sat, 2 Oct 2021 23:13:56 +0000 (16:13 -0700)
commite825696df7165fd451b35267ba41425673ee8dcf
tree8cab628fc3489a5542549f56e56e4676530fb040
parent9904468fb0b72a59a10753a86ce121fbdd2e9b3d
bitops: protect find_first_{,zero}_bit properly

find_first_bit() and find_first_zero_bit() are not protected with
ifdefs as other functions in find.h. It causes build errors on some
platforms if CONFIG_GENERIC_FIND_FIRST_BIT is enabled.

Signed-off-by: Yury Norov <yury.norov@gmail.com>
Fixes: 2cc7b6a44ac2 ("lib: add fast path for find_first_*_bit() and find_last_bit()")
Reported-by: kernel test robot <lkp@intel.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
include/asm-generic/bitops/find.h