* include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
@ 2026-05-03 20:58 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2026-05-03 20:58 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp
::::::
:::::: Manual check reason: "low confidence static check warning: include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: "Thomas Weißschuh" <thomas.weissschuh@linutronix.de>
CC: Thomas Gleixner <tglx@kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 66edb901bf874d9e0787326ba12d3548b2da8700
commit: 62357a5888ea6ef81f718eee20ad962a1101fb96 asm-generic/bitsperlong.h: Add sanity checks for __BITS_PER_LONG
date: 8 weeks ago
:::::: branch date: 25 hours ago
:::::: commit date: 8 weeks ago
config: x86_64-randconfig-122-20260503 (https://download.01.org/0day-ci/archive/20260504/202605040419.rbGU1erO-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260504/202605040419.rbGU1erO-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: 62357a5888ea ("asm-generic/bitsperlong.h: Add sanity checks for __BITS_PER_LONG")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202605040419.rbGU1erO-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
arch/x86/boot/pm.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/edd.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/a20.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/cpuflags.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/version.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/cmdline.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/video-vga.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/regs.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/memory.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/early_serial_console.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/tty.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/video.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/cpucheck.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/main.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/video-vesa.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/video-bios.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/video-mode.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/printf.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/string.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/cpu.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
vim +23 include/asm-generic/bitsperlong.h
c31ae4bb4a9fa4 Arnd Bergmann 2009-05-13 21
62357a5888ea6e Thomas Weißschuh 2026-03-02 22 #if __CHAR_BIT__ * __SIZEOF_LONG__ != __BITS_PER_LONG
62357a5888ea6e Thomas Weißschuh 2026-03-02 @23 #error Inconsistent word size. Check asm/bitsperlong.h
62357a5888ea6e Thomas Weißschuh 2026-03-02 24 #endif
62357a5888ea6e Thomas Weißschuh 2026-03-02 25
62357a5888ea6e Thomas Weißschuh 2026-03-02 26 #ifndef __ASSEMBLER__
62357a5888ea6e Thomas Weißschuh 2026-03-02 @27 _Static_assert(sizeof(long) * 8 == __BITS_PER_LONG,
62357a5888ea6e Thomas Weißschuh 2026-03-02 28 "Inconsistent word size. Check asm/bitsperlong.h");
62357a5888ea6e Thomas Weißschuh 2026-03-02 29 #endif
62357a5888ea6e Thomas Weißschuh 2026-03-02 30
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread
* include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
@ 2026-06-04 8:24 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2026-06-04 8:24 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp
::::::
:::::: Manual check reason: "low confidence static check warning: include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: "Thomas Weißschuh" <thomas.weissschuh@linutronix.de>
CC: Thomas Gleixner <tglx@kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ba3e43a9e601636f5edb54e259a74f96ca3b8fd8
commit: 62357a5888ea6ef81f718eee20ad962a1101fb96 asm-generic/bitsperlong.h: Add sanity checks for __BITS_PER_LONG
date: 3 months ago
:::::: branch date: 2 days ago
:::::: commit date: 3 months ago
config: x86_64-randconfig-122-20260604 (https://download.01.org/0day-ci/archive/20260604/202606041601.s1E0tZVC-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260604/202606041601.s1E0tZVC-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: 62357a5888ea ("asm-generic/bitsperlong.h: Add sanity checks for __BITS_PER_LONG")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202606041601.s1E0tZVC-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
arch/x86/realmode/rm/video-mode.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/realmode/rm/wakemain.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/realmode/rm/regs.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/realmode/rm/video-vga.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/realmode/rm/video-vesa.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/realmode/rm/video-bios.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/cpuflags.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/version.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/cpucheck.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/memory.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/regs.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/video-bios.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/video-vesa.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/cmdline.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/early_serial_console.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/edd.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/video-vga.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/a20.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/main.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/video.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/video-mode.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/cpu.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/string.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/pm.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/tty.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/printf.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
>> include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
vim +23 include/asm-generic/bitsperlong.h
c31ae4bb4a9fa4 Arnd Bergmann 2009-05-13 21
62357a5888ea6e Thomas Weißschuh 2026-03-02 22 #if __CHAR_BIT__ * __SIZEOF_LONG__ != __BITS_PER_LONG
62357a5888ea6e Thomas Weißschuh 2026-03-02 @23 #error Inconsistent word size. Check asm/bitsperlong.h
62357a5888ea6e Thomas Weißschuh 2026-03-02 24 #endif
62357a5888ea6e Thomas Weißschuh 2026-03-02 25
62357a5888ea6e Thomas Weißschuh 2026-03-02 26 #ifndef __ASSEMBLER__
62357a5888ea6e Thomas Weißschuh 2026-03-02 @27 _Static_assert(sizeof(long) * 8 == __BITS_PER_LONG,
62357a5888ea6e Thomas Weißschuh 2026-03-02 28 "Inconsistent word size. Check asm/bitsperlong.h");
62357a5888ea6e Thomas Weißschuh 2026-03-02 29 #endif
62357a5888ea6e Thomas Weißschuh 2026-03-02 30
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread
* include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
@ 2026-09-17 21:29 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2026-09-17 21:29 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp
::::::
:::::: Manual check reason: "low confidence static check warning: include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: "Thomas Weißschuh" <thomas.weissschuh@linutronix.de>
CC: Thomas Gleixner <tglx@kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9b87fdc9af2fbfcdb5c24a64139685ef80f6573f
commit: 62357a5888ea6ef81f718eee20ad962a1101fb96 asm-generic/bitsperlong.h: Add sanity checks for __BITS_PER_LONG
date: 6 months ago
:::::: branch date: 2 days ago
:::::: commit date: 6 months ago
config: x86_64-randconfig-r1308-20260917 (https://download.01.org/0day-ci/archive/20260918/202609180533.3hqSSVRb-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260918/202609180533.3hqSSVRb-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: 62357a5888ea ("asm-generic/bitsperlong.h: Add sanity checks for __BITS_PER_LONG")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202609180533.3hqSSVRb-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
arch/x86/realmode/rm/regs.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/realmode/rm/video-bios.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/realmode/rm/video-vesa.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/realmode/rm/video-mode.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/realmode/rm/wakemain.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/realmode/rm/video-vga.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/video-mode.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/cpuflags.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/printf.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/video-vga.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/regs.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/video-vesa.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/cpucheck.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/pm.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/version.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/early_serial_console.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/tty.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/memory.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/string.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/cmdline.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/video-bios.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/main.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/a20.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/video.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/edd.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
--
arch/x86/boot/cpu.c: note: in included file (through arch/x86/include/uapi/asm/bitsperlong.h, include/uapi/asm-generic/int-ll64.h, include/asm-generic/int-ll64.h, ...):
>> include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
include/asm-generic/bitsperlong.h:27:33: sparse: sparse: static assertion failed: "Inconsistent word size. Check asm/bitsperlong.h"
vim +23 include/asm-generic/bitsperlong.h
c31ae4bb4a9fa46 Arnd Bergmann 2009-05-13 21
62357a5888ea6ef Thomas Weißschuh 2026-03-02 22 #if __CHAR_BIT__ * __SIZEOF_LONG__ != __BITS_PER_LONG
62357a5888ea6ef Thomas Weißschuh 2026-03-02 @23 #error Inconsistent word size. Check asm/bitsperlong.h
62357a5888ea6ef Thomas Weißschuh 2026-03-02 24 #endif
62357a5888ea6ef Thomas Weißschuh 2026-03-02 25
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-09-17 21:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-17 21:29 include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-06-04 8:24 kernel test robot
2026-05-03 20:58 kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.