OSDN Git Service

MIPS: generic: Use __initconst for const init data
authorTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 8 Oct 2019 16:15:09 +0000 (00:15 +0800)
committerPaul Burton <paul.burton@mips.com>
Tue, 8 Oct 2019 17:54:44 +0000 (10:54 -0700)
commita14bf1dc494aa5126e4f23ebd9fa04991133814e
tree597a5a5d7782a6e3d1796b4bdf31990ed430fdbc
parentfd7710cb491f900eb63d2ce5aac0e682003e84e9
MIPS: generic: Use __initconst for const init data

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;

Fixes: eed0eabd12ef ("MIPS: generic: Introduce generic DT-based board support")
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: ralf@linux-mips.org
Cc: jhogan@kernel.org
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
arch/mips/generic/init.c