Re: [PATCH v2] fs/proc: Expose RSEQ configuration
by kernel test robot
Hi Piotr,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on userns/for-next]
[also build test WARNING on linus/master hnaz-linux-mm/master v5.11-rc3 next-20210115]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Piotr-Figiel/fs-proc-Expose-RSEQ...
base: https://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git for-next
config: powerpc64-randconfig-r021-20210115 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 5b42fd8dd4e7e29125a09a41a33af7c9cb57d144)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://github.com/0day-ci/linux/commit/dc5b7016b885415391e9d88d7349de143...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Piotr-Figiel/fs-proc-Expose-RSEQ-configuration/20210115-114533
git checkout dc5b7016b885415391e9d88d7349de14353c7249
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
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 >>):
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:78:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:557:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/proc/base.c:68:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:80:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:558:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/proc/base.c:68:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:82:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:559:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/proc/base.c:68:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:84:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:560:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/proc/base.c:68:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:86:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:561:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
>> fs/proc/base.c:674:30: warning: format specifies type 'unsigned ptrdiff_t' (aka 'unsigned int') but the argument has type 'ptrdiff_t' (aka 'long') [-Wformat]
seq_printf(m, "%tx %08x\n", (ptrdiff_t)((uintptr_t)task->rseq),
~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%lx
7 warnings generated.
vim +674 fs/proc/base.c
665
666 #ifdef CONFIG_RSEQ
667 static int proc_pid_rseq(struct seq_file *m, struct pid_namespace *ns,
668 struct pid *pid, struct task_struct *task)
669 {
670 int res = lock_trace(task);
671
672 if (res)
673 return res;
> 674 seq_printf(m, "%tx %08x\n", (ptrdiff_t)((uintptr_t)task->rseq),
675 task->rseq_sig);
676 unlock_trace(task);
677 return 0;
678 }
679 #endif /* CONFIG_RSEQ */
680 #endif /* CONFIG_HAVE_ARCH_TRACEHOOK */
681
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
hppa64-linux-ld: init/main.o(.ref.text+0x254): cannot reach do_sysctl_args
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5ee88057889bbca5f5bb96031b62b3756b33e164
commit: 3db978d480e2843979a2b56f2f7da726f2b295b2 kernel/sysctl: support setting sysctl parameters from kernel command line
date: 7 months ago
config: parisc-randconfig-r022-20210113 (attached as .config)
compiler: hppa64-linux-gcc (GCC) 9.3.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 3db978d480e2843979a2b56f2f7da726f2b295b2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
hppa64-linux-ld: init/main.o(.text+0xc0): cannot reach strlen
init/main.o: in function `perf_trace_initcall_level':
(.text+0xc0): relocation truncated to fit: R_PARISC_PCREL22F against symbol `strlen' defined in .text.hot section in arch/parisc/lib/string.o
hppa64-linux-ld: init/main.o(.text+0xe8): cannot reach debug_smp_processor_id
(.text+0xe8): relocation truncated to fit: R_PARISC_PCREL22F against symbol `debug_smp_processor_id' defined in .text section in lib/smp_processor_id.o
hppa64-linux-ld: init/main.o(.text+0x158): cannot reach strcpy
(.text+0x158): relocation truncated to fit: R_PARISC_PCREL22F against symbol `strcpy' defined in .text.hot section in arch/parisc/lib/string.o
hppa64-linux-ld: init/main.o(.text+0x204): cannot reach debug_smp_processor_id
init/main.o: in function `perf_trace_initcall_start':
(.text+0x204): relocation truncated to fit: R_PARISC_PCREL22F against symbol `debug_smp_processor_id' defined in .text section in lib/smp_processor_id.o
hppa64-linux-ld: init/main.o(.text+0x2e4): cannot reach debug_smp_processor_id
init/main.o: in function `perf_trace_initcall_finish':
(.text+0x2e4): relocation truncated to fit: R_PARISC_PCREL22F against symbol `debug_smp_processor_id' defined in .text section in lib/smp_processor_id.o
hppa64-linux-ld: init/main.o(.text+0x3e4): cannot reach strlen
init/main.o: in function `trace_event_raw_event_initcall_level':
(.text+0x3e4): relocation truncated to fit: R_PARISC_PCREL22F against symbol `strlen' defined in .text.hot section in arch/parisc/lib/string.o
hppa64-linux-ld: init/main.o(.text+0x438): cannot reach strcpy
(.text+0x438): relocation truncated to fit: R_PARISC_PCREL22F against symbol `strcpy' defined in .text.hot section in arch/parisc/lib/string.o
hppa64-linux-ld: init/main.o(.text+0x748): cannot reach strreplace
init/main.o: in function `initcall_blacklisted':
(.text+0x748): relocation truncated to fit: R_PARISC_PCREL22F against symbol `strreplace' defined in .text section in lib/string.o
hppa64-linux-ld: init/main.o(.text+0x76c): cannot reach strcmp
(.text+0x76c): relocation truncated to fit: R_PARISC_PCREL22F against symbol `strcmp' defined in .text section in lib/string.o
hppa64-linux-ld: init/main.o(.text+0xb54): cannot reach strlcat
init/main.o: in function `do_one_initcall':
(.text+0xb54): relocation truncated to fit: R_PARISC_PCREL22F against symbol `strlcat' defined in .text section in lib/string.o
hppa64-linux-ld: init/main.o(.text+0xde0): cannot reach preempt_schedule_notrace
(.text+0xde0): additional relocation overflows omitted from the output
hppa64-linux-ld: init/main.o(.text+0xe28): cannot reach preempt_schedule_notrace
hppa64-linux-ld: init/main.o(.init.text+0x1b4): cannot reach strcmp
hppa64-linux-ld: init/main.o(.init.text+0x214): cannot reach strcmp
hppa64-linux-ld: init/main.o(.init.text+0x288): cannot reach strcmp
hppa64-linux-ld: init/main.o(.init.text+0x2bc): cannot reach strcmp
hppa64-linux-ld: init/main.o(.init.text+0x324): cannot reach strlen
hppa64-linux-ld: init/main.o(.init.text+0x364): cannot reach strlen
hppa64-linux-ld: init/main.o(.init.text+0x37c): cannot reach memmove
hppa64-linux-ld: init/main.o(.init.text+0x4b0): cannot reach strlen
hppa64-linux-ld: init/main.o(.init.text+0x4f8): cannot reach strlen
hppa64-linux-ld: init/main.o(.init.text+0x5b4): cannot reach strnchr
hppa64-linux-ld: init/main.o(.init.text+0x658): cannot reach strncmp
hppa64-linux-ld: init/main.o(.init.text+0x7e8): cannot reach snprintf
hppa64-linux-ld: init/main.o(.init.text+0x814): cannot reach snprintf
hppa64-linux-ld: init/main.o(.init.text+0x8fc): cannot reach get_option
hppa64-linux-ld: init/main.o(.init.text+0x960): cannot reach kstrtobool
hppa64-linux-ld: init/main.o(.init.text+0xa1c): cannot reach strsep
hppa64-linux-ld: init/main.o(.init.text+0xa74): cannot reach strlen
hppa64-linux-ld: init/main.o(.init.text+0xaa8): cannot reach strlen
hppa64-linux-ld: init/main.o(.init.text+0xadc): cannot reach strcpy
hppa64-linux-ld: init/main.o(.init.text+0xb00): cannot reach __list_add_valid
hppa64-linux-ld: init/main.o(.init.text+0xce8): cannot reach strlcpy
hppa64-linux-ld: init/main.o(.init.text+0xd58): cannot reach rest_init
hppa64-linux-ld: init/main.o(.init.text+0xed4): cannot reach memcmp
hppa64-linux-ld: init/main.o(.init.text+0xf3c): cannot reach strlcpy
hppa64-linux-ld: init/main.o(.init.text+0x100c): cannot reach memcpy
hppa64-linux-ld: init/main.o(.init.text+0x10a8): cannot reach strlen
hppa64-linux-ld: init/main.o(.init.text+0x10d0): cannot reach strlen
hppa64-linux-ld: init/main.o(.init.text+0x10ec): cannot reach strlen
hppa64-linux-ld: init/main.o(.init.text+0x11a0): cannot reach strcpy
hppa64-linux-ld: init/main.o(.init.text+0x11b8): cannot reach strcpy
hppa64-linux-ld: init/main.o(.init.text+0x11d4): cannot reach strcpy
hppa64-linux-ld: init/main.o(.init.text+0x11ec): cannot reach strcpy
hppa64-linux-ld: init/main.o(.init.text+0x1208): cannot reach strlen
hppa64-linux-ld: init/main.o(.init.text+0x1268): cannot reach strcpy
hppa64-linux-ld: init/main.o(.init.text+0x12bc): cannot reach build_all_zonelists
hppa64-linux-ld: init/main.o(.init.text+0x17c4): cannot reach strlen
hppa64-linux-ld: init/main.o(.init.text+0x17dc): cannot reach add_device_randomness
hppa64-linux-ld: init/main.o(.init.text+0x180c): cannot reach profile_init
hppa64-linux-ld: init/main.o(.init.text+0x18f4): cannot reach locking_selftest
hppa64-linux-ld: init/main.o(.init.text+0x1c04): cannot reach wait_for_completion
hppa64-linux-ld: init/main.o(.init.text+0x1d58): cannot reach strlen
hppa64-linux-ld: init/main.o(.init.text+0x1e18): cannot reach strcpy
hppa64-linux-ld: init/main.o(.text.unlikely+0x2d8): cannot reach preempt_schedule_notrace
hppa64-linux-ld: init/main.o(.ref.text+0x20): cannot reach rcu_scheduler_starting
hppa64-linux-ld: init/main.o(.ref.text+0x44): cannot reach kernel_thread
hppa64-linux-ld: init/main.o(.ref.text+0x58): cannot reach __rcu_read_lock
hppa64-linux-ld: init/main.o(.ref.text+0x78): cannot reach find_task_by_pid_ns
hppa64-linux-ld: init/main.o(.ref.text+0xbc): cannot reach set_cpus_allowed_ptr
hppa64-linux-ld: init/main.o(.ref.text+0xcc): cannot reach __rcu_read_unlock
hppa64-linux-ld: init/main.o(.ref.text+0xf0): cannot reach kernel_thread
hppa64-linux-ld: init/main.o(.ref.text+0x104): cannot reach __rcu_read_lock
hppa64-linux-ld: init/main.o(.ref.text+0x11c): cannot reach find_task_by_pid_ns
hppa64-linux-ld: init/main.o(.ref.text+0x138): cannot reach __rcu_read_unlock
hppa64-linux-ld: init/main.o(.ref.text+0x164): cannot reach complete
hppa64-linux-ld: init/main.o(.ref.text+0x184): cannot reach cpu_startup_entry
hppa64-linux-ld: init/main.o(.ref.text+0x1c4): cannot reach unknown
hppa64-linux-ld: init/main.o(.ref.text+0x1d4): cannot reach async_synchronize_full
hppa64-linux-ld: init/main.o(.ref.text+0x204): cannot reach rcu_barrier
hppa64-linux-ld: init/main.o(.ref.text+0x214): cannot reach mark_rodata_ro
hppa64-linux-ld: init/main.o(.ref.text+0x224): cannot reach rodata_test
hppa64-linux-ld: init/main.o(.ref.text+0x244): cannot reach rcu_end_inkernel_boot
>> hppa64-linux-ld: init/main.o(.ref.text+0x254): cannot reach do_sysctl_args
hppa64-linux-ld: init/main.o(.ref.text+0x290): cannot reach unknown
hppa64-linux-ld: init/main.o(.ref.text+0x2ac): cannot reach unknown
hppa64-linux-ld: init/main.o(.ref.text+0x2cc): cannot reach panic
hppa64-linux-ld: init/main.o(.ref.text+0x2d8): cannot reach unknown
hppa64-linux-ld: init/main.o(.ref.text+0x2f4): cannot reach unknown
hppa64-linux-ld: init/main.o(.ref.text+0x310): cannot reach unknown
hppa64-linux-ld: init/main.o(.ref.text+0x32c): cannot reach unknown
hppa64-linux-ld: init/main.o(.ref.text+0x348): cannot reach panic
hppa64-linux-ld: init/do_mounts.o(.text+0x24): cannot reach strcmp
hppa64-linux-ld: init/do_mounts.o(.text+0x9c): cannot reach strncasecmp
hppa64-linux-ld: init/do_mounts.o(.text+0x180): cannot reach strncmp
hppa64-linux-ld: init/do_mounts.o(.text+0x1a4): cannot reach strncmp
hppa64-linux-ld: init/do_mounts.o(.text+0x1c8): cannot reach strncmp
hppa64-linux-ld: init/do_mounts.o(.text+0x1f0): cannot reach strcmp
hppa64-linux-ld: init/do_mounts.o(.text+0x210): cannot reach strcmp
hppa64-linux-ld: init/do_mounts.o(.text+0x234): cannot reach strcmp
hppa64-linux-ld: init/do_mounts.o(.text+0x250): cannot reach strlen
hppa64-linux-ld: init/do_mounts.o(.text+0x278): cannot reach memcpy
hppa64-linux-ld: init/do_mounts.o(.text+0x2d0): cannot reach blk_lookup_devt
hppa64-linux-ld: init/do_mounts.o(.text+0x34c): cannot reach simple_strtoul
hppa64-linux-ld: init/do_mounts.o(.text+0x370): cannot reach blk_lookup_devt
hppa64-linux-ld: init/do_mounts.o(.text+0x3c0): cannot reach blk_lookup_devt
hppa64-linux-ld: init/do_mounts.o(.text+0x41c): cannot reach class_find_device
hppa64-linux-ld: init/do_mounts.o(.text+0x434): cannot reach put_device
hppa64-linux-ld: init/do_mounts.o(.text+0x45c): cannot reach strchr
hppa64-linux-ld: init/do_mounts.o(.text+0x48c): cannot reach sscanf
hppa64-linux-ld: init/do_mounts.o(.text+0x4d0): cannot reach class_find_device
hppa64-linux-ld: init/do_mounts.o(.text+0x4f4): cannot reach put_device
hppa64-linux-ld: init/do_mounts.o(.text+0x50c): cannot reach strlen
hppa64-linux-ld: init/do_mounts.o(.text+0x528): cannot reach put_device
hppa64-linux-ld: init/do_mounts.o(.text+0x560): cannot reach sscanf
hppa64-linux-ld: init/do_mounts.o(.text+0x590): cannot reach sscanf
hppa64-linux-ld: init/do_mounts.o(.text+0x630): cannot reach disk_get_part
hppa64-linux-ld: init/do_mounts.o(.text+0x64c): cannot reach put_device
hppa64-linux-ld: init/do_mounts.o(.text+0x668): cannot reach simple_strtoul
hppa64-linux-ld: init/do_mounts.o(.init.text+0x128): cannot reach simple_strtol
hppa64-linux-ld: init/do_mounts.o(.init.text+0x180): cannot reach simple_strtoul
hppa64-linux-ld: init/do_mounts.o(.init.text+0x1d4): cannot reach strlcpy
hppa64-linux-ld: init/do_mounts.o(.init.text+0x23c): cannot reach strstr
hppa64-linux-ld: init/do_mounts.o(.init.text+0x39c): cannot reach scnprintf
hppa64-linux-ld: init/do_mounts.o(.init.text+0x3c0): cannot reach strcpy
hppa64-linux-ld: init/do_mounts.o(.init.text+0x424): cannot reach strchr
hppa64-linux-ld: init/do_mounts.o(.init.text+0x560): cannot reach strncpy
hppa64-linux-ld: init/do_mounts.o(.init.text+0x688): cannot reach strlen
hppa64-linux-ld: init/do_mounts.o(.init.text+0x6fc): cannot reach strlen
hppa64-linux-ld: init/do_mounts.o(.init.text+0x850): cannot reach wait_for_device_probe
hppa64-linux-ld: init/do_mounts.o(.init.text+0x890): cannot reach strncmp
hppa64-linux-ld: init/do_mounts.o(.init.text+0x8b4): cannot reach strncmp
hppa64-linux-ld: init/do_mounts.o(.init.text+0x924): cannot reach strncmp
hppa64-linux-ld: init/do_mounts.o(.init.text+0x97c): cannot reach driver_probe_done
hppa64-linux-ld: init/do_mounts_initrd.o(.init.text+0x48): cannot reach memparse
hppa64-linux-ld: init/do_mounts_initrd.o(.init.text+0x78): cannot reach memparse
hppa64-linux-ld: init/initramfs.o(.init.text+0xb00): cannot reach strcpy
hppa64-linux-ld: init/initramfs.o(.init.text+0xbf4): cannot reach strcmp
hppa64-linux-ld: init/initramfs.o(.init.text+0xe70): cannot reach __list_add_valid
hppa64-linux-ld: init/initramfs.o(.init.text+0x102c): cannot reach memcpy
hppa64-linux-ld: init/initramfs.o(.init.text+0x1130): cannot reach simple_strtoul
hppa64-linux-ld: init/initramfs.o(.init.text+0x12bc): cannot reach memcmp
hppa64-linux-ld: init/initramfs.o(.init.text+0x12fc): cannot reach memcmp
hppa64-linux-ld: init/initramfs.o(.init.text+0x1700): cannot reach snprintf
hppa64-linux-ld: init/initramfs.o(.init.text+0x179c): cannot reach __list_del_entry_valid
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x6c): cannot reach _raw_spin_lock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0xe8): cannot reach _raw_spin_unlock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x150): cannot reach __this_cpu_preempt_check
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x1a0): cannot reach _raw_spin_lock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x1cc): cannot reach _raw_spin_unlock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x2bc): cannot reach _raw_spin_unlock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x2f4): cannot reach _raw_spin_lock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x36c): cannot reach _raw_spin_unlock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x3b4): cannot reach _raw_spin_lock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x408): cannot reach _raw_spin_unlock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x42c): cannot reach _raw_spin_lock
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x4a0): cannot reach find_next_zero_bit
hppa64-linux-ld: arch/parisc/mm/init.o(.text+0x4d8): cannot reach _raw_spin_unlock
hppa64-linux-ld: arch/parisc/mm/init.o(.init.text+0x550): cannot reach memcmp
hppa64-linux-ld: arch/parisc/mm/init.o(.init.text+0x570): cannot reach memparse
hppa64-linux-ld: arch/parisc/mm/init.o(.init.text+0x9c8): cannot reach memset
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0x80): cannot reach unknown
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0xa8): cannot reach unknown
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0xcc): cannot reach unknown
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0xe8): cannot reach __flush_tlb_range
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0x100): cannot reach flush_kernel_dcache_range_asm
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0x118): cannot reach flush_kernel_icache_range_asm
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0x13c): cannot reach free_reserved_area
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0x14c): cannot reach pdc_chassis_send_status
hppa64-linux-ld: arch/parisc/kernel/setup.o(.init.text+0x1f4): cannot reach __sw_hweight64
hppa64-linux-ld: arch/parisc/kernel/setup.o(.init.text+0x2c4): cannot reach strlcpy
hppa64-linux-ld: arch/parisc/kernel/setup.o(.init.text+0x30c): cannot reach strcpy
hppa64-linux-ld: arch/parisc/kernel/setup.o(.init.text+0x370): cannot reach debug_smp_processor_id
hppa64-linux-ld: arch/parisc/kernel/setup.o(.init.text+0x4b0): cannot reach debug_smp_processor_id
hppa64-linux-ld: arch/parisc/kernel/topology.o(.init.text+0xc0): cannot reach cpumask_next
hppa64-linux-ld: arch/parisc/kernel/topology.o(.init.text+0x194): cannot reach cpumask_next
hppa64-linux-ld: arch/parisc/kernel/topology.o(.init.text+0x2f0): cannot reach cpumask_next
hppa64-linux-ld: kernel/softirq.o(.text+0xc8): cannot reach strlen
hppa64-linux-ld: kernel/softirq.o(.text+0xf0): cannot reach debug_smp_processor_id
hppa64-linux-ld: kernel/softirq.o(.text+0x168): cannot reach strcpy
hppa64-linux-ld: kernel/softirq.o(.text+0x224): cannot reach debug_smp_processor_id
hppa64-linux-ld: kernel/softirq.o(.text+0x304): cannot reach debug_smp_processor_id
hppa64-linux-ld: kernel/softirq.o(.text+0x404): cannot reach strlen
hppa64-linux-ld: kernel/softirq.o(.text+0x460): cannot reach strcpy
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[intel-linux-intel-lts:5.4/yocto 1/1] drivers/spi/spi-dw-pci.c:155:5: sparse: sparse: undefined preprocessor identifier 'CONFIG_PM'
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: 2e228f3df9479e9e061cc7e0b7aba0c071ea22bf
commit: 2e228f3df9479e9e061cc7e0b7aba0c071ea22bf [1/1] REVERT-ME: Temporary Enable D0i3 flow for PSE IOs
config: parisc-randconfig-s031-20210115 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-208-g46a52ca4-dirty
# https://github.com/intel/linux-intel-lts/commit/2e228f3df9479e9e061cc7e0b...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 2e228f3df9479e9e061cc7e0b7aba0c071ea22bf
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> drivers/spi/spi-dw-pci.c:155:5: sparse: sparse: undefined preprocessor identifier 'CONFIG_PM'
vim +/CONFIG_PM +155 drivers/spi/spi-dw-pci.c
154
> 155 #if CONFIG_PM
156 static int dw_spi_runtime_suspend(struct device *dev)
157 {
158 struct dw_spi *dws = dev_get_drvdata(dev);
159 unsigned long j0, j1, delay;
160 u32 d0i3c_reg;
161 u32 cgsr_reg;
162
163 delay = msecs_to_jiffies(100);
164 j0 = jiffies;
165 j1 = j0 + delay;
166
167
168 cgsr_reg = dw_readl(dws, PSE_SPI_CGSR);
169 dw_writel(dws, PSE_SPI_CGSR, PSE_SPI_D0I3_RR);
170
171 d0i3c_reg = dw_readl(dws, PSE_SPI_D0I3C);
172
173 if (d0i3c_reg & PSE_SPI_D0I3_CIP) {
174 dev_info(dev, "%s d0i3c CIP detected", __func__);
175 } else {
176 dw_writel(dws, PSE_SPI_D0I3C, PSE_SPI_D0I3_EN);
177 d0i3c_reg = dw_readl(dws, PSE_SPI_D0I3C);
178 }
179
180 while (time_before(jiffies, j1)) {
181 d0i3c_reg = dw_readl(dws, PSE_SPI_D0I3C);
182 if (!(d0i3c_reg & PSE_SPI_D0I3_CIP))
183 break;
184 }
185
186 if (d0i3c_reg & PSE_SPI_D0I3_CIP)
187 dev_info(dev, "%s: timeout waiting CIP to be cleared",
188 __func__);
189
190 return 0;
191 }
192
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
Re: [PATCH 5/6] powerpc/rtas: rename RTAS_RMOBUF_MAX to RTAS_USER_REGION_SIZE
by kernel test robot
Hi Nathan,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on powerpc/next]
[also build test ERROR on v5.11-rc3 next-20210115]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Nathan-Lynch/powerpc-rtas-miscel...
base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
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
# https://github.com/0day-ci/linux/commit/656368735841abab983fa593b2ddae52a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Nathan-Lynch/powerpc-rtas-miscellaneous-cleanups-user-region-allocation/20210115-113045
git checkout 656368735841abab983fa593b2ddae52a6273a71
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/powerpc/kernel/rtas.c: In function 'in_rmo_buf':
>> arch/powerpc/kernel/rtas.c:990:26: error: 'RTAS_RMOBUF_MAX' undeclared (first use in this function)
990 | base < (rtas_rmo_buf + RTAS_RMOBUF_MAX) &&
| ^~~~~~~~~~~~~~~
arch/powerpc/kernel/rtas.c:990:26: note: each undeclared identifier is reported only once for each function it appears in
arch/powerpc/kernel/rtas.c:994:1: error: control reaches end of non-void function [-Werror=return-type]
994 | }
| ^
cc1: some warnings being treated as errors
vim +/RTAS_RMOBUF_MAX +990 arch/powerpc/kernel/rtas.c
bd59380c5ba4147d Andrew Donnellan 2020-08-20 986
bd59380c5ba4147d Andrew Donnellan 2020-08-20 987 static bool in_rmo_buf(u32 base, u32 end)
bd59380c5ba4147d Andrew Donnellan 2020-08-20 988 {
bd59380c5ba4147d Andrew Donnellan 2020-08-20 989 return base >= rtas_rmo_buf &&
bd59380c5ba4147d Andrew Donnellan 2020-08-20 @990 base < (rtas_rmo_buf + RTAS_RMOBUF_MAX) &&
bd59380c5ba4147d Andrew Donnellan 2020-08-20 991 base <= end &&
bd59380c5ba4147d Andrew Donnellan 2020-08-20 992 end >= rtas_rmo_buf &&
bd59380c5ba4147d Andrew Donnellan 2020-08-20 993 end < (rtas_rmo_buf + RTAS_RMOBUF_MAX);
bd59380c5ba4147d Andrew Donnellan 2020-08-20 994 }
bd59380c5ba4147d Andrew Donnellan 2020-08-20 995
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[aa:master 15/20] mm/swapfile.c:1649:13: error: implicit declaration of function 'page_mapcount_seq_begin'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git master
head: 34dd03a2fe9af1f1a9dbd7ec65eb1f247bdfe0db
commit: 4e14c9de85753f6debbd4e6559a3036d99696326 [15/20] mm: thp: make the THP mapcount atomic against __split_huge_pmd_locked()
config: mips-randconfig-r016-20210115 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git/commit/?id=...
git remote add aa https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git
git fetch --no-tags aa master
git checkout 4e14c9de85753f6debbd4e6559a3036d99696326
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
mm/swapfile.c: In function 'page_trans_huge_map_swapcount':
>> mm/swapfile.c:1649:13: error: implicit declaration of function 'page_mapcount_seq_begin'; did you mean 'page_mapcount_reset'? [-Werror=implicit-function-declaration]
1649 | seqcount = page_mapcount_seq_begin(page);
| ^~~~~~~~~~~~~~~~~~~~~~~
| page_mapcount_reset
>> mm/swapfile.c:1680:6: error: implicit declaration of function 'page_mapcount_seq_retry'; did you mean 'page_mapcount_reset'? [-Werror=implicit-function-declaration]
1680 | if (page_mapcount_seq_retry(page, seqcount))
| ^~~~~~~~~~~~~~~~~~~~~~~
| page_mapcount_reset
cc1: some warnings being treated as errors
vim +1649 mm/swapfile.c
1622
1623 static int page_trans_huge_map_swapcount(struct page *page, int *total_mapcount,
1624 int *total_swapcount)
1625 {
1626 int i, map_swapcount, _total_mapcount, _total_swapcount;
1627 unsigned long offset = 0;
1628 struct swap_info_struct *si;
1629 struct swap_cluster_info *ci = NULL;
1630 unsigned char *map = NULL;
1631 int mapcount, swapcount = 0;
1632 unsigned long seqcount;
1633
1634 /* hugetlbfs shouldn't call it */
1635 VM_BUG_ON_PAGE(PageHuge(page), page);
1636
1637 if (!IS_ENABLED(CONFIG_THP_SWAP) || likely(!PageTransCompound(page))) {
1638 mapcount = page_trans_huge_mapcount(page, total_mapcount);
1639 if (PageSwapCache(page))
1640 swapcount = page_swapcount(page);
1641 if (total_swapcount)
1642 *total_swapcount = swapcount;
1643 return mapcount + swapcount;
1644 }
1645
1646 page = compound_head(page);
1647
1648 again:
> 1649 seqcount = page_mapcount_seq_begin(page);
1650
1651 _total_mapcount = _total_swapcount = map_swapcount = 0;
1652 if (PageSwapCache(page)) {
1653 swp_entry_t entry;
1654
1655 entry.val = page_private(page);
1656 si = _swap_info_get(entry);
1657 if (si) {
1658 map = si->swap_map;
1659 offset = swp_offset(entry);
1660 }
1661 }
1662 if (map)
1663 ci = lock_cluster(si, offset);
1664 for (i = 0; i < HPAGE_PMD_NR; i++) {
1665 mapcount = atomic_read(&page[i]._mapcount) + 1;
1666 _total_mapcount += mapcount;
1667 if (map) {
1668 swapcount = swap_count(map[offset + i]);
1669 _total_swapcount += swapcount;
1670 }
1671 map_swapcount = max(map_swapcount, mapcount + swapcount);
1672 }
1673 unlock_cluster(ci);
1674 if (PageDoubleMap(page)) {
1675 map_swapcount -= 1;
1676 _total_mapcount -= HPAGE_PMD_NR;
1677 }
1678 mapcount = compound_mapcount(page);
1679
> 1680 if (page_mapcount_seq_retry(page, seqcount))
1681 goto again;
1682
1683 map_swapcount += mapcount;
1684 _total_mapcount += mapcount;
1685 if (total_mapcount)
1686 *total_mapcount = _total_mapcount;
1687 if (total_swapcount)
1688 *total_swapcount = _total_swapcount;
1689
1690 return map_swapcount;
1691 }
1692
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[aa:master 44/69] mm/swapfile.c:1649:13: error: implicit declaration of function 'page_mapcount_seq_begin'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git master
head: 34dd03a2fe9af1f1a9dbd7ec65eb1f247bdfe0db
commit: cfc5b41b296c2d61dc124a99904f85d16008bf57 [44/69] mm: thp: make the THP mapcount atomic against __split_huge_pmd_locked()
config: sparc-defconfig (attached as .config)
compiler: sparc-linux-gcc (GCC) 9.3.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git/commit/?id=...
git remote add aa https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git
git fetch --no-tags aa master
git checkout cfc5b41b296c2d61dc124a99904f85d16008bf57
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
mm/swapfile.c: In function 'page_trans_huge_map_swapcount':
>> mm/swapfile.c:1649:13: error: implicit declaration of function 'page_mapcount_seq_begin'; did you mean 'page_mapcount_reset'? [-Werror=implicit-function-declaration]
1649 | seqcount = page_mapcount_seq_begin(page);
| ^~~~~~~~~~~~~~~~~~~~~~~
| page_mapcount_reset
>> mm/swapfile.c:1680:6: error: implicit declaration of function 'page_mapcount_seq_retry'; did you mean 'page_mapcount_reset'? [-Werror=implicit-function-declaration]
1680 | if (page_mapcount_seq_retry(page, seqcount))
| ^~~~~~~~~~~~~~~~~~~~~~~
| page_mapcount_reset
cc1: some warnings being treated as errors
vim +1649 mm/swapfile.c
1622
1623 static int page_trans_huge_map_swapcount(struct page *page, int *total_mapcount,
1624 int *total_swapcount)
1625 {
1626 int i, map_swapcount, _total_mapcount, _total_swapcount;
1627 unsigned long offset = 0;
1628 struct swap_info_struct *si;
1629 struct swap_cluster_info *ci = NULL;
1630 unsigned char *map = NULL;
1631 int mapcount, swapcount = 0;
1632 unsigned long seqcount;
1633
1634 /* hugetlbfs shouldn't call it */
1635 VM_BUG_ON_PAGE(PageHuge(page), page);
1636
1637 if (!IS_ENABLED(CONFIG_THP_SWAP) || likely(!PageTransCompound(page))) {
1638 mapcount = page_trans_huge_mapcount(page, total_mapcount);
1639 if (PageSwapCache(page))
1640 swapcount = page_swapcount(page);
1641 if (total_swapcount)
1642 *total_swapcount = swapcount;
1643 return mapcount + swapcount;
1644 }
1645
1646 page = compound_head(page);
1647
1648 again:
> 1649 seqcount = page_mapcount_seq_begin(page);
1650
1651 _total_mapcount = _total_swapcount = map_swapcount = 0;
1652 if (PageSwapCache(page)) {
1653 swp_entry_t entry;
1654
1655 entry.val = page_private(page);
1656 si = _swap_info_get(entry);
1657 if (si) {
1658 map = si->swap_map;
1659 offset = swp_offset(entry);
1660 }
1661 }
1662 if (map)
1663 ci = lock_cluster(si, offset);
1664 for (i = 0; i < HPAGE_PMD_NR; i++) {
1665 mapcount = atomic_read(&page[i]._mapcount) + 1;
1666 _total_mapcount += mapcount;
1667 if (map) {
1668 swapcount = swap_count(map[offset + i]);
1669 _total_swapcount += swapcount;
1670 }
1671 map_swapcount = max(map_swapcount, mapcount + swapcount);
1672 }
1673 unlock_cluster(ci);
1674 if (PageDoubleMap(page)) {
1675 map_swapcount -= 1;
1676 _total_mapcount -= HPAGE_PMD_NR;
1677 }
1678 mapcount = compound_mapcount(page);
1679
> 1680 if (page_mapcount_seq_retry(page, seqcount))
1681 goto again;
1682
1683 map_swapcount += mapcount;
1684 _total_mapcount += mapcount;
1685 if (total_mapcount)
1686 *total_mapcount = _total_mapcount;
1687 if (total_swapcount)
1688 *total_swapcount = _total_swapcount;
1689
1690 return map_swapcount;
1691 }
1692
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[aa:master 15/20] mm/util.c:738:13: error: implicit declaration of function 'page_mapcount_seq_begin'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git master
head: 34dd03a2fe9af1f1a9dbd7ec65eb1f247bdfe0db
commit: 4e14c9de85753f6debbd4e6559a3036d99696326 [15/20] mm: thp: make the THP mapcount atomic against __split_huge_pmd_locked()
config: arc-randconfig-r011-20210115 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git/commit/?id=...
git remote add aa https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git
git fetch --no-tags aa master
git checkout 4e14c9de85753f6debbd4e6559a3036d99696326
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
mm/util.c: In function 'page_mapping':
mm/util.c:700:15: warning: variable 'entry' set but not used [-Wunused-but-set-variable]
700 | swp_entry_t entry;
| ^~~~~
mm/util.c: In function '__page_mapcount':
>> mm/util.c:738:13: error: implicit declaration of function 'page_mapcount_seq_begin'; did you mean 'page_mapcount_reset'? [-Werror=implicit-function-declaration]
738 | seqcount = page_mapcount_seq_begin(page);
| ^~~~~~~~~~~~~~~~~~~~~~~
| page_mapcount_reset
>> mm/util.c:745:6: error: implicit declaration of function 'page_mapcount_seq_retry'; did you mean 'page_mapcount_reset'? [-Werror=implicit-function-declaration]
745 | if (page_mapcount_seq_retry(page, seqcount))
| ^~~~~~~~~~~~~~~~~~~~~~~
| page_mapcount_reset
cc1: some warnings being treated as errors
vim +738 mm/util.c
723
724 /* Slow path of page_mapcount() for compound pages */
725 int __page_mapcount(struct page *page)
726 {
727 unsigned long seqcount;
728 int ret;
729
730 /*
731 * For file THP page->_mapcount contains total number of mapping
732 * of the page: no need to look into compound_mapcount.
733 */
734 if (!PageAnon(page) && !PageHuge(page))
735 return atomic_read(&page->_mapcount) + 1;
736 page = compound_head(page);
737 again:
> 738 seqcount = page_mapcount_seq_begin(page);
739
740 ret = atomic_read(&page->_mapcount) + 1;
741 ret += atomic_read(compound_mapcount_ptr(page)) + 1;
742 if (PageDoubleMap(page))
743 ret--;
744
> 745 if (page_mapcount_seq_retry(page, seqcount))
746 goto again;
747 return ret;
748 }
749 EXPORT_SYMBOL_GPL(__page_mapcount);
750
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
drivers/char/random.c:1269:41: warning: shift count >= width of type
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20210115-150503/sonicadva...
head: add9d9a623c058dd74282ae99fca6b18fd38e800
commit: add9d9a623c058dd74282ae99fca6b18fd38e800 Adds a new ioctl32 syscall for backwards compatibility layers
date: 5 hours ago
config: mips-randconfig-r001-20210115 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 5b42fd8dd4e7e29125a09a41a33af7c9cb57d144)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://github.com/0day-ci/linux/commit/add9d9a623c058dd74282ae99fca6b18f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20210115-150503/sonicadvance1-gmail-com/Adds-a-new-ioctl32-syscall-for-backwards-compatibility-layers/20210106-145354
git checkout add9d9a623c058dd74282ae99fca6b18fd38e800
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
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 drivers/char/random.c:335:
include/linux/syscalls.h:391:5: error: unknown type name 'compat_ulong_t'
compat_ulong_t arg);
^
>> drivers/char/random.c:1269:41: warning: shift count >= width of type [-Wshift-count-overflow]
c_high = (sizeof(cycles) > 4) ? cycles >> 32 : 0;
^ ~~
drivers/char/random.c:2296:6: warning: no previous prototype for function 'add_hwgenerator_randomness' [-Wmissing-prototypes]
void add_hwgenerator_randomness(const char *buffer, size_t count,
^
drivers/char/random.c:2296:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void add_hwgenerator_randomness(const char *buffer, size_t count,
^
static
2 warnings and 1 error generated.
vim +1269 drivers/char/random.c
ee3e00e9e7101c80 Theodore Ts'o 2014-06-15 1254
775f4b297b780601 Theodore Ts'o 2012-07-02 1255 void add_interrupt_randomness(int irq, int irq_flags)
^1da177e4c3f4152 Linus Torvalds 2005-04-16 1256 {
775f4b297b780601 Theodore Ts'o 2012-07-02 1257 struct entropy_store *r;
1b2a1a7e8ad1144d Christoph Lameter 2014-08-17 1258 struct fast_pool *fast_pool = this_cpu_ptr(&irq_randomness);
775f4b297b780601 Theodore Ts'o 2012-07-02 1259 struct pt_regs *regs = get_irq_regs();
775f4b297b780601 Theodore Ts'o 2012-07-02 1260 unsigned long now = jiffies;
655b226470b22955 Theodore Ts'o 2013-09-22 1261 cycles_t cycles = random_get_entropy();
43759d4f429c8d55 Theodore Ts'o 2014-06-14 1262 __u32 c_high, j_high;
655b226470b22955 Theodore Ts'o 2013-09-22 1263 __u64 ip;
83664a6928a420b5 H. Peter Anvin 2014-03-17 1264 unsigned long seed;
91fcb532efe366d7 Theodore Ts'o 2014-06-10 1265 int credit = 0;
655b226470b22955 Theodore Ts'o 2013-09-22 1266
ee3e00e9e7101c80 Theodore Ts'o 2014-06-15 1267 if (cycles == 0)
ee3e00e9e7101c80 Theodore Ts'o 2014-06-15 1268 cycles = get_reg(fast_pool, regs);
655b226470b22955 Theodore Ts'o 2013-09-22 @1269 c_high = (sizeof(cycles) > 4) ? cycles >> 32 : 0;
655b226470b22955 Theodore Ts'o 2013-09-22 1270 j_high = (sizeof(now) > 4) ? now >> 32 : 0;
43759d4f429c8d55 Theodore Ts'o 2014-06-14 1271 fast_pool->pool[0] ^= cycles ^ j_high ^ irq;
43759d4f429c8d55 Theodore Ts'o 2014-06-14 1272 fast_pool->pool[1] ^= now ^ c_high;
655b226470b22955 Theodore Ts'o 2013-09-22 1273 ip = regs ? instruction_pointer(regs) : _RET_IP_;
43759d4f429c8d55 Theodore Ts'o 2014-06-14 1274 fast_pool->pool[2] ^= ip;
ee3e00e9e7101c80 Theodore Ts'o 2014-06-15 1275 fast_pool->pool[3] ^= (sizeof(ip) > 4) ? ip >> 32 :
ee3e00e9e7101c80 Theodore Ts'o 2014-06-15 1276 get_reg(fast_pool, regs);
3060d6fe28570640 Yinghai Lu 2008-08-19 1277
43759d4f429c8d55 Theodore Ts'o 2014-06-14 1278 fast_mix(fast_pool);
43759d4f429c8d55 Theodore Ts'o 2014-06-14 1279 add_interrupt_bench(cycles);
3060d6fe28570640 Yinghai Lu 2008-08-19 1280
43838a23a05fbd13 Theodore Ts'o 2018-04-11 1281 if (unlikely(crng_init == 0)) {
e192be9d9a30555a Theodore Ts'o 2016-06-12 1282 if ((fast_pool->count >= 64) &&
e192be9d9a30555a Theodore Ts'o 2016-06-12 1283 crng_fast_load((char *) fast_pool->pool,
e192be9d9a30555a Theodore Ts'o 2016-06-12 1284 sizeof(fast_pool->pool))) {
e192be9d9a30555a Theodore Ts'o 2016-06-12 1285 fast_pool->count = 0;
e192be9d9a30555a Theodore Ts'o 2016-06-12 1286 fast_pool->last = now;
e192be9d9a30555a Theodore Ts'o 2016-06-12 1287 }
e192be9d9a30555a Theodore Ts'o 2016-06-12 1288 return;
e192be9d9a30555a Theodore Ts'o 2016-06-12 1289 }
e192be9d9a30555a Theodore Ts'o 2016-06-12 1290
840f95077ffd640d Theodore Ts'o 2014-06-14 1291 if ((fast_pool->count < 64) &&
840f95077ffd640d Theodore Ts'o 2014-06-14 1292 !time_after(now, fast_pool->last + HZ))
^1da177e4c3f4152 Linus Torvalds 2005-04-16 1293 return;
^1da177e4c3f4152 Linus Torvalds 2005-04-16 1294
e192be9d9a30555a Theodore Ts'o 2016-06-12 1295 r = &input_pool;
840f95077ffd640d Theodore Ts'o 2014-06-14 1296 if (!spin_trylock(&r->lock))
91fcb532efe366d7 Theodore Ts'o 2014-06-10 1297 return;
83664a6928a420b5 H. Peter Anvin 2014-03-17 1298
91fcb532efe366d7 Theodore Ts'o 2014-06-10 1299 fast_pool->last = now;
85608f8e16c28f81 Theodore Ts'o 2014-06-10 1300 __mix_pool_bytes(r, &fast_pool->pool, sizeof(fast_pool->pool));
83664a6928a420b5 H. Peter Anvin 2014-03-17 1301
83664a6928a420b5 H. Peter Anvin 2014-03-17 1302 /*
83664a6928a420b5 H. Peter Anvin 2014-03-17 1303 * If we have architectural seed generator, produce a seed and
48d6be955a7167b0 Theodore Ts'o 2014-07-17 1304 * add it to the pool. For the sake of paranoia don't let the
48d6be955a7167b0 Theodore Ts'o 2014-07-17 1305 * architectural seed generator dominate the input from the
48d6be955a7167b0 Theodore Ts'o 2014-07-17 1306 * interrupt noise.
83664a6928a420b5 H. Peter Anvin 2014-03-17 1307 */
83664a6928a420b5 H. Peter Anvin 2014-03-17 1308 if (arch_get_random_seed_long(&seed)) {
85608f8e16c28f81 Theodore Ts'o 2014-06-10 1309 __mix_pool_bytes(r, &seed, sizeof(seed));
48d6be955a7167b0 Theodore Ts'o 2014-07-17 1310 credit = 1;
83664a6928a420b5 H. Peter Anvin 2014-03-17 1311 }
91fcb532efe366d7 Theodore Ts'o 2014-06-10 1312 spin_unlock(&r->lock);
83664a6928a420b5 H. Peter Anvin 2014-03-17 1313
ee3e00e9e7101c80 Theodore Ts'o 2014-06-15 1314 fast_pool->count = 0;
83664a6928a420b5 H. Peter Anvin 2014-03-17 1315
ee3e00e9e7101c80 Theodore Ts'o 2014-06-15 1316 /* award one bit for the contents of the fast pool */
ee3e00e9e7101c80 Theodore Ts'o 2014-06-15 1317 credit_entropy_bits(r, credit + 1);
^1da177e4c3f4152 Linus Torvalds 2005-04-16 1318 }
4b44f2d18a330565 Stephan Mueller 2016-05-02 1319 EXPORT_SYMBOL_GPL(add_interrupt_randomness);
^1da177e4c3f4152 Linus Torvalds 2005-04-16 1320
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months