[PATCH] arm64/fpsimd: Fix missing-prototypes in fpsimd.c

Dave Martin Dave.Martin at arm.com
Wed Sep 16 06:36:46 EDT 2020


On Tue, Sep 15, 2020 at 04:19:59PM +0800, Tian Tao wrote:
> Fix the following warnings.
> arch/arm64/kernel/fpsimd.c:935:6: warning: no previous prototype for
> ‘do_sve_acc’ [-Wmissing-prototypes]
> arch/arm64/kernel/fpsimd.c:962:6: warning: no previous prototype for
> ‘do_fpsimd_acc’ [-Wmissing-prototypes]
> arch/arm64/kernel/fpsimd.c:971:6: warning: no previous prototype for
> ‘do_fpsimd_exc’ [-Wmissing-prototypes]
> arch/arm64/kernel/fpsimd.c:1266:6: warning: no previous prototype for
> ‘kernel_neon_begin’ [-Wmissing-prototypes]
> arch/arm64/kernel/fpsimd.c:1292:6: warning: no previous prototype for
> ‘kernel_neon_end’ [-Wmissing-prototypes]
> 
> Signed-off-by: Tian Tao <tiantao6 at hisilicon.com>

Strange this was missed in the past.  I guess the warnings have become
more aggressive.

Was this encountered using defconfig?


Either way, the change seems sensible:

Reviewed-by: Dave Martin <Dave.Martin at arm.com>

> ---
>  arch/arm64/kernel/fpsimd.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/arm64/kernel/fpsimd.c b/arch/arm64/kernel/fpsimd.c
> index 55c8f3e..0a637e3 100644
> --- a/arch/arm64/kernel/fpsimd.c
> +++ b/arch/arm64/kernel/fpsimd.c
> @@ -32,9 +32,11 @@
>  #include <linux/swab.h>
>  
>  #include <asm/esr.h>
> +#include <asm/exception.h>
>  #include <asm/fpsimd.h>
>  #include <asm/cpufeature.h>
>  #include <asm/cputype.h>
> +#include <asm/neon.h>
>  #include <asm/processor.h>
>  #include <asm/simd.h>
>  #include <asm/sigcontext.h>
> -- 
> 2.7.4
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel



More information about the linux-arm-kernel mailing list