Re: [PATCH v2] MIPS: generic: Use __initconst for const init data
From: Paul Burton
Date: Tue Oct 08 2019 - 13:55:49 EST
Hello,
Tiezhu Yang wrote:
> Fix the following checkpatch errors:
>
> $ ./scripts/checkpatch.pl --no-tree -f arch/mips/generic/init.c
> ERROR: Use of const init definition must use __initconst
> #23: FILE: arch/mips/generic/init.c:23:
> +static __initdata const void *fdt;
>
> ERROR: Use of const init definition must use __initconst
> #24: FILE: arch/mips/generic/init.c:24:
> +static __initdata const struct mips_machine *mach;
>
> ERROR: Use of const init definition must use __initconst
> #25: FILE: arch/mips/generic/init.c:25:
> +static __initdata const void *mach_match_data;
Applied to mips-next.
> commit a14bf1dc494a
> https://git.kernel.org/mips/c/a14bf1dc494a
>
> Fixes: eed0eabd12ef ("MIPS: generic: Introduce generic DT-based board support")
> Signed-off-by: Tiezhu Yang <yangtiezhu@xxxxxxxxxxx>
> Signed-off-by: Paul Burton <paul.burton@xxxxxxxx>
Thanks,
Paul
[ This message was auto-generated; if you believe anything is incorrect
then please email paul.burton@xxxxxxxx to report it. ]