::::::
:::::: Manual check reason: "low confidence bisect report"
:::::: Manual check reason: "low confidence static check first_new_problem:
include/linux/bits.h:9:41: warning: shift by negative count ('-1')
[-Wanalyzer-shift-count-negative]"
::::::
CC: [email protected]
BCC: [email protected]
CC: Linux Memory Management List <[email protected]>
TO: Alexander Fomichev <[email protected]>
CC: Jon Mason <[email protected]>
CC: Dave Jiang <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
master
head: ac0ba5454ca85162c08dc429fef1999e077ca976
commit: d3b4b9c2142ca288f81a373841989f592f138934 [3910/4996] ntb_perf: extend
with doorbell latency measurement
:::::: branch date: 20 hours ago
:::::: commit date: 3 days ago
config: x86_64-randconfig-c001
(https://download.01.org/0day-ci/archive/20220623/[email protected]/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=d3b4b9c2142ca288f81a373841989f592f138934
git remote add linux-next
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout d3b4b9c2142ca288f81a373841989f592f138934
# save the config file
ARCH=x86_64 KBUILD_USERCFLAGS='-fanalyzer -Wno-error'
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>
gcc-analyzer warnings: (new ones prefixed by >>)
In file included from include/linux/bitops.h:6,
from include/linux/kernel.h:22,
from drivers/ntb/test/ntb_perf.c:89:
drivers/ntb/test/ntb_perf.c: In function 'perf_clear_dbl':
>> include/linux/bits.h:9:41: warning: shift by negative count ('-1')
>> [-Wanalyzer-shift-count-negative]
9 | #define BIT_ULL(nr) (ULL(1) << (nr))
| ^~
drivers/ntb/test/ntb_perf.c:1445:36: note: in expansion of macro 'BIT_ULL'
1445 | ntb_db_set_mask(perf->ntb, BIT_ULL(data->db));
| ^~~~~~~
'perf_clear_dbl': event 1
|
|include/linux/bits.h:9:41:
| 9 | #define BIT_ULL(nr) (ULL(1) << (nr))
| | ^~
| | |
| | (1) shift by negative
amount here ('-1')
drivers/ntb/test/ntb_perf.c:1445:36: note: in expansion of macro 'BIT_ULL'
| 1445 | ntb_db_set_mask(perf->ntb, BIT_ULL(data->db));
| | ^~~~~~~
|
vim +9 include/linux/bits.h
8bd9cb51daac89 Will Deacon 2018-06-19 8
95b980d62d52c4 Masahiro Yamada 2019-07-16 @9 #define BIT_ULL(nr)
(ULL(1) << (nr))
95b980d62d52c4 Masahiro Yamada 2019-07-16 10 #define BIT_MASK(nr)
(UL(1) << ((nr) % BITS_PER_LONG))
8bd9cb51daac89 Will Deacon 2018-06-19 11 #define BIT_WORD(nr)
((nr) / BITS_PER_LONG)
95b980d62d52c4 Masahiro Yamada 2019-07-16 12 #define BIT_ULL_MASK(nr) (ULL(1)
<< ((nr) % BITS_PER_LONG_LONG))
8bd9cb51daac89 Will Deacon 2018-06-19 13 #define BIT_ULL_WORD(nr) ((nr) /
BITS_PER_LONG_LONG)
8bd9cb51daac89 Will Deacon 2018-06-19 14 #define BITS_PER_BYTE
8
8bd9cb51daac89 Will Deacon 2018-06-19 15
:::::: The code at line 9 was first introduced by commit
:::::: 95b980d62d52c4c1768ee719e8db3efe27ef52b2 linux/bits.h: make BIT(),
GENMASK(), and friends available in assembly
:::::: TO: Masahiro Yamada <[email protected]>
:::::: CC: Linus Torvalds <[email protected]>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]