mainline build failure due to c8171a86b274 ("csky: Fixup -Wmissing-prototypes warning")

From: Sudip Mukherjee (Codethink)
Date: Wed Aug 30 2023 - 15:18:52 EST


Hi All,

The latest mainline kernel branch fails to build csky allmodconfig with
the error:

In file included from ./arch/csky/include/asm/ptrace.h:7,
from ./arch/csky/include/asm/processor.h:8,
from ./include/linux/prefetch.h:15,
from drivers/net/ethernet/intel/i40e/i40e_txrx.c:4:
./arch/csky/include/asm/traps.h:43:11: error: expected ';' before 'void'
43 | asmlinkage void do_trap_unknown(struct pt_regs *regs);
| ^~~~~
| ;
./arch/csky/include/asm/traps.h:44:11: error: expected ';' before 'void'
44 | asmlinkage void do_trap_zdiv(struct pt_regs *regs);
| ^~~~~
| ;
./arch/csky/include/asm/traps.h:45:11: error: expected ';' before 'void'
45 | asmlinkage void do_trap_buserr(struct pt_regs *regs);
| ^~~~~
| ;
./arch/csky/include/asm/traps.h:46:11: error: expected ';' before 'void'
46 | asmlinkage void do_trap_misaligned(struct pt_regs *regs);
| ^~~~~
| ;
./arch/csky/include/asm/traps.h:47:11: error: expected ';' before 'void'
47 | asmlinkage void do_trap_bkpt(struct pt_regs *regs);
| ^~~~~
| ;
./arch/csky/include/asm/traps.h:48:11: error: expected ';' before 'void'
48 | asmlinkage void do_trap_illinsn(struct pt_regs *regs);
| ^~~~~
| ;
./arch/csky/include/asm/traps.h:49:11: error: expected ';' before 'void'
49 | asmlinkage void do_trap_fpe(struct pt_regs *regs);
| ^~~~~
| ;
./arch/csky/include/asm/traps.h:50:11: error: expected ';' before 'void'
50 | asmlinkage void do_trap_priv(struct pt_regs *regs);
| ^~~~~
| ;
./arch/csky/include/asm/traps.h:51:11: error: expected ';' before 'void'
51 | asmlinkage void trap_c(struct pt_regs *regs);
| ^~~~~
| ;
./arch/csky/include/asm/traps.h:53:11: error: expected ';' before 'void'
53 | asmlinkage void do_notify_resume(struct pt_regs *regs,
| ^~~~~
| ;
In file included from ./arch/csky/include/asm/processor.h:8,
from ./include/linux/prefetch.h:15,
from drivers/net/ethernet/intel/i40e/i40e_txrx.c:4:
./arch/csky/include/asm/ptrace.h:99:11: error: expected ';' before 'int'
99 | asmlinkage int syscall_trace_enter(struct pt_regs *regs);
| ^~~~
| ;
./arch/csky/include/asm/ptrace.h:100:11: error: expected ';' before 'void'
100 | asmlinkage void syscall_trace_exit(struct pt_regs *regs);
| ^~~~~
| ;

git bisect pointed to c8171a86b274 ("csky: Fixup -Wmissing-prototypes warning").

Reverting the commit has fixed the build failure.

I will be happy to test any patch or provide any extra log if needed.

#regzbot introduced: c8171a86b27401aa1f492dd1f080f3102264f1ab


--
Regards
Sudip