tree:
https://github.com/alibaba/cloud-kernel.git linux-next
head: c3ac3c331d6cc495be9603404799c061d71af44c
commit: 9ba61fa50195f2a1c05702b3d83141bcc589e1b8 [11672/12249] firmware: arm_sdei: Add
ACPI GHES registration helper
config: arm64-randconfig-r006-20200927 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
6d374cf78c8a80a0bbfc7ce9bc80b3f183f44c80)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
#
https://github.com/alibaba/cloud-kernel/commit/9ba61fa50195f2a1c05702b3d8...
git remote add alibaba-cloud
https://github.com/alibaba/cloud-kernel.git
git fetch --no-tags alibaba-cloud linux-next
git checkout 9ba61fa50195f2a1c05702b3d83141bcc589e1b8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/bitops.h:26:
In file included from arch/arm64/include/asm/bitops.h:40:
In file included from include/asm-generic/bitops/le.h:6:
In file included from arch/arm64/include/uapi/asm/byteorder.h:23:
In file included from include/linux/byteorder/little_endian.h:11:
include/linux/byteorder/generic.h:195:16: warning: comparison of integers of different
signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
for (i = 0; i < len; i++)
~ ^ ~~~
include/linux/byteorder/generic.h:203:16: warning: comparison of integers of different
signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
for (i = 0; i < len; i++)
~ ^ ~~~
2 warnings generated.
In file included from arch/arm64/kernel/asm-offsets.c:21:
In file included from include/linux/arm_sdei.h:14:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:26:
In file included from include/linux/resource_ext.h:17:
In file included from include/linux/list.h:9:
In file included from include/linux/kernel.h:11:
In file included from include/linux/bitops.h:26:
In file included from arch/arm64/include/asm/bitops.h:40:
In file included from include/asm-generic/bitops/le.h:6:
In file included from arch/arm64/include/uapi/asm/byteorder.h:23:
In file included from include/linux/byteorder/little_endian.h:11:
include/linux/byteorder/generic.h:195:16: warning: comparison of integers of different
signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
for (i = 0; i < len; i++)
~ ^ ~~~
include/linux/byteorder/generic.h:203:16: warning: comparison of integers of different
signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
for (i = 0; i < len; i++)
~ ^ ~~~
In file included from arch/arm64/kernel/asm-offsets.c:21:
In file included from include/linux/arm_sdei.h:14:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:26:
In file included from include/linux/resource_ext.h:19:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:6:
In file included from include/linux/mmzone.h:8:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:81:
In file included from ./arch/arm64/include/generated/asm/preempt.h:1:
In file included from include/asm-generic/preempt.h:5:
include/linux/thread_info.h:141:29: warning: comparison of integers of different signs:
'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
if (unlikely(sz >= 0 && sz < bytes)) {
~~ ^ ~~~~~
include/linux/compiler.h:77:42: note: expanded from macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
In file included from arch/arm64/kernel/asm-offsets.c:21:
In file included from include/linux/arm_sdei.h:14:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:26:
In file included from include/linux/resource_ext.h:19:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:6:
In file included from include/linux/mmzone.h:8:
In file included from include/linux/spinlock.h:88:
In file included from arch/arm64/include/asm/spinlock.h:19:
In file included from ./arch/arm64/include/generated/asm/qrwlock.h:1:
include/asm-generic/qrwlock.h:75:36: warning: comparison of integers of different
signs: 'int' and 'u32' (aka 'unsigned int') [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
include/linux/compiler.h:76:40: note: expanded from macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^
In file included from arch/arm64/kernel/asm-offsets.c:21:
In file included from include/linux/arm_sdei.h:14:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:26:
In file included from include/linux/resource_ext.h:19:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:6:
In file included from include/linux/mmzone.h:22:
include/linux/page-flags.h:166:21: warning: comparison of integers of different signs:
'const unsigned long' and 'long' [-Wsign-compare]
return page->flags == PAGE_POISON_PATTERN;
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
In file included from arch/arm64/kernel/asm-offsets.c:21:
In file included from include/linux/arm_sdei.h:14:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:26:
In file included from include/linux/resource_ext.h:19:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:6:
include/linux/mmzone.h:1021:44: warning: comparison of integers of different signs:
'int' and 'enum zone_type' [-Wsign-compare]
if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
include/linux/compiler.h:76:40: note: expanded from macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^
In file included from arch/arm64/kernel/asm-offsets.c:21:
In file included from include/linux/arm_sdei.h:14:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:10:
In file included from include/linux/cper.h:25:
In file included from include/linux/trace_seq.h:5:
> include/linux/seq_buf.h:35:12: warning: assigning to 'char
*' from 'unsigned char *' converts between pointers to integer types with
different sign [-Wpointer-sign]
s->buffer = buf;
^ ~~~
In file included from arch/arm64/kernel/asm-offsets.c:23:
In file included from include/linux/mm.h:1265:
include/linux/vmstat.h:221:2: warning: comparison of integers of different signs:
'int' and 'unsigned int' [-Wsign-compare]
for_each_online_cpu(cpu)
^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/cpumask.h:778:36: note: expanded from macro
'for_each_online_cpu'
#define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/cpumask.h:243:9: note: expanded from macro 'for_each_cpu'
(cpu) < nr_cpu_ids;)
~~~ ^ ~~~~~~~~~~
In file included from arch/arm64/kernel/asm-offsets.c:25:
In file included from include/linux/kvm_host.h:39:
In file included from arch/arm64/include/asm/kvm_host.h:42:
In file included from include/kvm/arm_pmu.h:21:
In file included from include/linux/perf_event.h:57:
In file included from include/linux/cgroup.h:28:
include/linux/cgroup-defs.h:484:16: warning: field 'cgrp' with variable sized
type 'struct cgroup' not at the end of a struct or class is a GNU extension
[-Wgnu-variable-sized-type-not-at-end]
struct cgroup cgrp;
^
In file included from arch/arm64/kernel/asm-offsets.c:32:
arch/arm64/include/asm/smp_plat.h:53:20: warning: comparison of integers of different
signs: 'int' and 'unsigned int' [-Wsign-compare]
for (cpu = 0; cpu < nr_cpu_ids; cpu++)
~~~ ^ ~~~~~~~~~~
10 warnings generated.
/usr/bin/as: unrecognized option '-EL'
clang-12: error: assembler command failed with exit code 1 (use -v to see invocation)
make[2]: *** [arch/arm64/kernel/vdso/Makefile:54:
arch/arm64/kernel/vdso/gettimeofday.o] Error 1
/usr/bin/as: unrecognized option '-EL'
clang-12: error: assembler command failed with exit code 1 (use -v to see invocation)
make[2]: *** [arch/arm64/kernel/vdso/Makefile:54: arch/arm64/kernel/vdso/note.o] Error
1
/usr/bin/as: unrecognized option '-EL'
clang-12: error: assembler command failed with exit code 1 (use -v to see invocation)
make[2]: *** [arch/arm64/kernel/vdso/Makefile:54: arch/arm64/kernel/vdso/sigreturn.o]
Error 1
make[2]: Target 'include/generated/vdso-offsets.h' not remade because of
errors.
make[1]: *** [arch/arm64/Makefile:175: vdso_prepare] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:146: sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +35 include/linux/seq_buf.h
0736c033a81547b Steven Rostedt (Red Hat 2014-10-29 31)
3a161d99c43ce74 Steven Rostedt (Red Hat 2014-06-25 32) static inline void
3a161d99c43ce74 Steven Rostedt (Red Hat 2014-06-25 33) seq_buf_init(struct seq_buf *s,
unsigned char *buf, unsigned int size)
3a161d99c43ce74 Steven Rostedt (Red Hat 2014-06-25 34) {
3a161d99c43ce74 Steven Rostedt (Red Hat 2014-06-25 @35) s->buffer = buf;
3a161d99c43ce74 Steven Rostedt (Red Hat 2014-06-25 36) s->size = size;
0736c033a81547b Steven Rostedt (Red Hat 2014-10-29 37) seq_buf_clear(s);
3a161d99c43ce74 Steven Rostedt (Red Hat 2014-06-25 38) }
3a161d99c43ce74 Steven Rostedt (Red Hat 2014-06-25 39)
:::::: The code at line 35 was first introduced by commit
:::::: 3a161d99c43ce74c76aecff309be4c3ba455e823 tracing: Create seq_buf layer in
trace_seq
:::::: TO: Steven Rostedt (Red Hat) <rostedt(a)goodmis.org>
:::::: CC: Steven Rostedt <rostedt(a)goodmis.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org