[linuxppc:next-test 214/220] arch/powerpc/lib/restart_table.c:14:15: error: no previous prototype for function 'search_kernel_restart_table'
by kernel test robot
tree: https://github.com/linuxppc/linux next-test
head: 91fc46eced0f70526d74468ac6c932c90a8585b3
commit: 9b69d48c7516a29cdaacd18d8bf5f575014a42a1 [214/220] powerpc/64e: remove implicit soft-masking and interrupt exit restart logic
config: powerpc-buildonly-randconfig-r003-20210630 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d21d5472501460933e78aead04cf59579025ba4)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://github.com/linuxppc/linux/commit/9b69d48c7516a29cdaacd18d8bf5f575...
git remote add linuxppc https://github.com/linuxppc/linux
git fetch --no-tags linuxppc next-test
git checkout 9b69d48c7516a29cdaacd18d8bf5f575014a42a1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 >>):
__do_insb
^
arch/powerpc/include/asm/io.h:556:56: note: expanded from macro '__do_insb'
#define __do_insb(p, b, n) readsb((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from arch/powerpc/lib/restart_table.c:1:
In file included from arch/powerpc/include/asm/interrupt.h:70:
In file included from include/linux/hardirq.h:11:
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:45:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (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>:204: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 arch/powerpc/lib/restart_table.c:1:
In file included from arch/powerpc/include/asm/interrupt.h:70:
In file included from include/linux/hardirq.h:11:
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: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-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>:206: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 arch/powerpc/lib/restart_table.c:1:
In file included from arch/powerpc/include/asm/interrupt.h:70:
In file included from include/linux/hardirq.h:11:
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: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-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>:208: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 arch/powerpc/lib/restart_table.c:1:
In file included from arch/powerpc/include/asm/interrupt.h:70:
In file included from include/linux/hardirq.h:11:
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: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-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>:210: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 arch/powerpc/lib/restart_table.c:1:
In file included from arch/powerpc/include/asm/interrupt.h:70:
In file included from include/linux/hardirq.h:11:
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: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-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>:212: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))
~~~~~~~~~~~~~~~~~~~~~^
>> arch/powerpc/lib/restart_table.c:14:15: error: no previous prototype for function 'search_kernel_restart_table' [-Werror,-Wmissing-prototypes]
unsigned long search_kernel_restart_table(unsigned long addr)
^
arch/powerpc/lib/restart_table.c:14:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
unsigned long search_kernel_restart_table(unsigned long addr)
^
static
13 errors generated.
vim +/search_kernel_restart_table +14 arch/powerpc/lib/restart_table.c
f23699c93becd7 Nicholas Piggin 2021-06-18 12
f23699c93becd7 Nicholas Piggin 2021-06-18 13 /* Given an address, look for it in the kernel exception table */
f23699c93becd7 Nicholas Piggin 2021-06-18 @14 unsigned long search_kernel_restart_table(unsigned long addr)
:::::: The code at line 14 was first introduced by commit
:::::: f23699c93becd746295aaa506537882a46a62219 powerpc/64: allow alternate return locations for soft-masked interrupts
:::::: TO: Nicholas Piggin <npiggin(a)gmail.com>
:::::: CC: Michael Ellerman <mpe(a)ellerman.id.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
[luto:sched/lazymm 4/14] kernel/kthread.c:1328:45: error: 'struct mm_struct' has no member named 'membarrier_state'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git sched/lazymm
head: 717e171609e72e2f3362c56eab7732cb2e08d2f7
commit: 23acc5c0beb85dd411c8588ca927ceb24a0ec22e [4/14] membarrier: Make the post-switch-mm barrier explicit
config: i386-tinyconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git/commit/?id...
git remote add luto https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git
git fetch --no-tags luto sched/lazymm
git checkout 23acc5c0beb85dd411c8588ca927ceb24a0ec22e
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
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 >>):
kernel/kthread.c: In function 'kthread_use_mm':
>> kernel/kthread.c:1328:45: error: 'struct mm_struct' has no member named 'membarrier_state'
1328 | membarrier_finish_switch_mm(atomic_read(&mm->membarrier_state));
| ^~
--
kernel/sched/core.c: In function 'ttwu_stat':
kernel/sched/core.c:2916:13: warning: variable 'rq' set but not used [-Wunused-but-set-variable]
2916 | struct rq *rq;
| ^~
kernel/sched/core.c: In function 'context_switch':
>> kernel/sched/core.c:4316:33: error: 'struct rq' has no member named 'membarrier_state'
4316 | membarrier_finish_switch_mm(rq->membarrier_state);
| ^~
vim +1328 kernel/kthread.c
1304
1305 /**
1306 * kthread_use_mm - make the calling kthread operate on an address space
1307 * @mm: address space to operate on
1308 */
1309 void kthread_use_mm(struct mm_struct *mm)
1310 {
1311 struct mm_struct *active_mm;
1312 struct task_struct *tsk = current;
1313
1314 WARN_ON_ONCE(!(tsk->flags & PF_KTHREAD));
1315 WARN_ON_ONCE(tsk->mm);
1316
1317 task_lock(tsk);
1318 /* Hold off tlb flush IPIs while switching mm's */
1319 local_irq_disable();
1320 active_mm = tsk->active_mm;
1321 if (active_mm != mm) {
1322 mmgrab(mm);
1323 tsk->active_mm = mm;
1324 }
1325 tsk->mm = mm;
1326 membarrier_update_current_mm(mm);
1327 switch_mm_irqs_off(active_mm, mm, tsk);
> 1328 membarrier_finish_switch_mm(atomic_read(&mm->membarrier_state));
1329 local_irq_enable();
1330 task_unlock(tsk);
1331 #ifdef finish_arch_post_lock_switch
1332 finish_arch_post_lock_switch();
1333 #endif
1334
1335 if (active_mm != mm)
1336 mmdrop(active_mm);
1337
1338 to_kthread(tsk)->oldfs = force_uaccess_begin();
1339 }
1340 EXPORT_SYMBOL_GPL(kthread_use_mm);
1341
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
[sashal-linux-stable:pending-4.4 35/56] arch/arc/include/uapi/asm/sigcontext.h:20:25: error: field 'v2abi' has incomplete type
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-4.4
head: 9308d4071af033adc77cbb32e4b07fd2fcdf67f7
commit: 340a68005827180b206a51ab53929404d505dc4b [35/56] ARCv2: save ABI registers across signal handling
config: arc-nsimosci_defconfig (attached as .config)
compiler: arc-elf-gcc (GCC) 7.5.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/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable pending-4.4
git checkout 340a68005827180b206a51ab53929404d505dc4b
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross O=build_dir ARCH=arc prepare
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 >>):
In file included from include/asm-generic/signal.h:10:0,
from arch/arc/include/uapi/asm/signal.h:25,
from include/uapi/linux/signal.h:4,
from include/linux/signal.h:6,
from include/linux/sched.h:37,
from arch/arc/kernel/asm-offsets.c:9:
>> arch/arc/include/uapi/asm/sigcontext.h:20:25: error: field 'v2abi' has incomplete type
struct user_regs_arcv2 v2abi;
^~~~~
--
In file included from include/asm-generic/signal.h:10:0,
from arch/arc/include/uapi/asm/signal.h:25,
from include/uapi/linux/signal.h:4,
from include/linux/signal.h:6,
from include/linux/sched.h:37,
from include/linux/uaccess.h:4,
from include/linux/highmem.h:8,
from include/linux/pagemap.h:10,
from arch/arc/include/asm/tlb.h:44,
from arch/arc/kernel/setup.c:23:
>> arch/arc/include/uapi/asm/sigcontext.h:20:25: error: field 'v2abi' has incomplete type
struct user_regs_arcv2 v2abi;
^~~~~
In file included from arch/arc/include/asm/tlb.h:44:0,
from arch/arc/kernel/setup.c:23:
include/linux/pagemap.h: In function 'fault_in_multipages_readable':
include/linux/pagemap.h:632:16: warning: variable 'c' set but not used [-Wunused-but-set-variable]
volatile char c;
^
--
In file included from include/asm-generic/signal.h:10:0,
from arch/arc/include/uapi/asm/signal.h:25,
from include/uapi/linux/signal.h:4,
from include/linux/signal.h:6,
from include/linux/sched.h:37,
from include/acpi/platform/aclinux.h:79,
from include/acpi/platform/acenv.h:174,
from include/acpi/acpi.h:56,
from include/linux/acpi.h:33,
from include/linux/irqchip.h:14,
from arch/arc/kernel/irq.c:11:
>> arch/arc/include/uapi/asm/sigcontext.h:20:25: error: field 'v2abi' has incomplete type
struct user_regs_arcv2 v2abi;
^~~~~
arch/arc/kernel/irq.c:21:13: warning: no previous declaration for 'init_IRQ' [-Wmissing-declarations]
void __init init_IRQ(void)
^~~~~~~~
arch/arc/kernel/irq.c:44:6: warning: no previous declaration for 'arch_do_IRQ' [-Wmissing-declarations]
void arch_do_IRQ(unsigned int irq, struct pt_regs *regs)
^~~~~~~~~~~
--
In file included from include/asm-generic/signal.h:10:0,
from arch/arc/include/uapi/asm/signal.h:25,
from include/uapi/linux/signal.h:4,
from include/linux/signal.h:6,
from include/linux/sched.h:37,
from arch/arc/kernel/time.c:35:
>> arch/arc/include/uapi/asm/sigcontext.h:20:25: error: field 'v2abi' has incomplete type
struct user_regs_arcv2 v2abi;
^~~~~
arch/arc/kernel/time.c:161:5: warning: no previous declaration for 'arc_counter_setup' [-Wmissing-declarations]
int arc_counter_setup(void)
^~~~~~~~~~~~~~~~~
In file included from arch/arc/kernel/time.c:41:0:
include/linux/clocksource.h:113:75: warning: signed and unsigned type in conditional expression [-Wsign-compare]
#define CLOCKSOURCE_MASK(bits) (cycle_t)((bits) < 64 ? ((1ULL<<(bits))-1) : -1)
^
arch/arc/kernel/time.c:180:12: note: in expansion of macro 'CLOCKSOURCE_MASK'
.mask = CLOCKSOURCE_MASK(32),
^~~~~~~~~~~~~~~~
arch/arc/kernel/time.c: In function 'arc_local_timer_setup':
arch/arc/kernel/time.c:253:6: warning: old-style function definition [-Wold-style-definition]
void arc_local_timer_setup()
^~~~~~~~~~~~~~~~~~~~~
arch/arc/kernel/time.c: At top level:
arch/arc/kernel/time.c:276:13: warning: no previous declaration for 'time_init' [-Wmissing-declarations]
void __init time_init(void)
^~~~~~~~~
--
In file included from include/asm-generic/signal.h:10:0,
from arch/arc/include/uapi/asm/signal.h:25,
from include/uapi/linux/signal.h:4,
from include/linux/signal.h:6,
from include/linux/sched.h:37,
from include/linux/ptrace.h:5,
from arch/arc/kernel/ptrace.c:9:
>> arch/arc/include/uapi/asm/sigcontext.h:20:25: error: field 'v2abi' has incomplete type
struct user_regs_arcv2 v2abi;
^~~~~
In file included from include/linux/ptrace.h:4:0,
from arch/arc/kernel/ptrace.c:9:
include/linux/regset.h: In function 'user_regset_copyout':
include/linux/regset.h:227:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
BUG_ON(*pos < start_pos);
^
include/linux/compiler.h:182:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
include/linux/regset.h:227:2: note: in expansion of macro 'BUG_ON'
BUG_ON(*pos < start_pos);
^~~~~~
In file included from arch/arc/kernel/ptrace.c:11:0:
include/linux/regset.h:228:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (end_pos < 0 || *pos < end_pos) {
^
In file included from include/linux/ptrace.h:4:0,
from arch/arc/kernel/ptrace.c:9:
include/linux/regset.h: In function 'user_regset_copyin':
include/linux/regset.h:252:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
BUG_ON(*pos < start_pos);
^
include/linux/compiler.h:182:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
include/linux/regset.h:252:2: note: in expansion of macro 'BUG_ON'
BUG_ON(*pos < start_pos);
^~~~~~
In file included from arch/arc/kernel/ptrace.c:11:0:
include/linux/regset.h:253:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (end_pos < 0 || *pos < end_pos) {
^
In file included from include/linux/ptrace.h:4:0,
from arch/arc/kernel/ptrace.c:9:
include/linux/regset.h: In function 'user_regset_copyout_zero':
include/linux/regset.h:282:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
BUG_ON(*pos < start_pos);
^
include/linux/compiler.h:182:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
include/linux/regset.h:282:2: note: in expansion of macro 'BUG_ON'
BUG_ON(*pos < start_pos);
^~~~~~
In file included from arch/arc/kernel/ptrace.c:11:0:
include/linux/regset.h:283:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (end_pos < 0 || *pos < end_pos) {
^
In file included from include/linux/ptrace.h:4:0,
from arch/arc/kernel/ptrace.c:9:
include/linux/regset.h: In function 'user_regset_copyin_ignore':
include/linux/regset.h:308:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
BUG_ON(*pos < start_pos);
^
include/linux/compiler.h:182:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
include/linux/regset.h:308:2: note: in expansion of macro 'BUG_ON'
BUG_ON(*pos < start_pos);
^~~~~~
In file included from arch/arc/kernel/ptrace.c:11:0:
include/linux/regset.h:309:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (end_pos < 0 || *pos < end_pos) {
^
arch/arc/kernel/ptrace.c: At top level:
arch/arc/kernel/ptrace.c:237:16: warning: no previous declaration for 'syscall_trace_entry' [-Wmissing-declarations]
asmlinkage int syscall_trace_entry(struct pt_regs *regs)
^~~~~~~~~~~~~~~~~~~
arch/arc/kernel/ptrace.c:245:17: warning: no previous declaration for 'syscall_trace_exit' [-Wmissing-declarations]
asmlinkage void syscall_trace_exit(struct pt_regs *regs)
^~~~~~~~~~~~~~~~~~
--
In file included from include/asm-generic/signal.h:10:0,
from arch/arc/include/uapi/asm/signal.h:25,
from include/uapi/linux/signal.h:4,
from include/linux/signal.h:6,
from include/linux/sched.h:37,
from arch/arc/kernel/process.c:13:
>> arch/arc/include/uapi/asm/sigcontext.h:20:25: error: field 'v2abi' has incomplete type
struct user_regs_arcv2 v2abi;
^~~~~
In file included from arch/arc/kernel/process.c:19:0:
include/linux/syscalls.h:180:18: warning: no previous declaration for 'sys_arc_gettls' [-Wmissing-declarations]
asmlinkage long sys_##sname(void)
^
arch/arc/kernel/process.c:39:1: note: in expansion of macro 'SYSCALL_DEFINE0'
SYSCALL_DEFINE0(arc_gettls)
^~~~~~~~~~~~~~~
arch/arc/kernel/process.c:213:5: warning: no previous declaration for 'dump_fpu' [-Wmissing-declarations]
int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu)
^~~~~~~~
--
In file included from include/asm-generic/signal.h:10:0,
from arch/arc/include/uapi/asm/signal.h:25,
from include/uapi/linux/signal.h:4,
from include/linux/signal.h:6,
from arch/arc/kernel/signal.c:50:
>> arch/arc/include/uapi/asm/sigcontext.h:20:25: error: field 'v2abi' has incomplete type
struct user_regs_arcv2 v2abi;
^~~~~
In file included from arch/arc/kernel/signal.c:54:0:
include/linux/syscalls.h:180:18: warning: no previous declaration for 'sys_rt_sigreturn' [-Wmissing-declarations]
asmlinkage long sys_##sname(void)
^
arch/arc/kernel/signal.c:195:1: note: in expansion of macro 'SYSCALL_DEFINE0'
SYSCALL_DEFINE0(rt_sigreturn)
^~~~~~~~~~~~~~~
arch/arc/kernel/signal.c:402:6: warning: no previous declaration for 'do_signal' [-Wmissing-declarations]
void do_signal(struct pt_regs *regs)
^~~~~~~~~
arch/arc/kernel/signal.c: In function 'do_signal':
arch/arc/kernel/signal.c:420:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (regs->r0 == -ERESTARTNOHAND ||
^~
arch/arc/kernel/signal.c:421:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
regs->r0 == -ERESTARTSYS || regs->r0 == -ERESTARTNOINTR) {
^~
arch/arc/kernel/signal.c:421:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
regs->r0 == -ERESTARTSYS || regs->r0 == -ERESTARTNOINTR) {
^~
arch/arc/kernel/signal.c:424:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
} else if (regs->r0 == -ERESTART_RESTARTBLOCK) {
^~
arch/arc/kernel/signal.c: At top level:
arch/arc/kernel/signal.c:435:6: warning: no previous declaration for 'do_notify_resume' [-Wmissing-declarations]
void do_notify_resume(struct pt_regs *regs)
^~~~~~~~~~~~~~~~
--
In file included from include/asm-generic/signal.h:10:0,
from arch/arc/include/uapi/asm/signal.h:25,
from include/uapi/linux/signal.h:4,
from include/linux/signal.h:6,
from include/linux/sched.h:37,
from arch/arc/kernel/traps.c:16:
>> arch/arc/include/uapi/asm/sigcontext.h:20:25: error: field 'v2abi' has incomplete type
struct user_regs_arcv2 v2abi;
^~~~~
arch/arc/kernel/traps.c:80:48: warning: no previous declaration for 'do_privilege_fault' [-Wmissing-declarations]
DO_ERROR_INFO(SIGILL, "Priv Op/Disabled Extn", do_privilege_fault, ILL_PRVOPC)
^
arch/arc/kernel/traps.c:66:5: note: in definition of macro 'DO_ERROR_INFO'
int name(unsigned long address, struct pt_regs *regs) \
^~~~
arch/arc/kernel/traps.c:81:44: warning: no previous declaration for 'do_extension_fault' [-Wmissing-declarations]
DO_ERROR_INFO(SIGILL, "Invalid Extn Insn", do_extension_fault, ILL_ILLOPC)
^
arch/arc/kernel/traps.c:66:5: note: in definition of macro 'DO_ERROR_INFO'
int name(unsigned long address, struct pt_regs *regs) \
^~~~
arch/arc/kernel/traps.c:82:48: warning: no previous declaration for 'insterror_is_error' [-Wmissing-declarations]
DO_ERROR_INFO(SIGILL, "Illegal Insn (or Seq)", insterror_is_error, ILL_ILLOPC)
^
arch/arc/kernel/traps.c:66:5: note: in definition of macro 'DO_ERROR_INFO'
int name(unsigned long address, struct pt_regs *regs) \
^~~~
arch/arc/kernel/traps.c:83:45: warning: no previous declaration for 'do_memory_error' [-Wmissing-declarations]
DO_ERROR_INFO(SIGBUS, "Invalid Mem Access", do_memory_error, BUS_ADRERR)
^
arch/arc/kernel/traps.c:66:5: note: in definition of macro 'DO_ERROR_INFO'
int name(unsigned long address, struct pt_regs *regs) \
^~~~
arch/arc/kernel/traps.c:84:42: warning: no previous declaration for 'trap_is_brkpt' [-Wmissing-declarations]
DO_ERROR_INFO(SIGTRAP, "Breakpoint Set", trap_is_brkpt, TRAP_BRKPT)
^
arch/arc/kernel/traps.c:66:5: note: in definition of macro 'DO_ERROR_INFO'
int name(unsigned long address, struct pt_regs *regs) \
^~~~
arch/arc/kernel/traps.c:85:44: warning: no previous declaration for 'do_misaligned_error' [-Wmissing-declarations]
DO_ERROR_INFO(SIGBUS, "Misaligned Access", do_misaligned_error, BUS_ADRALN)
^
arch/arc/kernel/traps.c:66:5: note: in definition of macro 'DO_ERROR_INFO'
int name(unsigned long address, struct pt_regs *regs) \
^~~~
arch/arc/kernel/traps.c:90:5: warning: no previous declaration for 'do_misaligned_access' [-Wmissing-declarations]
int do_misaligned_access(unsigned long address, struct pt_regs *regs,
^~~~~~~~~~~~~~~~~~~~
arch/arc/kernel/traps.c:104:6: warning: no previous declaration for 'do_machine_check_fault' [-Wmissing-declarations]
void do_machine_check_fault(unsigned long address, struct pt_regs *regs)
^~~~~~~~~~~~~~~~~~~~~~
arch/arc/kernel/traps.c:119:6: warning: no previous declaration for 'do_non_swi_trap' [-Wmissing-declarations]
void do_non_swi_trap(unsigned long address, struct pt_regs *regs)
^~~~~~~~~~~~~~~
arch/arc/kernel/traps.c:147:6: warning: no previous declaration for 'do_insterror_or_kprobe' [-Wmissing-declarations]
void do_insterror_or_kprobe(unsigned long address, struct pt_regs *regs)
^~~~~~~~~~~~~~~~~~~~~~
arch/arc/kernel/traps.c:162:6: warning: no previous declaration for 'abort' [-Wmissing-declarations]
void abort(void)
^~~~~
--
In file included from include/asm-generic/signal.h:10:0,
from arch/arc/include/uapi/asm/signal.h:25,
from include/uapi/linux/signal.h:4,
from include/linux/signal.h:6,
from include/linux/syscalls.h:73,
from arch/arc/kernel/sys.c:2:
>> arch/arc/include/uapi/asm/sigcontext.h:20:25: error: field 'v2abi' has incomplete type
struct user_regs_arcv2 v2abi;
^~~~~
arch/arc/kernel/sys.c:11:36: warning: initialized field overwritten [-Woverride-init]
#define __SYSCALL(nr, call) [nr] = (call),
^
include/uapi/asm-generic/unistd.h:28:37: note: in expansion of macro '__SYSCALL'
#define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
^~~~~~~~~
include/uapi/asm-generic/unistd.h:33:1: note: in expansion of macro '__SC_COMP'
__SC_COMP(__NR_io_setup, sys_io_setup, compat_sys_io_setup)
^~~~~~~~~
arch/arc/kernel/sys.c:11:36: note: (near initialization for 'sys_call_table[0]')
#define __SYSCALL(nr, call) [nr] = (call),
^
include/uapi/asm-generic/unistd.h:28:37: note: in expansion of macro '__SYSCALL'
#define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
^~~~~~~~~
include/uapi/asm-generic/unistd.h:33:1: note: in expansion of macro '__SC_COMP'
__SC_COMP(__NR_io_setup, sys_io_setup, compat_sys_io_setup)
^~~~~~~~~
arch/arc/kernel/sys.c:11:36: warning: initialized field overwritten [-Woverride-init]
#define __SYSCALL(nr, call) [nr] = (call),
^
include/uapi/asm-generic/unistd.h:35:1: note: in expansion of macro '__SYSCALL'
__SYSCALL(__NR_io_destroy, sys_io_destroy)
^~~~~~~~~
arch/arc/kernel/sys.c:11:36: note: (near initialization for 'sys_call_table[1]')
#define __SYSCALL(nr, call) [nr] = (call),
^
include/uapi/asm-generic/unistd.h:35:1: note: in expansion of macro '__SYSCALL'
__SYSCALL(__NR_io_destroy, sys_io_destroy)
^~~~~~~~~
arch/arc/kernel/sys.c:11:36: warning: initialized field overwritten [-Woverride-init]
#define __SYSCALL(nr, call) [nr] = (call),
^
include/uapi/asm-generic/unistd.h:28:37: note: in expansion of macro '__SYSCALL'
#define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
^~~~~~~~~
include/uapi/asm-generic/unistd.h:37:1: note: in expansion of macro '__SC_COMP'
__SC_COMP(__NR_io_submit, sys_io_submit, compat_sys_io_submit)
^~~~~~~~~
arch/arc/kernel/sys.c:11:36: note: (near initialization for 'sys_call_table[2]')
#define __SYSCALL(nr, call) [nr] = (call),
^
include/uapi/asm-generic/unistd.h:28:37: note: in expansion of macro '__SYSCALL'
#define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
^~~~~~~~~
include/uapi/asm-generic/unistd.h:37:1: note: in expansion of macro '__SC_COMP'
__SC_COMP(__NR_io_submit, sys_io_submit, compat_sys_io_submit)
^~~~~~~~~
arch/arc/kernel/sys.c:11:36: warning: initialized field overwritten [-Woverride-init]
#define __SYSCALL(nr, call) [nr] = (call),
^
include/uapi/asm-generic/unistd.h:39:1: note: in expansion of macro '__SYSCALL'
__SYSCALL(__NR_io_cancel, sys_io_cancel)
^~~~~~~~~
arch/arc/kernel/sys.c:11:36: note: (near initialization for 'sys_call_table[3]')
#define __SYSCALL(nr, call) [nr] = (call),
^
include/uapi/asm-generic/unistd.h:39:1: note: in expansion of macro '__SYSCALL'
__SYSCALL(__NR_io_cancel, sys_io_cancel)
^~~~~~~~~
arch/arc/kernel/sys.c:11:36: warning: initialized field overwritten [-Woverride-init]
#define __SYSCALL(nr, call) [nr] = (call),
^
include/uapi/asm-generic/unistd.h:28:37: note: in expansion of macro '__SYSCALL'
#define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
^~~~~~~~~
include/uapi/asm-generic/unistd.h:41:1: note: in expansion of macro '__SC_COMP'
__SC_COMP(__NR_io_getevents, sys_io_getevents, compat_sys_io_getevents)
^~~~~~~~~
arch/arc/kernel/sys.c:11:36: note: (near initialization for 'sys_call_table[4]')
#define __SYSCALL(nr, call) [nr] = (call),
^
include/uapi/asm-generic/unistd.h:28:37: note: in expansion of macro '__SYSCALL'
#define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
^~~~~~~~~
include/uapi/asm-generic/unistd.h:41:1: note: in expansion of macro '__SC_COMP'
__SC_COMP(__NR_io_getevents, sys_io_getevents, compat_sys_io_getevents)
^~~~~~~~~
arch/arc/kernel/sys.c:11:36: warning: initialized field overwritten [-Woverride-init]
#define __SYSCALL(nr, call) [nr] = (call),
^
include/uapi/asm-generic/unistd.h:45:1: note: in expansion of macro '__SYSCALL'
__SYSCALL(__NR_setxattr, sys_setxattr)
^~~~~~~~~
arch/arc/kernel/sys.c:11:36: note: (near initialization for 'sys_call_table[5]')
#define __SYSCALL(nr, call) [nr] = (call),
^
include/uapi/asm-generic/unistd.h:45:1: note: in expansion of macro '__SYSCALL'
__SYSCALL(__NR_setxattr, sys_setxattr)
^~~~~~~~~
arch/arc/kernel/sys.c:11:36: warning: initialized field overwritten [-Woverride-init]
#define __SYSCALL(nr, call) [nr] = (call),
^
include/uapi/asm-generic/unistd.h:47:1: note: in expansion of macro '__SYSCALL'
__SYSCALL(__NR_lsetxattr, sys_lsetxattr)
^~~~~~~~~
arch/arc/kernel/sys.c:11:36: note: (near initialization for 'sys_call_table[6]')
#define __SYSCALL(nr, call) [nr] = (call),
..
vim +/v2abi +20 arch/arc/include/uapi/asm/sigcontext.h
13
14 /*
15 * Signal context structure - contains all info to do with the state
16 * before the signal handler was invoked.
17 */
18 struct sigcontext {
19 struct user_regs_struct regs;
> 20 struct user_regs_arcv2 v2abi;
21 };
22
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
Re: [PATCH v5 2/3] btrfs: initial fsverity support
by Dan Carpenter
Hi Boris,
url: https://github.com/0day-ci/linux/commits/Boris-Burkov/btrfs-support-fsver...
base: https://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-next
config: parisc-randconfig-m031-20210625 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
New smatch warnings:
fs/btrfs/verity.c:268 write_key_bytes() error: uninitialized symbol 'ret'.
fs/btrfs/verity.c:745 btrfs_write_merkle_tree_block() warn: should '1 << log_blocksize' be a 64 bit type?
Old smatch warnings:
fs/btrfs/verity.c:552 btrfs_begin_enable_verity() error: uninitialized symbol 'trans'.
vim +/ret +268 fs/btrfs/verity.c
24749321fc3abc Boris Burkov 2021-06-24 209 static int write_key_bytes(struct btrfs_inode *inode, u8 key_type, u64 offset,
24749321fc3abc Boris Burkov 2021-06-24 210 const char *src, u64 len)
24749321fc3abc Boris Burkov 2021-06-24 211 {
24749321fc3abc Boris Burkov 2021-06-24 212 struct btrfs_trans_handle *trans;
24749321fc3abc Boris Burkov 2021-06-24 213 struct btrfs_path *path;
24749321fc3abc Boris Burkov 2021-06-24 214 struct btrfs_root *root = inode->root;
24749321fc3abc Boris Burkov 2021-06-24 215 struct extent_buffer *leaf;
24749321fc3abc Boris Burkov 2021-06-24 216 struct btrfs_key key;
24749321fc3abc Boris Burkov 2021-06-24 217 u64 copied = 0;
24749321fc3abc Boris Burkov 2021-06-24 218 unsigned long copy_bytes;
24749321fc3abc Boris Burkov 2021-06-24 219 unsigned long src_offset = 0;
24749321fc3abc Boris Burkov 2021-06-24 220 void *data;
24749321fc3abc Boris Burkov 2021-06-24 221 int ret;
24749321fc3abc Boris Burkov 2021-06-24 222
24749321fc3abc Boris Burkov 2021-06-24 223 path = btrfs_alloc_path();
24749321fc3abc Boris Burkov 2021-06-24 224 if (!path)
24749321fc3abc Boris Burkov 2021-06-24 225 return -ENOMEM;
24749321fc3abc Boris Burkov 2021-06-24 226
24749321fc3abc Boris Burkov 2021-06-24 227 while (len > 0) {
Can we write zero bytes? My test system has linux-next so I don't know.
I don't think the kbuild bot uses the cross function DB so it doesn't
know either.
24749321fc3abc Boris Burkov 2021-06-24 228 /*
24749321fc3abc Boris Burkov 2021-06-24 229 * 1 for the new item being inserted
24749321fc3abc Boris Burkov 2021-06-24 230 */
24749321fc3abc Boris Burkov 2021-06-24 231 trans = btrfs_start_transaction(root, 1);
24749321fc3abc Boris Burkov 2021-06-24 232 if (IS_ERR(trans)) {
24749321fc3abc Boris Burkov 2021-06-24 233 ret = PTR_ERR(trans);
24749321fc3abc Boris Burkov 2021-06-24 234 break;
24749321fc3abc Boris Burkov 2021-06-24 235 }
24749321fc3abc Boris Burkov 2021-06-24 236
24749321fc3abc Boris Burkov 2021-06-24 237 key.objectid = btrfs_ino(inode);
24749321fc3abc Boris Burkov 2021-06-24 238 key.type = key_type;
24749321fc3abc Boris Burkov 2021-06-24 239 key.offset = offset;
24749321fc3abc Boris Burkov 2021-06-24 240
24749321fc3abc Boris Burkov 2021-06-24 241 /*
24749321fc3abc Boris Burkov 2021-06-24 242 * Insert 2K at a time mostly to be friendly for smaller
24749321fc3abc Boris Burkov 2021-06-24 243 * leaf size filesystems
24749321fc3abc Boris Burkov 2021-06-24 244 */
24749321fc3abc Boris Burkov 2021-06-24 245 copy_bytes = min_t(u64, len, 2048);
24749321fc3abc Boris Burkov 2021-06-24 246
24749321fc3abc Boris Burkov 2021-06-24 247 ret = btrfs_insert_empty_item(trans, root, path, &key, copy_bytes);
24749321fc3abc Boris Burkov 2021-06-24 248 if (ret) {
24749321fc3abc Boris Burkov 2021-06-24 249 btrfs_end_transaction(trans);
24749321fc3abc Boris Burkov 2021-06-24 250 break;
24749321fc3abc Boris Burkov 2021-06-24 251 }
24749321fc3abc Boris Burkov 2021-06-24 252
24749321fc3abc Boris Burkov 2021-06-24 253 leaf = path->nodes[0];
24749321fc3abc Boris Burkov 2021-06-24 254
24749321fc3abc Boris Burkov 2021-06-24 255 data = btrfs_item_ptr(leaf, path->slots[0], void);
24749321fc3abc Boris Burkov 2021-06-24 256 write_extent_buffer(leaf, src + src_offset,
24749321fc3abc Boris Burkov 2021-06-24 257 (unsigned long)data, copy_bytes);
24749321fc3abc Boris Burkov 2021-06-24 258 offset += copy_bytes;
24749321fc3abc Boris Burkov 2021-06-24 259 src_offset += copy_bytes;
24749321fc3abc Boris Burkov 2021-06-24 260 len -= copy_bytes;
24749321fc3abc Boris Burkov 2021-06-24 261 copied += copy_bytes;
24749321fc3abc Boris Burkov 2021-06-24 262
24749321fc3abc Boris Burkov 2021-06-24 263 btrfs_release_path(path);
24749321fc3abc Boris Burkov 2021-06-24 264 btrfs_end_transaction(trans);
24749321fc3abc Boris Burkov 2021-06-24 265 }
24749321fc3abc Boris Burkov 2021-06-24 266
24749321fc3abc Boris Burkov 2021-06-24 267 btrfs_free_path(path);
24749321fc3abc Boris Burkov 2021-06-24 @268 return ret;
24749321fc3abc Boris Burkov 2021-06-24 269 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
[chrome-os:chromeos-4.14 12/15] arch/x86/kvm/../../../virt/kvm/kvm_main.c:493:13: warning: no previous declaration for 'kvm_arch_mmu_clear_young_walk'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.14
head: d80bee5436eff90f5e8b640bcbd1b903ce521269
commit: fc7e7985491a43523c7319f6e8212975b4fde6a2 [12/15] CHROMIUM: mm: multigenerational lru: scan kvm mmu pages
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build):
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-4.14
git checkout fc7e7985491a43523c7319f6e8212975b4fde6a2
# save the attached .config to linux build tree
make W=1 ARCH=i386
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 >>):
>> arch/x86/kvm/../../../virt/kvm/kvm_main.c:493:13: warning: no previous declaration for 'kvm_arch_mmu_clear_young_walk' [-Wmissing-declarations]
__weak void kvm_arch_mmu_clear_young_walk(struct kvm *kvm,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kvm/../../../virt/kvm/kvm_main.c:701:12: warning: no previous declaration for 'kvm_arch_post_init_vm' [-Wmissing-declarations]
int __weak kvm_arch_post_init_vm(struct kvm *kvm)
^~~~~~~~~~~~~~~~~~~~~
arch/x86/kvm/../../../virt/kvm/kvm_main.c:710:13: warning: no previous declaration for 'kvm_arch_pre_destroy_vm' [-Wmissing-declarations]
void __weak kvm_arch_pre_destroy_vm(struct kvm *kvm)
^~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/kvm_host.h:14:0,
from arch/x86/kvm/../../../virt/kvm/kvm_main.c:22:
include/linux/signal.h: In function 'sigemptyset':
include/linux/signal.h:176:22: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 2: set->sig[1] = 0;
~~~~~~~~~~~~^~~
include/linux/signal.h:177:2: note: here
case 1: set->sig[0] = 0;
^~~~
--
>> arch/x86/kvm/mmu.c:5984:6: warning: no previous declaration for 'kvm_arch_mmu_clear_young_walk' [-Wmissing-declarations]
void kvm_arch_mmu_clear_young_walk(struct kvm *kvm, struct mmu_notifier_walk *walk)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kvm/mmu.c: In function '__reset_rsvds_bits_mask':
arch/x86/kvm/mmu.c:4281:36: warning: this statement may fall through [-Wimplicit-fallthrough=]
rsvd_check->rsvd_bits_mask[1][4] =
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
rsvd_check->rsvd_bits_mask[0][4];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kvm/mmu.c:4283:2: note: here
case PT64_ROOT_4LEVEL:
^~~~
vim +/kvm_arch_mmu_clear_young_walk +493 arch/x86/kvm/../../../virt/kvm/kvm_main.c
492
> 493 __weak void kvm_arch_mmu_clear_young_walk(struct kvm *kvm,
494 struct mmu_notifier_walk *walk)
495 {
496 }
497
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
[linuxppc:next-test 215/220] arch/powerpc/lib/restart_table.c:22:6: warning: no previous prototype for function 'search_kernel_soft_mask_table'
by kernel test robot
tree: https://github.com/linuxppc/linux next-test
head: 91fc46eced0f70526d74468ac6c932c90a8585b3
commit: 325678fd052259e7c05ef29060a73c705ea90432 [215/220] powerpc/64s: add a table of implicit soft-masked addresses
config: powerpc-randconfig-r012-20210630 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d21d5472501460933e78aead04cf59579025ba4)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://github.com/linuxppc/linux/commit/325678fd052259e7c05ef29060a73c70...
git remote add linuxppc https://github.com/linuxppc/linux
git fetch --no-tags linuxppc next-test
git checkout 325678fd052259e7c05ef29060a73c705ea90432
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 warnings (new ones prefixed by >>):
__do_insb
^
arch/powerpc/include/asm/io.h:556:56: note: expanded from macro '__do_insb'
#define __do_insb(p, b, n) readsb((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from arch/powerpc/lib/restart_table.c:1:
In file included from arch/powerpc/include/asm/interrupt.h:70:
In file included from include/linux/hardirq.h:11:
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:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (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>:24: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 arch/powerpc/lib/restart_table.c:1:
In file included from arch/powerpc/include/asm/interrupt.h:70:
In file included from include/linux/hardirq.h:11:
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>:26: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 arch/powerpc/lib/restart_table.c:1:
In file included from arch/powerpc/include/asm/interrupt.h:70:
In file included from include/linux/hardirq.h:11:
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>:28: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 arch/powerpc/lib/restart_table.c:1:
In file included from arch/powerpc/include/asm/interrupt.h:70:
In file included from include/linux/hardirq.h:11:
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>:30: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 arch/powerpc/lib/restart_table.c:1:
In file included from arch/powerpc/include/asm/interrupt.h:70:
In file included from include/linux/hardirq.h:11:
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>:32: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))
~~~~~~~~~~~~~~~~~~~~~^
>> arch/powerpc/lib/restart_table.c:22:6: warning: no previous prototype for function 'search_kernel_soft_mask_table' [-Wmissing-prototypes]
bool search_kernel_soft_mask_table(unsigned long addr)
^
arch/powerpc/lib/restart_table.c:22:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool search_kernel_soft_mask_table(unsigned long addr)
^
static
arch/powerpc/lib/restart_table.c:40:15: warning: no previous prototype for function 'search_kernel_restart_table' [-Wmissing-prototypes]
unsigned long search_kernel_restart_table(unsigned long addr)
^
arch/powerpc/lib/restart_table.c:40:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
unsigned long search_kernel_restart_table(unsigned long addr)
^
static
14 warnings generated.
vim +/search_kernel_soft_mask_table +22 arch/powerpc/lib/restart_table.c
20
21 /* Given an address, look for it in the soft mask table */
> 22 bool search_kernel_soft_mask_table(unsigned long addr)
23 {
24 struct soft_mask_table_entry *smte = __start___soft_mask_table;
25
26 while (smte < __stop___soft_mask_table) {
27 unsigned long start = smte->start;
28 unsigned long end = smte->end;
29
30 if (addr >= start && addr < end)
31 return true;
32
33 smte++;
34 }
35 return false;
36 }
37 NOKPROBE_SYMBOL(search_kernel_soft_mask_table);
38
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
[intel-linux-intel-lts:5.4/yocto 2/2] drivers/platform/x86/intel_isi_hstd.c:572:5: warning: no previous prototype for 'hstd_init'
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: 6e9c23a32b60ca1e35e154e8d857c73b3c313734
commit: 6e9c23a32b60ca1e35e154e8d857c73b3c313734 [2/2] driver: platform: x86: ISI: [Hstd] Host STL Linux Driver for EHL FuSa
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/intel/linux-intel-lts/commit/6e9c23a32b60ca1e35e154e8d...
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 6e9c23a32b60ca1e35e154e8d857c73b3c313734
# save the attached .config to linux build tree
make W=1 ARCH=i386
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:5,
from include/linux/kernel.h:12,
from include/linux/list.h:9,
from include/linux/module.h:9,
from drivers/platform/x86/intel_isi_hstd.c:8:
drivers/platform/x86/intel_isi_hstd.c: In function 'global_ctrl_check':
include/linux/bits.h:8:26: warning: left shift count >= width of type [-Wshift-count-overflow]
8 | #define BIT(nr) (UL(1) << (nr))
| ^~
drivers/platform/x86/intel_isi_hstd.c:138:26: note: in expansion of macro 'BIT'
138 | uint64_t m = ~(BIT(0) | BIT(33));
| ^~~
drivers/platform/x86/intel_isi_hstd.c: In function 'global_ovfctrl_check':
include/linux/bits.h:8:26: warning: left shift count >= width of type [-Wshift-count-overflow]
8 | #define BIT(nr) (UL(1) << (nr))
| ^~
drivers/platform/x86/intel_isi_hstd.c:155:26: note: in expansion of macro 'BIT'
155 | uint64_t m = ~(BIT(0) | BIT(33));
| ^~~
include/linux/bits.h:8:26: warning: left shift count >= width of type [-Wshift-count-overflow]
8 | #define BIT(nr) (UL(1) << (nr))
| ^~
drivers/platform/x86/intel_isi_hstd.c:162:29: note: in expansion of macro 'BIT'
162 | if (!(v & BIT(0)) || !(v & BIT(33)))
| ^~~
drivers/platform/x86/intel_isi_hstd.c: At top level:
>> drivers/platform/x86/intel_isi_hstd.c:572:5: warning: no previous prototype for 'hstd_init' [-Wmissing-prototypes]
572 | int hstd_init(void)
| ^~~~~~~~~
vim +/hstd_init +572 drivers/platform/x86/intel_isi_hstd.c
571
> 572 int hstd_init(void)
573 {
574 int err = 0;
575
576 hstd_major_num = register_chrdev(0, DEVICE_NAME, &fops);
577 if (hstd_major_num < 0)
578 return hstd_major_num;
579
580 hstd_class = class_create(THIS_MODULE, CLASS_NAME);
581 if (IS_ERR(hstd_class)) {
582 err = PTR_ERR(hstd_class);
583 goto out_chrdev;
584 }
585
586 hstd_dev = device_create(hstd_class, NULL,
587 MKDEV(hstd_major_num, 0), NULL, DEVICE_NAME);
588 if (IS_ERR(hstd_dev)) {
589 err = PTR_ERR(hstd_dev);
590 goto out_class;
591 }
592 err = do_init();
593 if (err)
594 goto out_init;
595
596 pr_info(PFX "Module version %s successfuly initilized\n", DRV_VERSION);
597 return 0;
598
599 out_init:
600 device_destroy(hstd_class, MKDEV(hstd_major_num, 0));
601 out_class:
602 class_destroy(hstd_class);
603 out_chrdev:
604 unregister_chrdev(hstd_major_num, DEVICE_NAME);
605 return err;
606 }
607
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
[RFC PATCH] block: print_disk_stats() can be static
by kernel test robot
block/genhd.c:1110:6: warning: symbol 'print_disk_stats' was not declared. Should it be static?
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
genhd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/block/genhd.c b/block/genhd.c
index 5d393b2bc62c3..803c3448f09ae 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -1107,8 +1107,8 @@ const struct device_type disk_type = {
#ifdef CONFIG_PROC_FS
-void print_disk_stats(struct seq_file *seqf,
- unsigned int inflight, struct disk_stats *stat)
+static void print_disk_stats(struct seq_file *seqf,
+ unsigned int inflight, struct disk_stats *stat)
{
seq_printf(seqf, "%lu %lu %lu %u "
"%lu %lu %lu %u "
11 months