* 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; only message 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] only message in thread
only message in thread, other threads:[~2026-05-03 20:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-03 20:58 include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h 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.