(subset) [PATCH 1/2] arm64/process.c: fix Wmissing-prototypes build warnings

Will Deacon will at kernel.org
Thu Mar 25 11:19:03 GMT 2021


On Wed, 24 Mar 2021 12:24:58 +0530, Maninder Singh wrote:
> function protypes are missed before defination, which
> leads to compilation warning with "-Wmissing-prototypes"
> flag.
> 
> https://lkml.org/lkml/2021/3/19/840
> 
> arch/arm64/kernel/process.c:261:6: warning: no previous prototype for '__show_regs' [-Wmissing-prototypes]
>     261 | void __show_regs(struct pt_regs *regs)
>         |      ^~~~~~~~~~~
> arch/arm64/kernel/process.c:307:6: warning: no previous prototype for '__show_regs_alloc_free' [-Wmissing-prototypes]
>     307 | void __show_regs_alloc_free(struct pt_regs *regs)
>         |      ^~~~~~~~~~~~~~~~~~~~~~
> arch/arm64/kernel/process.c:365:5: warning: no previous prototype for 'arch_dup_task_struct' [-Wmissing-prototypes]
>    365 | int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
>         |     ^~~~~~~~~~~~~~~~~~~~
> arch/arm64/kernel/process.c:546:41: warning: no previous prototype for '__switch_to' [-Wmissing-prototypes]
>    546 | __notrace_funcgraph struct task_struct *__switch_to(struct task_struct *prev,
>         |                                         ^~~~~~~~~~~
> arch/arm64/kernel/process.c:710:25: warning: no previous prototype for 'arm64_preempt_schedule_irq' [-Wmissing-prototypes]
>    710 | asmlinkage void __sched arm64_preempt_schedule_irq(void)
>         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~

Applied first patch ONLY to arm64 (for-next/fixes), thanks!

[1/2] arm64/process.c: fix Wmissing-prototypes build warnings
      https://git.kernel.org/arm64/c/baa96377bc7b

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the linux-arm-kernel mailing list