Re: [PATCH] parisc: kexec: include reboot.h

2023-05-09 Thread Baoquan He
On 05/09/23 at 01:52pm, Simon Horman wrote: > On Tue, May 09, 2023 at 05:01:42PM +0800, Baoquan He wrote: > > On 05/09/23 at 09:01am, Simon Horman wrote: > > > Include reboot.h in machine_kexec.c for declaration of > > > machine_crash_shutdown and machine_shutdown. > > > > > > gcc-12 with W=1

Re: [PATCH] parisc: kexec: include reboot.h

2023-05-09 Thread Helge Deller
On 5/9/23 13:52, Simon Horman wrote: On Tue, May 09, 2023 at 05:01:42PM +0800, Baoquan He wrote: On 05/09/23 at 09:01am, Simon Horman wrote: Include reboot.h in machine_kexec.c for declaration of machine_crash_shutdown and machine_shutdown. gcc-12 with W=1 reports:

Re: [PATCH] parisc: kexec: include reboot.h

2023-05-09 Thread Simon Horman
On Tue, May 09, 2023 at 05:01:42PM +0800, Baoquan He wrote: > On 05/09/23 at 09:01am, Simon Horman wrote: > > Include reboot.h in machine_kexec.c for declaration of > > machine_crash_shutdown and machine_shutdown. > > > > gcc-12 with W=1 reports: > > > > arch/parisc/kernel/kexec.c:57:6:

Re: [PATCH] parisc: kexec: include reboot.h

2023-05-09 Thread Baoquan He
On 05/09/23 at 09:01am, Simon Horman wrote: > Include reboot.h in machine_kexec.c for declaration of > machine_crash_shutdown and machine_shutdown. > > gcc-12 with W=1 reports: > > arch/parisc/kernel/kexec.c:57:6: warning: no previous prototype for > 'machine_crash_shutdown'

[PATCH] parisc: kexec: include reboot.h

2023-05-09 Thread Simon Horman
Include reboot.h in machine_kexec.c for declaration of machine_crash_shutdown and machine_shutdown. gcc-12 with W=1 reports: arch/parisc/kernel/kexec.c:57:6: warning: no previous prototype for 'machine_crash_shutdown' [-Wmissing-prototypes] 57 | void machine_crash_shutdown(struct pt_regs