include/uapi/linux/bits.h:9:19: warning: right shift count is negative
kernel test robot
build botHi Sebastian,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android16-6.12 head: 062f50e2f6f1479285e1f7a82e3b30115d4f5ab0 commit: 7aae9422d19a266194ce4db6f81bb23b686e1ed3 [3/3] BACKPORT: FROMLIST: irqchip/gic-v3-its: Prepare shadow structures for KVM host deprivilege config: arm-randconfig-2002-20261126 (https://download.01.org/0day-ci/archive/20261126/[email protected]/config) compiler: arm-linux-gnueabi-gcc (GCC) 13.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261126/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
In file included from include/linux/bits.h:7,
from include/linux/ioport.h:13,
from include/linux/acpi.h:12,
from drivers/irqchip/irq-gic-v3-its.c:7:
drivers/irqchip/irq-gic-v3-its.c: In function 'its_switch_to_shadow_locked':
>> include/uapi/linux/bits.h:9:19: warning: right shift count is negative [-Wshift-count-negative]
9 | (~_UL(0) >> (__BITS_PER_LONG - 1 - (h))))
| ^~
include/linux/bits.h:69:38: note: in expansion of macro '__GENMASK'
69 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~
drivers/irqchip/irq-gic-v3-its.c:5317:40: note: in expansion of macro 'GENMASK'
5317 | its->tables[i].val &= ~GENMASK(47, 12);
| ^~~~~~~Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for BALLOON_COMPACTION Depends on [n]: COMPACTION [=n] && MEMORY_BALLOON [=y] Selected by [y]:
- GKI_HIDDEN_MM_CONFIGS [=y]
WARNING: unmet direct dependencies detected for SND_PCM_IEC958 Depends on [n]: SOUND [=y] && SND [=n]
Selected by [y]:
- GKI_HIDDEN_SND_SOC_CONFIGS [=y]
WARNING: unmet direct dependencies detected for SND_COMPRESS_ACCEL Depends on [n]: SOUND [=y] && SND [=n]
Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y]
WARNING: unmet direct dependencies detected for SND_JACK Depends on [n]: SOUND [=y] && SND [=n]
Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y]
WARNING: unmet direct dependencies detected for SND_VMASTER Depends on [n]: SOUND [=y] && SND [=n]
Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y]
WARNING: unmet direct dependencies detected for SND_JACK_INPUT_DEV Depends on [n]: SOUND [=y] && SND [=n] && SND_JACK [=y] Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y]
WARNING: unmet direct dependencies detected for SND_PCM_ELD Depends on [n]: SOUND [=y] && SND [=n]
Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y]
WARNING: unmet direct dependencies detected for HVC_DRIVER Depends on [n]: TTY [=n]
Selected by [y]:
- GKI_HIDDEN_VIRTUAL_CONFIGS [=y]
vim +9 include/uapi/linux/bits.h
3c7a8e190bc580 Paolo Bonzini 2023-12-12 6 3c7a8e190bc580 Paolo Bonzini 2023-12-12 7 #define __GENMASK(h, l) \ 3c7a8e190bc580 Paolo Bonzini 2023-12-12 8 (((~_UL(0)) - (_UL(1) << (l)) + 1) & \
3c7a8e190bc580 Paolo Bonzini 2023-12-12 @9 (~_UL(0) >> (__BITS_PER_LONG - 1 - (h))))3c7a8e190bc580 Paolo Bonzini 2023-12-12 10
:::::: The code at line 9 was first introduced by commit
:::::: 3c7a8e190bc580813ddd9259f62971c8d2a6b5ad uapi: introduce uapi-friendly macros for GENMASK
:::::: TO: Paolo Bonzini <[email protected]>
:::::: CC: Paolo Bonzini <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki