Buildresult: linux-next/xtensa-allmodconfig/xtensa-gcc8 built on Feb 15 2021, 21:34
kisskb
Revisions
|
Branches
|
Compilers
|
Configs
|
Build Results
|
Build Failures
|
Status:
Failed
Date/Time:
Feb 15 2021, 21:34
Duration:
0:06:09.245763
Builder:
ka4
Revision:
Add linux-next specific files for 20210215 (
52a0bcb60e40f30211cb5cbbb0f582ec4e91d896)
Target:
linux-next/xtensa-allmodconfig/xtensa-gcc8
Branch:
linux-next
Compiler:
xtensa-gcc8
(xtensa-linux-gcc.br_real (Buildroot 2016.11-git-00613-ge98b4dd) 5.4.0 / GNU ld (GNU Binutils) 2.26.1)
Config:
allmodconfig
(
download
)
Log:
Download original
Possible errors
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) drivers/cxl/mem.c:335:2: error: implicit declaration of function 'writeq' [-Werror=implicit-function-declaration] drivers/cxl/mem.c:350:15: error: implicit declaration of function 'readq' [-Werror=implicit-function-declaration] BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) include/linux/compiler_types.h:320:38: error: call to '__compiletime_assert_269' declared with attribute error: FIELD_GET: mask is zero include/linux/compiler_types.h:320:38: error: call to '__compiletime_assert_301' declared with attribute error: FIELD_GET: mask is zero cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:287: drivers/cxl/mem.o] Error 1 make[2]: *** [scripts/Makefile.build:530: drivers/cxl] Error 2 make[1]: *** [Makefile:1830: drivers] Error 2 make: *** [Makefile:185: __sub-make] Error 2
Possible warnings (77)
arch/xtensa/include/asm/cmpxchg.h:173:3: warning: value computed is not used [-Wunused-value] arch/xtensa/include/asm/cmpxchg.h:173:3: warning: value computed is not used [-Wunused-value] arch/xtensa/include/asm/cmpxchg.h:173:3: warning: value computed is not used [-Wunused-value] drivers/net/phy/phy_device.c:273:12: warning: 'mdio_bus_phy_suspend' defined but not used [-Wunused-function] drivers/net/phy/phy_device.c:293:12: warning: 'mdio_bus_phy_resume' defined but not used [-Wunused-function] drivers/input/joystick/analog.c:160:2: warning: #warning Precise timer not defined for this architecture. [-Wcpp] #warning Precise timer not defined for this architecture. arch/xtensa/include/asm/cmpxchg.h:173:3: warning: value computed is not used [-Wunused-value] drivers/net/wireless/ath/ath11k/qmi.c:1690:8: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'dma_addr_t {aka unsigned int}' [-Wformat=] drivers/gpu/drm/rockchip/cdn-dp-core.c:1124:12: warning: 'cdn_dp_resume' defined but not used [-Wunused-function] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] arch/xtensa/include/asm/cmpxchg.h:173:3: warning: value computed is not used [-Wunused-value]
Full Log
# git rev-parse -q --verify 52a0bcb60e40f30211cb5cbbb0f582ec4e91d896^{commit} 52a0bcb60e40f30211cb5cbbb0f582ec4e91d896 already have revision, skipping fetch # git checkout -q -f -B kisskb 52a0bcb60e40f30211cb5cbbb0f582ec4e91d896 # git clean -qxdf # < git log -1 # commit 52a0bcb60e40f30211cb5cbbb0f582ec4e91d896 # Author: Stephen Rothwell <sfr@canb.auug.org.au> # Date: Mon Feb 15 20:29:14 2021 +1100 # # Add linux-next specific files for 20210215 # # Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> # < /opt/cross/kisskb/br-xtensa-full-2016.08-613-ge98b4dd/bin/xtensa-linux-gcc --version # < /opt/cross/kisskb/br-xtensa-full-2016.08-613-ge98b4dd/bin/xtensa-linux-ld --version # < git log --format=%s --max-count=1 52a0bcb60e40f30211cb5cbbb0f582ec4e91d896 # < make -s -j 120 ARCH=xtensa O=/kisskb/build/linux-next_xtensa-allmodconfig_xtensa CROSS_COMPILE=/opt/cross/kisskb/br-xtensa-full-2016.08-613-ge98b4dd/bin/xtensa-linux- allmodconfig # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_SAMPLES=n # < make -s -j 120 ARCH=xtensa O=/kisskb/build/linux-next_xtensa-allmodconfig_xtensa CROSS_COMPILE=/opt/cross/kisskb/br-xtensa-full-2016.08-613-ge98b4dd/bin/xtensa-linux- help # make -s -j 120 ARCH=xtensa O=/kisskb/build/linux-next_xtensa-allmodconfig_xtensa CROSS_COMPILE=/opt/cross/kisskb/br-xtensa-full-2016.08-613-ge98b4dd/bin/xtensa-linux- olddefconfig # make -s -j 120 ARCH=xtensa O=/kisskb/build/linux-next_xtensa-allmodconfig_xtensa CROSS_COMPILE=/opt/cross/kisskb/br-xtensa-full-2016.08-613-ge98b4dd/bin/xtensa-linux- In file included from /kisskb/src/arch/xtensa/include/asm/atomic.h:19:0, from /kisskb/src/include/linux/atomic.h:7, from /kisskb/src/include/linux/page_counter.h:5, from /kisskb/src/mm/memcontrol.c:28: /kisskb/src/mm/memcontrol.c: In function 'memcg_reparent_objcgs': /kisskb/src/arch/xtensa/include/asm/cmpxchg.h:173:3: warning: value computed is not used [-Wunused-value] ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) ^ /kisskb/src/mm/memcontrol.c:336:2: note: in expansion of macro 'xchg' xchg(&objcg->memcg, parent); ^ /kisskb/src/arch/xtensa/include/asm/cmpxchg.h:173:3: warning: value computed is not used [-Wunused-value] ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) ^ /kisskb/src/mm/memcontrol.c:343:3: note: in expansion of macro 'xchg' xchg(&iter->memcg, parent); ^ In file included from /kisskb/src/arch/xtensa/include/asm/atomic.h:19:0, from /kisskb/src/include/linux/atomic.h:7, from /kisskb/src/include/asm-generic/bitops/atomic.h:5, from /kisskb/src/arch/xtensa/include/asm/bitops.h:192, from /kisskb/src/include/linux/bitops.h:32, from /kisskb/src/include/linux/kernel.h:11, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/wait.h:7, from /kisskb/src/include/linux/wait_bit.h:8, from /kisskb/src/include/linux/fs.h:6, from /kisskb/src/fs/ocfs2/file.c:13: /kisskb/src/fs/ocfs2/file.c: In function 'ocfs2_file_write_iter': /kisskb/src/arch/xtensa/include/asm/cmpxchg.h:173:3: warning: value computed is not used [-Wunused-value] ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) ^ /kisskb/src/fs/ocfs2/file.c:2421:3: note: in expansion of macro 'xchg' xchg(&iocb->ki_complete, saved_ki_complete); ^ /kisskb/src/drivers/net/phy/phy_device.c:273:12: warning: 'mdio_bus_phy_suspend' defined but not used [-Wunused-function] static int mdio_bus_phy_suspend(struct device *dev) ^ /kisskb/src/drivers/net/phy/phy_device.c:293:12: warning: 'mdio_bus_phy_resume' defined but not used [-Wunused-function] static int mdio_bus_phy_resume(struct device *dev) ^ /kisskb/src/drivers/input/joystick/analog.c:160:2: warning: #warning Precise timer not defined for this architecture. [-Wcpp] #warning Precise timer not defined for this architecture. ^ In file included from /kisskb/src/arch/xtensa/include/asm/atomic.h:19:0, from /kisskb/src/include/linux/atomic.h:7, from /kisskb/src/include/asm-generic/bitops/atomic.h:5, from /kisskb/src/arch/xtensa/include/asm/bitops.h:192, from /kisskb/src/include/linux/bitops.h:32, from /kisskb/src/include/linux/bitmap.h:8, from /kisskb/src/include/linux/ethtool.h:16, from /kisskb/src/drivers/net/ethernet/amazon/ena/ena_netdev.c:11: /kisskb/src/drivers/net/ethernet/amazon/ena/ena_netdev.c: In function 'ena_xdp_exchange_program_rx_in_range': /kisskb/src/arch/xtensa/include/asm/cmpxchg.h:173:3: warning: value computed is not used [-Wunused-value] ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) ^ /kisskb/src/drivers/net/ethernet/amazon/ena/ena_netdev.c:532:3: note: in expansion of macro 'xchg' xchg(&rx_ring->xdp_bpf_prog, prog); ^ In file included from /kisskb/src/drivers/net/wireless/ath/ath11k/qmi.c:10:0: /kisskb/src/drivers/net/wireless/ath/ath11k/qmi.c: In function 'ath11k_qmi_respond_fw_mem_request': /kisskb/src/drivers/net/wireless/ath/ath11k/qmi.c:1690:8: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'dma_addr_t {aka unsigned int}' [-Wformat=] "qmi req mem_seg[%d] 0x%llx %u %u\n", i, ^ /kisskb/src/drivers/net/wireless/ath/ath11k/debug.h:64:30: note: in definition of macro 'ath11k_dbg' __ath11k_dbg(ar, dbg_mask, fmt, ##__VA_ARGS__); \ ^ /kisskb/src/drivers/gpu/drm/rockchip/cdn-dp-core.c:1124:12: warning: 'cdn_dp_resume' defined but not used [-Wunused-function] static int cdn_dp_resume(struct device *dev) ^ In file included from <command-line>:0:0: /kisskb/src/drivers/cxl/mem.c: In function '__cxl_mem_mbox_send_cmd': /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:46:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(!__builtin_constant_p(_mask), \ ^ /kisskb/src/include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ ^ /kisskb/src/drivers/cxl/mem.c:329:14: note: in expansion of macro 'FIELD_PREP' cmd_reg |= FIELD_PREP(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:329:25: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' cmd_reg |= FIELD_PREP(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:48:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \ ^ /kisskb/src/include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ ^ /kisskb/src/drivers/cxl/mem.c:329:14: note: in expansion of macro 'FIELD_PREP' cmd_reg |= FIELD_PREP(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:329:25: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' cmd_reg |= FIELD_PREP(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ ^ /kisskb/src/include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ ^ /kisskb/src/drivers/cxl/mem.c:329:14: note: in expansion of macro 'FIELD_PREP' cmd_reg |= FIELD_PREP(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:329:25: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' cmd_reg |= FIELD_PREP(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ ^ /kisskb/src/include/linux/bitfield.h:50:19: note: in expansion of macro '__bf_shf' ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \ ^ /kisskb/src/include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ ^ /kisskb/src/drivers/cxl/mem.c:329:14: note: in expansion of macro 'FIELD_PREP' cmd_reg |= FIELD_PREP(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:329:25: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' cmd_reg |= FIELD_PREP(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:52:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG((_mask) > (typeof(_reg))~0ull, \ ^ /kisskb/src/include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ ^ /kisskb/src/drivers/cxl/mem.c:329:14: note: in expansion of macro 'FIELD_PREP' cmd_reg |= FIELD_PREP(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:329:25: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' cmd_reg |= FIELD_PREP(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ ^ /kisskb/src/drivers/cxl/mem.c:329:14: note: in expansion of macro 'FIELD_PREP' cmd_reg |= FIELD_PREP(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:329:25: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' cmd_reg |= FIELD_PREP(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:55:21: note: in expansion of macro '__bf_shf' (1ULL << __bf_shf(_mask))); \ ^ /kisskb/src/include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ ^ /kisskb/src/drivers/cxl/mem.c:329:14: note: in expansion of macro 'FIELD_PREP' cmd_reg |= FIELD_PREP(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:329:25: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' cmd_reg |= FIELD_PREP(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ ^ /kisskb/src/drivers/cxl/mem.c:329:14: note: in expansion of macro 'FIELD_PREP' cmd_reg |= FIELD_PREP(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:329:25: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' cmd_reg |= FIELD_PREP(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:55:21: note: in expansion of macro '__bf_shf' (1ULL << __bf_shf(_mask))); \ ^ /kisskb/src/include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ ^ /kisskb/src/drivers/cxl/mem.c:329:14: note: in expansion of macro 'FIELD_PREP' cmd_reg |= FIELD_PREP(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:329:25: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' cmd_reg |= FIELD_PREP(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, ^ In file included from /kisskb/src/drivers/cxl/cxl.h:7:0, from /kisskb/src/drivers/cxl/mem.c:13: /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/bitfield.h:42:38: note: in definition of macro '__bf_shf' #define __bf_shf(x) (__builtin_ffsll(x) - 1) ^ /kisskb/src/drivers/cxl/mem.c:329:14: note: in expansion of macro 'FIELD_PREP' cmd_reg |= FIELD_PREP(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:329:25: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' cmd_reg |= FIELD_PREP(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/bitfield.h:95:49: note: in definition of macro 'FIELD_PREP' ((typeof(_mask))(_val) << __bf_shf(_mask)) & (_mask); \ ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:329:25: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' cmd_reg |= FIELD_PREP(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, ^ /kisskb/src/drivers/cxl/mem.c:335:2: error: implicit declaration of function 'writeq' [-Werror=implicit-function-declaration] writeq(cmd_reg, cxlm->mbox_regs + CXLDEV_MBOX_CMD_OFFSET); ^ /kisskb/src/drivers/cxl/mem.c:350:15: error: implicit declaration of function 'readq' [-Werror=implicit-function-declaration] status_reg = readq(cxlm->mbox_regs + CXLDEV_MBOX_STATUS_OFFSET); ^ In file included from <command-line>:0:0: /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:46:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(!__builtin_constant_p(_mask), \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:352:3: note: in expansion of macro 'FIELD_GET' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:46:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(!__builtin_constant_p(_mask), \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:352:3: note: in expansion of macro 'FIELD_GET' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:48:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:352:3: note: in expansion of macro 'FIELD_GET' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:48:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:352:3: note: in expansion of macro 'FIELD_GET' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:352:3: note: in expansion of macro 'FIELD_GET' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:352:3: note: in expansion of macro 'FIELD_GET' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ ^ /kisskb/src/include/linux/bitfield.h:50:19: note: in expansion of macro '__bf_shf' ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:352:3: note: in expansion of macro 'FIELD_GET' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ ^ /kisskb/src/include/linux/bitfield.h:50:19: note: in expansion of macro '__bf_shf' ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:352:3: note: in expansion of macro 'FIELD_GET' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:52:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG((_mask) > (typeof(_reg))~0ull, \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:352:3: note: in expansion of macro 'FIELD_GET' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:52:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG((_mask) > (typeof(_reg))~0ull, \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:352:3: note: in expansion of macro 'FIELD_GET' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:352:3: note: in expansion of macro 'FIELD_GET' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:352:3: note: in expansion of macro 'FIELD_GET' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:55:21: note: in expansion of macro '__bf_shf' (1ULL << __bf_shf(_mask))); \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:352:3: note: in expansion of macro 'FIELD_GET' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:55:21: note: in expansion of macro '__bf_shf' (1ULL << __bf_shf(_mask))); \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:352:3: note: in expansion of macro 'FIELD_GET' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:352:3: note: in expansion of macro 'FIELD_GET' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:352:3: note: in expansion of macro 'FIELD_GET' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:55:21: note: in expansion of macro '__bf_shf' (1ULL << __bf_shf(_mask))); \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:352:3: note: in expansion of macro 'FIELD_GET' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:55:21: note: in expansion of macro '__bf_shf' (1ULL << __bf_shf(_mask))); \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:352:3: note: in expansion of macro 'FIELD_GET' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ In file included from /kisskb/src/drivers/cxl/cxl.h:7:0, from /kisskb/src/drivers/cxl/mem.c:13: /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/bitfield.h:109:30: note: in definition of macro 'FIELD_GET' (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \ ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/bitfield.h:109:30: note: in definition of macro 'FIELD_GET' (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \ ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/bitfield.h:42:38: note: in definition of macro '__bf_shf' #define __bf_shf(x) (__builtin_ffsll(x) - 1) ^ /kisskb/src/drivers/cxl/mem.c:352:3: note: in expansion of macro 'FIELD_GET' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/bitfield.h:42:38: note: in definition of macro '__bf_shf' #define __bf_shf(x) (__builtin_ffsll(x) - 1) ^ /kisskb/src/drivers/cxl/mem.c:352:3: note: in expansion of macro 'FIELD_GET' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:31:44: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_STATUS_RET_CODE_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:352:13: note: in expansion of macro 'CXLDEV_MBOX_STATUS_RET_CODE_MASK' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ In file included from <command-line>:0:0: /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:46:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(!__builtin_constant_p(_mask), \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:361:12: note: in expansion of macro 'FIELD_GET' out_len = FIELD_GET(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, cmd_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:361:22: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' out_len = FIELD_GET(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, cmd_reg); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:48:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:361:12: note: in expansion of macro 'FIELD_GET' out_len = FIELD_GET(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, cmd_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:361:22: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' out_len = FIELD_GET(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, cmd_reg); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:361:12: note: in expansion of macro 'FIELD_GET' out_len = FIELD_GET(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, cmd_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:361:22: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' out_len = FIELD_GET(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, cmd_reg); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ ^ /kisskb/src/include/linux/bitfield.h:50:19: note: in expansion of macro '__bf_shf' ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:361:12: note: in expansion of macro 'FIELD_GET' out_len = FIELD_GET(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, cmd_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:361:22: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' out_len = FIELD_GET(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, cmd_reg); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:52:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG((_mask) > (typeof(_reg))~0ull, \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:361:12: note: in expansion of macro 'FIELD_GET' out_len = FIELD_GET(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, cmd_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:361:22: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' out_len = FIELD_GET(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, cmd_reg); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:361:12: note: in expansion of macro 'FIELD_GET' out_len = FIELD_GET(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, cmd_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:361:22: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' out_len = FIELD_GET(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, cmd_reg); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:55:21: note: in expansion of macro '__bf_shf' (1ULL << __bf_shf(_mask))); \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:361:12: note: in expansion of macro 'FIELD_GET' out_len = FIELD_GET(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, cmd_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:361:22: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' out_len = FIELD_GET(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, cmd_reg); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:361:12: note: in expansion of macro 'FIELD_GET' out_len = FIELD_GET(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, cmd_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:361:22: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' out_len = FIELD_GET(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, cmd_reg); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:55:21: note: in expansion of macro '__bf_shf' (1ULL << __bf_shf(_mask))); \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:361:12: note: in expansion of macro 'FIELD_GET' out_len = FIELD_GET(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, cmd_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:361:22: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' out_len = FIELD_GET(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, cmd_reg); ^ In file included from /kisskb/src/drivers/cxl/cxl.h:7:0, from /kisskb/src/drivers/cxl/mem.c:13: /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/bitfield.h:109:30: note: in definition of macro 'FIELD_GET' (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \ ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:361:22: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' out_len = FIELD_GET(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, cmd_reg); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/bitfield.h:42:38: note: in definition of macro '__bf_shf' #define __bf_shf(x) (__builtin_ffsll(x) - 1) ^ /kisskb/src/drivers/cxl/mem.c:361:12: note: in expansion of macro 'FIELD_GET' out_len = FIELD_GET(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, cmd_reg); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:29:47: note: in expansion of macro 'GENMASK' #define CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK GENMASK(36, 16) ^ /kisskb/src/drivers/cxl/mem.c:361:22: note: in expansion of macro 'CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK' out_len = FIELD_GET(CXLDEV_MBOX_CMD_PAYLOAD_LENGTH_MASK, cmd_reg); ^ In file included from <command-line>:0:0: /kisskb/src/drivers/cxl/mem.c: In function 'cxl_mem_setup_regs': /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:46:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(!__builtin_constant_p(_mask), \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:849:14: note: in expansion of macro 'FIELD_GET' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:46:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(!__builtin_constant_p(_mask), \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:849:14: note: in expansion of macro 'FIELD_GET' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:48:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:849:14: note: in expansion of macro 'FIELD_GET' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:48:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:849:14: note: in expansion of macro 'FIELD_GET' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:849:14: note: in expansion of macro 'FIELD_GET' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:849:14: note: in expansion of macro 'FIELD_GET' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ ^ /kisskb/src/include/linux/bitfield.h:50:19: note: in expansion of macro '__bf_shf' ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:849:14: note: in expansion of macro 'FIELD_GET' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ ^ /kisskb/src/include/linux/bitfield.h:50:19: note: in expansion of macro '__bf_shf' ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:849:14: note: in expansion of macro 'FIELD_GET' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:52:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG((_mask) > (typeof(_reg))~0ull, \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:849:14: note: in expansion of macro 'FIELD_GET' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:52:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG((_mask) > (typeof(_reg))~0ull, \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:849:14: note: in expansion of macro 'FIELD_GET' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:849:14: note: in expansion of macro 'FIELD_GET' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:849:14: note: in expansion of macro 'FIELD_GET' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:55:21: note: in expansion of macro '__bf_shf' (1ULL << __bf_shf(_mask))); \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:849:14: note: in expansion of macro 'FIELD_GET' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:55:21: note: in expansion of macro '__bf_shf' (1ULL << __bf_shf(_mask))); \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:849:14: note: in expansion of macro 'FIELD_GET' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:849:14: note: in expansion of macro 'FIELD_GET' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:849:14: note: in expansion of macro 'FIELD_GET' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:55:21: note: in expansion of macro '__bf_shf' (1ULL << __bf_shf(_mask))); \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:849:14: note: in expansion of macro 'FIELD_GET' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/compiler_types.h:300:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/include/linux/build_bug.h:21:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(((n) & ((n) - 1)) != 0) ^ /kisskb/src/include/linux/bitfield.h:54:3: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ ^ /kisskb/src/include/linux/bitfield.h:55:21: note: in expansion of macro '__bf_shf' (1ULL << __bf_shf(_mask))); \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:849:14: note: in expansion of macro 'FIELD_GET' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ In file included from /kisskb/src/drivers/cxl/cxl.h:7:0, from /kisskb/src/drivers/cxl/mem.c:13: /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/bitfield.h:109:30: note: in definition of macro 'FIELD_GET' (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \ ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/bitfield.h:109:30: note: in definition of macro 'FIELD_GET' (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \ ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow] (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ /kisskb/src/include/linux/bitfield.h:42:38: note: in definition of macro '__bf_shf' #define __bf_shf(x) (__builtin_ffsll(x) - 1) ^ /kisskb/src/drivers/cxl/mem.c:849:14: note: in expansion of macro 'FIELD_GET' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ /kisskb/src/include/linux/bitfield.h:42:38: note: in definition of macro '__bf_shf' #define __bf_shf(x) (__builtin_ffsll(x) - 1) ^ /kisskb/src/drivers/cxl/mem.c:849:14: note: in expansion of macro 'FIELD_GET' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ /kisskb/src/include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ /kisskb/src/drivers/cxl/cxl.h:15:39: note: in expansion of macro 'GENMASK' #define CXLDEV_CAP_ARRAY_COUNT_MASK GENMASK(47, 32) ^ /kisskb/src/drivers/cxl/mem.c:849:24: note: in expansion of macro 'CXLDEV_CAP_ARRAY_COUNT_MASK' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ In file included from <command-line>:0:0: /kisskb/src/drivers/cxl/mem.c: In function '__cxl_mem_mbox_send_cmd': /kisskb/src/include/linux/compiler_types.h:320:38: error: call to '__compiletime_assert_269' declared with attribute error: FIELD_GET: mask is zero _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/compiler_types.h:301:4: note: in definition of macro '__compiletime_assert' prefix ## suffix(); \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:48:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:352:3: note: in expansion of macro 'FIELD_GET' FIELD_GET(CXLDEV_MBOX_STATUS_RET_CODE_MASK, status_reg); ^ In function 'cxl_mem_setup_regs', inlined from 'cxl_mem_probe' at /kisskb/src/drivers/cxl/mem.c:1451:5: /kisskb/src/include/linux/compiler_types.h:320:38: error: call to '__compiletime_assert_301' declared with attribute error: FIELD_GET: mask is zero _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/compiler_types.h:301:4: note: in definition of macro '__compiletime_assert' prefix ## suffix(); \ ^ /kisskb/src/include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/bitfield.h:48:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \ ^ /kisskb/src/include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ ^ /kisskb/src/drivers/cxl/mem.c:849:14: note: in expansion of macro 'FIELD_GET' cap_count = FIELD_GET(CXLDEV_CAP_ARRAY_COUNT_MASK, cap_array); ^ cc1: some warnings being treated as errors make[3]: *** [/kisskb/src/scripts/Makefile.build:287: drivers/cxl/mem.o] Error 1 make[2]: *** [/kisskb/src/scripts/Makefile.build:530: drivers/cxl] Error 2 make[2]: *** Waiting for unfinished jobs.... In file included from /kisskb/src/arch/xtensa/include/asm/atomic.h:19:0, from /kisskb/src/include/linux/atomic.h:7, from /kisskb/src/include/asm-generic/bitops/atomic.h:5, from /kisskb/src/arch/xtensa/include/asm/bitops.h:192, from /kisskb/src/include/linux/bitops.h:32, from /kisskb/src/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c:11: /kisskb/src/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c: In function 'ixgbevf_xdp_setup': /kisskb/src/arch/xtensa/include/asm/cmpxchg.h:173:3: warning: value computed is not used [-Wunused-value] ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) ^ /kisskb/src/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c:4445:4: note: in expansion of macro 'xchg' xchg(&adapter->rx_ring[i]->xdp_prog, adapter->xdp_prog); ^ make[1]: *** [/kisskb/src/Makefile:1830: drivers] Error 2 make: *** [Makefile:185: __sub-make] Error 2 Command 'make -s -j 120 ARCH=xtensa O=/kisskb/build/linux-next_xtensa-allmodconfig_xtensa CROSS_COMPILE=/opt/cross/kisskb/br-xtensa-full-2016.08-613-ge98b4dd/bin/xtensa-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/linux-next_xtensa-allmodconfig_xtensa # Build took: 0:06:09.245763
© Michael Ellerman 2006-2018.