BCC: [email protected]
CC: [email protected]
TO: Yury Norov <[email protected]>

tree:   https://github.com/norov/linux fns
head:   585dc3f17d3cbd1636e7ff44b3908bf9c1f41797
commit: d720f1934c9d2d5fedb2f71791903bcaf6efc6ff [8/11] lib: add 
find_nth(,and,andnot)_bit()
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
config: x86_64-randconfig-m001 
(https://download.01.org/0day-ci/archive/20220918/[email protected]/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

smatch warnings:
lib/find_bit.c:140 __find_nth_bit() error: uninitialized symbol 'tmp'.
lib/find_bit.c:147 __find_nth_and_bit() error: uninitialized symbol 'tmp'.
lib/find_bit.c:154 __find_nth_andnot_bit() error: uninitialized symbol 'tmp'.

vim +/tmp +140 lib/find_bit.c

c20e4b7c3925d7 Yury Norov 2022-08-27  137  
d720f1934c9d2d Yury Norov 2022-07-10  138  unsigned long __find_nth_bit(const 
unsigned long *addr, unsigned long size, unsigned long n)
d720f1934c9d2d Yury Norov 2022-07-10  139  {
d720f1934c9d2d Yury Norov 2022-07-10 @140       return FIND_NTH_BIT(addr[idx], 
size, n);
d720f1934c9d2d Yury Norov 2022-07-10  141  }
d720f1934c9d2d Yury Norov 2022-07-10  142  EXPORT_SYMBOL(__find_nth_bit);
d720f1934c9d2d Yury Norov 2022-07-10  143  
d720f1934c9d2d Yury Norov 2022-07-10  144  unsigned long 
__find_nth_and_bit(const unsigned long *addr1, const unsigned long *addr2,
d720f1934c9d2d Yury Norov 2022-07-10  145                                
unsigned long size, unsigned long n)
d720f1934c9d2d Yury Norov 2022-07-10  146  {
d720f1934c9d2d Yury Norov 2022-07-10 @147       return FIND_NTH_BIT(addr1[idx] 
& addr2[idx], size, n);
d720f1934c9d2d Yury Norov 2022-07-10  148  }
d720f1934c9d2d Yury Norov 2022-07-10  149  EXPORT_SYMBOL(__find_nth_and_bit);
d720f1934c9d2d Yury Norov 2022-07-10  150  
d720f1934c9d2d Yury Norov 2022-07-10  151  unsigned long 
__find_nth_andnot_bit(const unsigned long *addr1, const unsigned long *addr2,
d720f1934c9d2d Yury Norov 2022-07-10  152                                
unsigned long size, unsigned long n)
d720f1934c9d2d Yury Norov 2022-07-10  153  {
d720f1934c9d2d Yury Norov 2022-07-10 @154       return FIND_NTH_BIT(addr1[idx] 
& ~addr2[idx], size, n);
d720f1934c9d2d Yury Norov 2022-07-10  155  }
d720f1934c9d2d Yury Norov 2022-07-10  156  EXPORT_SYMBOL(__find_nth_andnot_bit);
d720f1934c9d2d Yury Norov 2022-07-10  157  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to