* [conor:gpio-irq 3/8] include/linux/bits.h:43:9: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '274877890560' to '4294950912'
@ 2023-05-09 17:39 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-09 17:39 UTC (permalink / raw)
To: Conor Dooley; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux.git gpio-irq
head: e731c298e55b96e913ef1f5c9860dc5474353a55
commit: f39a859cf7fec51e695de4544786f2b0fb566e75 [3/8] irqchip: add mpfs gpio interrupt mux
config: arc-buildonly-randconfig-r005-20230509 (https://download.01.org/0day-ci/archive/20230510/202305100136.1jCqTXDE-lkp@intel.com/config)
compiler: arc-elf-gcc (GCC) 12.1.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/conor/linux.git/commit/?id=f39a859cf7fec51e695de4544786f2b0fb566e75
git remote add conor https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux.git
git fetch --no-tags conor gpio-irq
git checkout f39a859cf7fec51e695de4544786f2b0fb566e75
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/irqchip/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305100136.1jCqTXDE-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from drivers/irqchip/irq-mpfs-mux.c:10:
>> include/linux/bits.h:43:9: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '274877890560' to '4294950912' [-Woverflow]
43 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK_ULL(h, l))
| ^
drivers/irqchip/irq-mpfs-mux.c:59:9: note: in expansion of macro 'GENMASK_ULL'
59 | GENMASK_ULL(37, 14),
| ^~~~~~~~~~~
vim +43 include/linux/bits.h
295bcca84916cb Rikard Falkeborn 2020-04-06 32
295bcca84916cb Rikard Falkeborn 2020-04-06 33 #define __GENMASK(h, l) \
95b980d62d52c4 Masahiro Yamada 2019-07-16 34 (((~UL(0)) - (UL(1) << (l)) + 1) & \
95b980d62d52c4 Masahiro Yamada 2019-07-16 35 (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
295bcca84916cb Rikard Falkeborn 2020-04-06 36 #define GENMASK(h, l) \
295bcca84916cb Rikard Falkeborn 2020-04-06 37 (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
8bd9cb51daac89 Will Deacon 2018-06-19 38
295bcca84916cb Rikard Falkeborn 2020-04-06 39 #define __GENMASK_ULL(h, l) \
95b980d62d52c4 Masahiro Yamada 2019-07-16 40 (((~ULL(0)) - (ULL(1) << (l)) + 1) & \
95b980d62d52c4 Masahiro Yamada 2019-07-16 41 (~ULL(0) >> (BITS_PER_LONG_LONG - 1 - (h))))
295bcca84916cb Rikard Falkeborn 2020-04-06 42 #define GENMASK_ULL(h, l) \
295bcca84916cb Rikard Falkeborn 2020-04-06 @43 (GENMASK_INPUT_CHECK(h, l) + __GENMASK_ULL(h, l))
8bd9cb51daac89 Will Deacon 2018-06-19 44
:::::: The code at line 43 was first introduced by commit
:::::: 295bcca84916cb5079140a89fccb472bb8d1f6e2 linux/bits.h: add compile time sanity check of GENMASK inputs
:::::: TO: Rikard Falkeborn <rikard.falkeborn@gmail.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-09 17:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-09 17:39 [conor:gpio-irq 3/8] include/linux/bits.h:43:9: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '274877890560' to '4294950912' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).