[PATCH] arm64: entry: suppress W=1 prototype warnings

Catalin Marinas catalin.marinas at arm.com
Tue Dec 15 12:43:34 EST 2020


On Mon, 14 Dec 2020 11:33:53 +0000, Mark Rutland wrote:
> When building with W=1, GCC complains that we haven't defined prototypes
> for a number of non-static functions in entry-common.c:
> 
> | arch/arm64/kernel/entry-common.c:203:25: warning: no previous prototype for 'el1_sync_handler' [-Wmissing-prototypes]
> |   203 | asmlinkage void noinstr el1_sync_handler(struct pt_regs *regs)
> |       |                         ^~~~~~~~~~~~~~~~
> | arch/arm64/kernel/entry-common.c:377:25: warning: no previous prototype for 'el0_sync_handler' [-Wmissing-prototypes]
> |   377 | asmlinkage void noinstr el0_sync_handler(struct pt_regs *regs)
> |       |                         ^~~~~~~~~~~~~~~~
> | arch/arm64/kernel/entry-common.c:447:25: warning: no previous prototype for 'el0_sync_compat_handler' [-Wmissing-prototypes]
> |   447 | asmlinkage void noinstr el0_sync_compat_handler(struct pt_regs *regs)
> |       |                         ^~~~~~~~~~~~~~~~~~~~~~~
> 
> [...]

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

[1/1] arm64: entry: suppress W=1 prototype warnings
      https://git.kernel.org/arm64/c/bf023e76a8c0

-- 
Catalin




More information about the linux-arm-kernel mailing list