From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: [android-common:android14-kiwi-6.1 59/59] tools/include/asm-generic/bitsperlong.h:14:2: error: #error Inconsistent word size. Check asm/bitsperlong.h
Date: Mon, 20 Apr 2026 19:13:16 +0200 [thread overview]
Message-ID: <202604201938.VTmYGHJx-lkp@intel.com> (raw)
::::::
:::::: Manual check reason: "low confidence bisect report"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: cros-kernel-buildreports@googlegroups.com
tree: https://android.googlesource.com/kernel/common android14-kiwi-6.1
head: a00cb39a367f410fb4a49bd4ad04a72e3d3764fd
commit: c8def8cde13bfb58e4ac663dfa27713cba54c60e [59/59] tools bitmap: Add missing asm-generic/bitsperlong.h include
:::::: branch date: 80 minutes ago
:::::: commit date: 5 months ago
config: x86_64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260420/202604201938.VTmYGHJx-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260420/202604201938.VTmYGHJx-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
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202604201938.VTmYGHJx-lkp@intel.com/
All errors (new ones prefixed by >>):
Warning: Kernel ABI header at 'tools/include/uapi/linux/const.h' differs from latest version at 'include/uapi/linux/const.h'
Warning: Kernel ABI header at 'tools/include/uapi/linux/in.h' differs from latest version at 'include/uapi/linux/in.h'
Warning: Kernel ABI header at 'tools/arch/x86/include/asm/disabled-features.h' differs from latest version at 'arch/x86/include/asm/disabled-features.h'
Warning: Kernel ABI header at 'tools/arch/x86/include/asm/required-features.h' differs from latest version at 'arch/x86/include/asm/required-features.h'
Warning: Kernel ABI header at 'tools/arch/x86/include/asm/cpufeatures.h' differs from latest version at 'arch/x86/include/asm/cpufeatures.h'
Warning: Kernel ABI header at 'tools/arch/x86/include/asm/msr-index.h' differs from latest version at 'arch/x86/include/asm/msr-index.h'
Warning: Kernel ABI header at 'tools/arch/arm64/include/uapi/asm/perf_regs.h' differs from latest version at 'arch/arm64/include/uapi/asm/perf_regs.h'
Warning: Kernel ABI header at 'tools/arch/x86/include/uapi/asm/svm.h' differs from latest version at 'arch/x86/include/uapi/asm/svm.h'
Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/unistd.h' differs from latest version at 'include/uapi/asm-generic/unistd.h'
Warning: Kernel ABI header at 'tools/arch/arm64/include/asm/cputype.h' differs from latest version at 'arch/arm64/include/asm/cputype.h'
Warning: Kernel ABI header at 'tools/perf/arch/powerpc/entry/syscalls/syscall.tbl' differs from latest version at 'arch/powerpc/kernel/syscalls/syscall.tbl'
Warning: Kernel ABI header at 'tools/perf/arch/s390/entry/syscalls/syscall.tbl' differs from latest version at 'arch/s390/kernel/syscalls/syscall.tbl'
Warning: Kernel ABI header at 'tools/perf/trace/beauty/include/linux/socket.h' differs from latest version at 'include/linux/socket.h'
Makefile.config:549: No elfutils/debuginfod.h found, no debuginfo server support, please install libdebuginfod-dev/elfutils-debuginfod-client-devel or equivalent
Makefile.config:683: No libunwind found. Please install libunwind-dev[el] >= 1.1 and/or set LIBUNWIND_DIR
tools/perf/pmu-events/jevents.py:60: SyntaxWarning: invalid escape sequence '\ '
all \ are for escaping, it then adjusts as it will have over counted
scripts/bpf_doc.py:62: SyntaxWarning: invalid escape sequence '\w'
arg_re = re.compile('((\w+ )*?(\w+|...))( (\**)(\w+))?$')
scripts/bpf_doc.py:64: SyntaxWarning: invalid escape sequence '\*'
proto_re = re.compile('(.+) (\**)(\w+)\(((([^,]+)(, )?){1,5})\)$')
scripts/bpf_doc.py:116: SyntaxWarning: invalid escape sequence '\*'
p = re.compile(' \* ?(BPF\w+)$')
scripts/bpf_doc.py:120: SyntaxWarning: invalid escape sequence '\*'
end_re = re.compile(' \* ?NOTES$')
scripts/bpf_doc.py:135: SyntaxWarning: invalid escape sequence '\*'
p = re.compile(' \* ?((.+) \**\w+\((((const )?(struct )?(\w+|\.\.\.)( \**\w+)?)(, )?){1,5}\))$')
scripts/bpf_doc.py:143: SyntaxWarning: invalid escape sequence '\*'
p = re.compile(' \* ?(?:\t| {5,8})Description$')
scripts/bpf_doc.py:156: SyntaxWarning: invalid escape sequence '\*'
p = re.compile(' \* ?(?:\t| {5,8})(?:\t| {8})(.*)')
scripts/bpf_doc.py:169: SyntaxWarning: invalid escape sequence '\*'
p = re.compile(' \* ?(?:\t| {5,8})Return$')
scripts/bpf_doc.py:182: SyntaxWarning: invalid escape sequence '\*'
p = re.compile(' \* ?(?:\t| {5,8})(?:\t| {8})(.*)')
scripts/bpf_doc.py:221: SyntaxWarning: invalid escape sequence '\s'
bpf_p = re.compile('\s*(BPF\w+)+')
scripts/bpf_doc.py:226: SyntaxWarning: invalid escape sequence '\s'
assign_p = re.compile('\s*(BPF\w+)\s*=\s*(BPF\w+)')
scripts/bpf_doc.py:241: SyntaxWarning: invalid escape sequence '\w'
self.enum_syscalls = re.findall('(BPF\w+)+', bpf_cmd_str)
scripts/bpf_doc.py:264: SyntaxWarning: invalid escape sequence '\s'
p = re.compile('\s*FN\((\w+)\)|\\\\')
scripts/bpf_doc.py:277: SyntaxWarning: invalid escape sequence '\('
self.define_unique_helpers = re.findall('FN\(\w+\)', fn_defines_str)
scripts/bpf_doc.py:410: SyntaxWarning: invalid escape sequence '\*'
'/{}/,/\*\//:include/uapi/linux/bpf.h'.format(delimiter)]
scripts/bpf_doc.py:501: SyntaxWarning: invalid escape sequence '\ '
license string passed (via **attr**) to the **bpf**\ () system call, and this
scripts/bpf_doc.py:583: SyntaxWarning: invalid escape sequence '\ '
one_arg += ' {}**\ '.format(a['star'].replace('*', '\\*'))
PERF_VERSION = 6.1.158.gc8def8cde13b
In file included from tools/include/linux/bitmap.h:6,
from util/pmu.h:5,
from builtin-list.c:14:
>> tools/include/asm-generic/bitsperlong.h:14:2: error: #error Inconsistent word size. Check asm/bitsperlong.h
14 | #error Inconsistent word size. Check asm/bitsperlong.h
| ^~~~~
make[3]: *** [tools/build/Makefile.build:97: builtin-list.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from tools/include/linux/bitmap.h:6,
from tools/perf/util/pmu.h:5,
from arch/x86/util/mem-events.c:2:
>> tools/include/asm-generic/bitsperlong.h:14:2: error: #error Inconsistent word size. Check asm/bitsperlong.h
14 | #error Inconsistent word size. Check asm/bitsperlong.h
| ^~~~~
In file included from tools/include/linux/bitmap.h:6,
from tools/perf/util/pmu.h:5,
from arch/x86/util/evlist.c:3:
>> tools/include/asm-generic/bitsperlong.h:14:2: error: #error Inconsistent word size. Check asm/bitsperlong.h
14 | #error Inconsistent word size. Check asm/bitsperlong.h
| ^~~~~
In file included from tools/include/linux/bitmap.h:6,
from tools/perf/util/pmu.h:5,
from arch/x86/util/topdown.c:4:
>> tools/include/asm-generic/bitsperlong.h:14:2: error: #error Inconsistent word size. Check asm/bitsperlong.h
14 | #error Inconsistent word size. Check asm/bitsperlong.h
| ^~~~~
builtin-top.c: In function 'prompt_integer':
builtin-top.c:358:21: error: allocation of insufficient size '0' for type 'char' with size '1' [-Werror=alloc-size]
358 | char *buf = malloc(0), *p;
| ^~~~~~
builtin-top.c: In function 'perf_top__prompt_symbol':
builtin-top.c:393:21: error: allocation of insufficient size '0' for type 'char' with size '1' [-Werror=alloc-size]
393 | char *buf = malloc(0), *p;
| ^~~~~~
In file included from tools/include/linux/bitmap.h:6,
from ../lib/bitmap.c:6:
>> tools/include/asm-generic/bitsperlong.h:14:2: error: #error Inconsistent word size. Check asm/bitsperlong.h
14 | #error Inconsistent word size. Check asm/bitsperlong.h
| ^~~~~
builtin-record.c: In function 'cmd_record':
builtin-record.c:4072:62: error: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
4072 | rec->switch_output.filenames = calloc(sizeof(char *),
| ^~~~
builtin-record.c:4072:62: note: earlier argument should specify number of elements, later size of each element
tests/bpf.c: In function 'epoll_pwait_loop':
tests/bpf.c:36:17: error: argument 2 null where non-null expected [-Werror=nonnull]
36 | epoll_pwait(-(i + 1), NULL, 0, 0, NULL);
| ^~~~~~~~~~~
In file included from tests/bpf.c:5:
/usr/include/x86_64-linux-gnu/sys/epoll.h:148:12: note: in a call to function 'epoll_pwait' declared 'nonnull'
148 | extern int epoll_pwait (int __epfd, struct epoll_event *__events,
| ^~~~~~~~~~~
make[6]: *** [tools/build/Makefile.build:96: arch/x86/util/mem-events.o] Error 1
make[6]: *** Waiting for unfinished jobs....
make[6]: *** [tools/build/Makefile.build:96: arch/x86/util/topdown.o] Error 1
cc1: all warnings being treated as errors
make[4]: *** [tools/build/Makefile.build:96: tests/bpf.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[6]: *** [tools/build/Makefile.build:96: arch/x86/util/evlist.o] Error 1
In file included from tools/include/linux/bitmap.h:6,
from util/pmu.h:5,
from util/topdown.c:3:
>> tools/include/asm-generic/bitsperlong.h:14:2: error: #error Inconsistent word size. Check asm/bitsperlong.h
14 | #error Inconsistent word size. Check asm/bitsperlong.h
| ^~~~~
In file included from tools/include/linux/bitmap.h:6,
from util/svghelper.c:16:
>> tools/include/asm-generic/bitsperlong.h:14:2: error: #error Inconsistent word size. Check asm/bitsperlong.h
14 | #error Inconsistent word size. Check asm/bitsperlong.h
| ^~~~~
make[4]: *** [util/Build:313: util/bitmap.o] Error 1
make[4]: *** Waiting for unfinished jobs....
cc1: all warnings being treated as errors
make[3]: *** [tools/build/Makefile.build:96: builtin-top.o] Error 1
In file included from tools/include/linux/bitmap.h:6,
from util/scripting-engines/trace-event-perl.c:28:
>> tools/include/asm-generic/bitsperlong.h:14:2: error: #error Inconsistent word size. Check asm/bitsperlong.h
14 | #error Inconsistent word size. Check asm/bitsperlong.h
| ^~~~~
util/metricgroup.c: In function 'setup_metric_events':
util/metricgroup.c:269:39: error: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
269 | metric_events = calloc(sizeof(void *), ids_size + 1);
| ^~~~
util/metricgroup.c:269:39: note: earlier argument should specify number of elements, later size of each element
In file included from tools/include/linux/bitmap.h:6,
from tools/perf/../lib/bitmap.c:6:
>> tools/include/asm-generic/bitsperlong.h:14:2: error: #error Inconsistent word size. Check asm/bitsperlong.h
14 | #error Inconsistent word size. Check asm/bitsperlong.h
| ^~~~~
make[4]: *** [tools/build/Makefile.build:96: util/svghelper.o] Error 1
make[3]: *** [tools/build/Makefile.build:143: tests] Error 2
util/hist.c: In function 'hist_entry__init':
util/hist.c:492:49: error: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
492 | he->res_samples = calloc(sizeof(struct res_sample),
| ^~~~~~
util/hist.c:492:49: note: earlier argument should specify number of elements, later size of each element
util/stat-shadow.c: In function 'perf_stat__collect_metric_expr':
util/stat-shadow.c:390:55: error: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
390 | metric_events = calloc(sizeof(struct evsel *),
| ^~~~~~
util/stat-shadow.c:390:55: note: earlier argument should specify number of elements, later size of each element
util/bpf-loader.c: In function 'config_bpf_program':
util/bpf-loader.c:574:29: error: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
574 | priv = calloc(sizeof(*priv), 1);
| ^
util/bpf-loader.c:574:29: note: earlier argument should specify number of elements, later size of each element
make[4]: *** [tools/build/Makefile.build:96: util/topdown.o] Error 1
>> error: command '/usr/bin/gcc-14' failed with exit code 1
util/synthetic-events.c: In function 'perf_event__synthesize_threads':
util/synthetic-events.c:1040:44: error: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
1040 | synthesize_threads = calloc(sizeof(pthread_t), thread_nr);
| ^~~~~~~~~
util/synthetic-events.c:1040:44: note: earlier argument should specify number of elements, later size of each element
util/synthetic-events.c:1044:29: error: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
1044 | args = calloc(sizeof(*args), thread_nr);
| ^
util/synthetic-events.c:1044:29: note: earlier argument should specify number of elements, later size of each element
>> cp: cannot stat 'python_ext_build/lib/perf*.so': No such file or directory
make[2]: *** [Makefile.perf:647: python/perf.so] Error 1
make[2]: *** Waiting for unfinished jobs....
make[5]: *** [tools/build/Makefile.build:143: util] Error 2
make[4]: *** [tools/build/Makefile.build:143: x86] Error 2
make[3]: *** [tools/build/Makefile.build:143: arch] Error 2
cc1: all warnings being treated as errors
make[4]: *** [tools/build/Makefile.build:96: util/metricgroup.o] Error 1
make[5]: *** [tools/build/Makefile.build:97: util/scripting-engines/trace-event-perl.o] Error 1
make[5]: *** Waiting for unfinished jobs....
cc1: all warnings being treated as errors
make[4]: *** [tools/build/Makefile.build:96: util/stat-shadow.o] Error 1
cc1: all warnings being treated as errors
make[3]: *** [tools/build/Makefile.build:96: builtin-record.o] Error 1
cc1: all warnings being treated as errors
make[4]: *** [tools/build/Makefile.build:96: util/bpf-loader.o] Error 1
cc1: all warnings being treated as errors
cc1: all warnings being treated as errors
make[4]: *** [tools/build/Makefile.build:96: util/hist.o] Error 1
make[4]: *** [tools/build/Makefile.build:96: util/synthetic-events.o] Error 1
make[4]: *** [tools/build/Makefile.build:143: scripting-engines] Error 2
make[3]: *** [tools/build/Makefile.build:143: util] Error 2
make[2]: *** [Makefile.perf:669: perf-in.o] Error 2
make[1]: *** [Makefile.perf:240: sub-make] Error 2
--
In file included from ../../include/linux/bitmap.h:6,
from bitmap.c:3:
>> ../../include/asm-generic/bitsperlong.h:14:2: error: #error Inconsistent word size. Check asm/bitsperlong.h
14 | #error Inconsistent word size. Check asm/bitsperlong.h
| ^~~~~
vim +14 tools/include/asm-generic/bitsperlong.h
bb9707077b4ee5 Arnaldo Carvalho de Melo 2016-07-12 12
2a00f026a15d16 Arnaldo Carvalho de Melo 2016-07-13 13 #if BITS_PER_LONG != __BITS_PER_LONG
bb9707077b4ee5 Arnaldo Carvalho de Melo 2016-07-12 @14 #error Inconsistent word size. Check asm/bitsperlong.h
bb9707077b4ee5 Arnaldo Carvalho de Melo 2016-07-12 15 #endif
bb9707077b4ee5 Arnaldo Carvalho de Melo 2016-07-12 16
:::::: The code at line 14 was first introduced by commit
:::::: bb9707077b4ee5f77bc9939b057ff8a0d410296f tools: Copy the bitsperlong.h files from the kernel
:::::: TO: Arnaldo Carvalho de Melo <acme@redhat.com>
:::::: CC: Arnaldo Carvalho de Melo <acme@redhat.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-04-20 17:14 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=202604201938.VTmYGHJx-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.