* [linux-next:master 11847/12015] arch/h8300/kernel/process.c:58:6: error: no previous prototype for 'arch_cpu_idle'
@ 2021-09-06 11:54 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-06 11:54 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: kbuild-all, Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 13986 bytes --]
Hi Stephen,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 7800ca95d0ed11b492962dc3abc2181c9d5f7f82
commit: c3edca52a70e2f1ce3a323d3e9d637fcf52d53d6 [11847/12015] don't make the syscall checking produced errors from warnings
config: h8300-edosk2674_defconfig (attached as .config)
compiler: h8300-linux-gcc (GCC) 11.2.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/next/linux-next.git/commit/?id=c3edca52a70e2f1ce3a323d3e9d637fcf52d53d6
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout c3edca52a70e2f1ce3a323d3e9d637fcf52d53d6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=h8300
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> arch/h8300/kernel/process.c:58:6: error: no previous prototype for 'arch_cpu_idle' [-Werror=missing-prototypes]
58 | void arch_cpu_idle(void)
| ^~~~~~~~~~~~~
>> arch/h8300/kernel/process.c:155:16: error: no previous prototype for 'sys_clone' [-Werror=missing-prototypes]
155 | asmlinkage int sys_clone(unsigned long __user *args)
| ^~~~~~~~~
cc1: all warnings being treated as errors
--
>> arch/h8300/kernel/traps.c:38:13: error: no previous prototype for 'base_trap_init' [-Werror=missing-prototypes]
38 | void __init base_trap_init(void)
| ^~~~~~~~~~~~~~
arch/h8300/kernel/traps.c:42:13: error: no previous prototype for 'trap_init' [-Werror=missing-prototypes]
42 | void __init trap_init(void)
| ^~~~~~~~~
>> arch/h8300/kernel/traps.c:46:17: error: no previous prototype for 'set_esp0' [-Werror=missing-prototypes]
46 | asmlinkage void set_esp0(unsigned long ssp)
| ^~~~~~~~
cc1: all warnings being treated as errors
--
>> arch/h8300/kernel/ptrace.c:172:17: error: no previous prototype for 'do_syscall_trace_enter' [-Werror=missing-prototypes]
172 | asmlinkage long do_syscall_trace_enter(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~~
>> arch/h8300/kernel/ptrace.c:191:17: error: no previous prototype for 'do_syscall_trace_leave' [-Werror=missing-prototypes]
191 | asmlinkage void do_syscall_trace_leave(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~~
arch/h8300/kernel/ptrace.c: In function 'h8300_put_reg':
>> arch/h8300/kernel/ptrace.c:61:34: error: this statement may fall through [-Werror=implicit-fallthrough=]
61 | task->thread.usp = data - sizeof(long)*2;
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
arch/h8300/kernel/ptrace.c:62:9: note: here
62 | case PT_CCR:
| ^~~~
cc1: all warnings being treated as errors
--
>> arch/h8300/kernel/signal.c:105:16: error: no previous prototype for 'sys_rt_sigreturn' [-Werror=missing-prototypes]
105 | asmlinkage int sys_rt_sigreturn(void)
| ^~~~~~~~~~~~~~~~
>> arch/h8300/kernel/signal.c:280:17: error: no previous prototype for 'do_notify_resume' [-Werror=missing-prototypes]
280 | asmlinkage void do_notify_resume(struct pt_regs *regs, u32 thread_info_flags)
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> arch/h8300/kernel/setup.c:59:13: error: no previous prototype for 'h8300_fdt_init' [-Werror=missing-prototypes]
59 | void __init h8300_fdt_init(void *fdt, char *bootargs)
| ^~~~~~~~~~~~~~
>> arch/h8300/kernel/setup.c:209:13: error: no previous prototype for 'time_init' [-Werror=missing-prototypes]
209 | void __init time_init(void)
| ^~~~~~~~~
cc1: all warnings being treated as errors
--
>> arch/h8300/kernel/irq.c:87:13: error: no previous prototype for 'init_IRQ' [-Werror=missing-prototypes]
87 | void __init init_IRQ(void)
| ^~~~~~~~
>> arch/h8300/kernel/irq.c:93:17: error: no previous prototype for 'do_IRQ' [-Werror=missing-prototypes]
93 | asmlinkage void do_IRQ(int irq)
| ^~~~~~
cc1: all warnings being treated as errors
--
>> arch/h8300/kernel/ptrace_s.c:21:6: error: no previous prototype for 'user_disable_single_step' [-Werror=missing-prototypes]
21 | void user_disable_single_step(struct task_struct *child)
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> arch/h8300/kernel/ptrace_s.c:31:6: error: no previous prototype for 'user_enable_single_step' [-Werror=missing-prototypes]
31 | void user_enable_single_step(struct task_struct *child)
| ^~~~~~~~~~~~~~~~~~~~~~~
>> arch/h8300/kernel/ptrace_s.c:40:17: error: no previous prototype for 'trace_trap' [-Werror=missing-prototypes]
40 | asmlinkage void trace_trap(unsigned long bp)
| ^~~~~~~~~~
cc1: all warnings being treated as errors
--
>> arch/h8300/mm/fault.c:35:16: error: no previous prototype for 'do_page_fault' [-Werror=missing-prototypes]
35 | asmlinkage int do_page_fault(struct pt_regs *regs, unsigned long address,
| ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> arch/h8300/lib/ashldi3.c:5:1: error: no previous prototype for '__ashldi3' [-Werror=missing-prototypes]
5 | __ashldi3(DWtype u, word_type b)
| ^~~~~~~~~
cc1: all warnings being treated as errors
--
>> arch/h8300/lib/ashrdi3.c:4:8: error: no previous prototype for '__ashrdi3' [-Werror=missing-prototypes]
4 | DWtype __ashrdi3(DWtype u, word_type b)
| ^~~~~~~~~
cc1: all warnings being treated as errors
--
>> arch/h8300/lib/lshrdi3.c:4:8: error: no previous prototype for '__lshrdi3' [-Werror=missing-prototypes]
4 | DWtype __lshrdi3(DWtype u, word_type b)
| ^~~~~~~~~
cc1: all warnings being treated as errors
..
vim +/arch_cpu_idle +58 arch/h8300/kernel/process.c
fe54616d857da4 Yoshinori Sato 2015-05-11 54
fe54616d857da4 Yoshinori Sato 2015-05-11 55 /*
fe54616d857da4 Yoshinori Sato 2015-05-11 56 * The idle loop on an H8/300..
fe54616d857da4 Yoshinori Sato 2015-05-11 57 */
fe54616d857da4 Yoshinori Sato 2015-05-11 @58 void arch_cpu_idle(void)
fe54616d857da4 Yoshinori Sato 2015-05-11 59 {
58c644ba512cfb Peter Zijlstra 2020-11-20 60 raw_local_irq_enable();
fe54616d857da4 Yoshinori Sato 2015-05-11 61 __asm__("sleep");
fe54616d857da4 Yoshinori Sato 2015-05-11 62 }
fe54616d857da4 Yoshinori Sato 2015-05-11 63
fe54616d857da4 Yoshinori Sato 2015-05-11 64 void machine_restart(char *__unused)
fe54616d857da4 Yoshinori Sato 2015-05-11 65 {
fe54616d857da4 Yoshinori Sato 2015-05-11 66 local_irq_disable();
fe54616d857da4 Yoshinori Sato 2015-05-11 67 __asm__("jmp @@0");
fe54616d857da4 Yoshinori Sato 2015-05-11 68 }
fe54616d857da4 Yoshinori Sato 2015-05-11 69
fe54616d857da4 Yoshinori Sato 2015-05-11 70 void machine_halt(void)
fe54616d857da4 Yoshinori Sato 2015-05-11 71 {
fe54616d857da4 Yoshinori Sato 2015-05-11 72 local_irq_disable();
fe54616d857da4 Yoshinori Sato 2015-05-11 73 __asm__("sleep");
fe54616d857da4 Yoshinori Sato 2015-05-11 74 for (;;)
fe54616d857da4 Yoshinori Sato 2015-05-11 75 ;
fe54616d857da4 Yoshinori Sato 2015-05-11 76 }
fe54616d857da4 Yoshinori Sato 2015-05-11 77
fe54616d857da4 Yoshinori Sato 2015-05-11 78 void machine_power_off(void)
fe54616d857da4 Yoshinori Sato 2015-05-11 79 {
fe54616d857da4 Yoshinori Sato 2015-05-11 80 local_irq_disable();
fe54616d857da4 Yoshinori Sato 2015-05-11 81 __asm__("sleep");
fe54616d857da4 Yoshinori Sato 2015-05-11 82 for (;;)
fe54616d857da4 Yoshinori Sato 2015-05-11 83 ;
fe54616d857da4 Yoshinori Sato 2015-05-11 84 }
fe54616d857da4 Yoshinori Sato 2015-05-11 85
fe54616d857da4 Yoshinori Sato 2015-05-11 86 void show_regs(struct pt_regs *regs)
fe54616d857da4 Yoshinori Sato 2015-05-11 87 {
fe54616d857da4 Yoshinori Sato 2015-05-11 88 show_regs_print_info(KERN_DEFAULT);
fe54616d857da4 Yoshinori Sato 2015-05-11 89
fe54616d857da4 Yoshinori Sato 2015-05-11 90 pr_notice("\n");
fe54616d857da4 Yoshinori Sato 2015-05-11 91 pr_notice("PC: %08lx Status: %02x\n",
fe54616d857da4 Yoshinori Sato 2015-05-11 92 regs->pc, regs->ccr);
fe54616d857da4 Yoshinori Sato 2015-05-11 93 pr_notice("ORIG_ER0: %08lx ER0: %08lx ER1: %08lx\n",
fe54616d857da4 Yoshinori Sato 2015-05-11 94 regs->orig_er0, regs->er0, regs->er1);
fe54616d857da4 Yoshinori Sato 2015-05-11 95 pr_notice("ER2: %08lx ER3: %08lx ER4: %08lx ER5: %08lx\n",
fe54616d857da4 Yoshinori Sato 2015-05-11 96 regs->er2, regs->er3, regs->er4, regs->er5);
fe54616d857da4 Yoshinori Sato 2015-05-11 97 pr_notice("ER6' %08lx ", regs->er6);
fe54616d857da4 Yoshinori Sato 2015-05-11 98 if (user_mode(regs))
fe54616d857da4 Yoshinori Sato 2015-05-11 99 printk("USP: %08lx\n", rdusp());
fe54616d857da4 Yoshinori Sato 2015-05-11 100 else
fe54616d857da4 Yoshinori Sato 2015-05-11 101 printk("\n");
fe54616d857da4 Yoshinori Sato 2015-05-11 102 }
fe54616d857da4 Yoshinori Sato 2015-05-11 103
fe54616d857da4 Yoshinori Sato 2015-05-11 104 void flush_thread(void)
fe54616d857da4 Yoshinori Sato 2015-05-11 105 {
fe54616d857da4 Yoshinori Sato 2015-05-11 106 }
fe54616d857da4 Yoshinori Sato 2015-05-11 107
714acdbd1c94e7 Christian Brauner 2020-06-11 108 int copy_thread(unsigned long clone_flags, unsigned long usp,
714acdbd1c94e7 Christian Brauner 2020-06-11 109 unsigned long topstk, struct task_struct *p, unsigned long tls)
fe54616d857da4 Yoshinori Sato 2015-05-11 110 {
fe54616d857da4 Yoshinori Sato 2015-05-11 111 struct pt_regs *childregs;
fe54616d857da4 Yoshinori Sato 2015-05-11 112
fe54616d857da4 Yoshinori Sato 2015-05-11 113 childregs = (struct pt_regs *) (THREAD_SIZE + task_stack_page(p)) - 1;
fe54616d857da4 Yoshinori Sato 2015-05-11 114
4727dc20e04222 Jens Axboe 2021-02-17 115 if (unlikely(p->flags & (PF_KTHREAD | PF_IO_WORKER))) {
fe54616d857da4 Yoshinori Sato 2015-05-11 116 memset(childregs, 0, sizeof(struct pt_regs));
fe54616d857da4 Yoshinori Sato 2015-05-11 117 childregs->retpc = (unsigned long) ret_from_kernel_thread;
fe54616d857da4 Yoshinori Sato 2015-05-11 118 childregs->er4 = topstk; /* arg */
fe54616d857da4 Yoshinori Sato 2015-05-11 119 childregs->er5 = usp; /* fn */
fe54616d857da4 Yoshinori Sato 2015-05-11 120 } else {
fe54616d857da4 Yoshinori Sato 2015-05-11 121 *childregs = *current_pt_regs();
fe54616d857da4 Yoshinori Sato 2015-05-11 122 childregs->er0 = 0;
fe54616d857da4 Yoshinori Sato 2015-05-11 123 childregs->retpc = (unsigned long) ret_from_fork;
fe54616d857da4 Yoshinori Sato 2015-05-11 124 p->thread.usp = usp ?: rdusp();
fe54616d857da4 Yoshinori Sato 2015-05-11 125 }
fe54616d857da4 Yoshinori Sato 2015-05-11 126 p->thread.ksp = (unsigned long)childregs;
fe54616d857da4 Yoshinori Sato 2015-05-11 127
fe54616d857da4 Yoshinori Sato 2015-05-11 128 return 0;
fe54616d857da4 Yoshinori Sato 2015-05-11 129 }
fe54616d857da4 Yoshinori Sato 2015-05-11 130
fe54616d857da4 Yoshinori Sato 2015-05-11 131 unsigned long get_wchan(struct task_struct *p)
fe54616d857da4 Yoshinori Sato 2015-05-11 132 {
fe54616d857da4 Yoshinori Sato 2015-05-11 133 unsigned long fp, pc;
fe54616d857da4 Yoshinori Sato 2015-05-11 134 unsigned long stack_page;
fe54616d857da4 Yoshinori Sato 2015-05-11 135 int count = 0;
fe54616d857da4 Yoshinori Sato 2015-05-11 136
b03fbd4ff24c5f Peter Zijlstra 2021-06-11 137 if (!p || p == current || task_is_running(p))
fe54616d857da4 Yoshinori Sato 2015-05-11 138 return 0;
fe54616d857da4 Yoshinori Sato 2015-05-11 139
fe54616d857da4 Yoshinori Sato 2015-05-11 140 stack_page = (unsigned long)p;
fe54616d857da4 Yoshinori Sato 2015-05-11 141 fp = ((struct pt_regs *)p->thread.ksp)->er6;
fe54616d857da4 Yoshinori Sato 2015-05-11 142 do {
fe54616d857da4 Yoshinori Sato 2015-05-11 143 if (fp < stack_page+sizeof(struct thread_info) ||
fe54616d857da4 Yoshinori Sato 2015-05-11 144 fp >= 8184+stack_page)
fe54616d857da4 Yoshinori Sato 2015-05-11 145 return 0;
fe54616d857da4 Yoshinori Sato 2015-05-11 146 pc = ((unsigned long *)fp)[1];
fe54616d857da4 Yoshinori Sato 2015-05-11 147 if (!in_sched_functions(pc))
fe54616d857da4 Yoshinori Sato 2015-05-11 148 return pc;
fe54616d857da4 Yoshinori Sato 2015-05-11 149 fp = *(unsigned long *) fp;
fe54616d857da4 Yoshinori Sato 2015-05-11 150 } while (count++ < 16);
fe54616d857da4 Yoshinori Sato 2015-05-11 151 return 0;
fe54616d857da4 Yoshinori Sato 2015-05-11 152 }
fe54616d857da4 Yoshinori Sato 2015-05-11 153
fe54616d857da4 Yoshinori Sato 2015-05-11 154 /* generic sys_clone is not enough registers */
fe54616d857da4 Yoshinori Sato 2015-05-11 @155 asmlinkage int sys_clone(unsigned long __user *args)
:::::: The code at line 58 was first introduced by commit
:::::: fe54616d857da4ccb482eb40fef0e0f3b3d0efaf h8300: process helpers
:::::: TO: Yoshinori Sato <ysato@users.sourceforge.jp>
:::::: CC: Yoshinori Sato <ysato@users.sourceforge.jp>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 5486 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-06 11:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-06 11:54 [linux-next:master 11847/12015] arch/h8300/kernel/process.c:58:6: error: no previous prototype for 'arch_cpu_idle' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox