From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: include/asm-generic/bitsperlong.h:23:2: sparse: sparse: Inconsistent word size. Check asm/bitsperlong.h
Date: Mon, 04 May 2026 04:58:30 +0800 [thread overview]
Message-ID: <202605040419.rbGU1erO-lkp@intel.com> (raw)
::::::
:::::: 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
reply other threads:[~2026-05-03 20:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202605040419.rbGU1erO-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.