[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1570545533-12718-1-git-send-email-yangtiezhu@loongson.cn>
Date: Tue, 8 Oct 2019 22:38:53 +0800
From: Tiezhu Yang <yangtiezhu@...ngson.cn>
To: paul.burton@...s.com, ralf@...ux-mips.org, jhogan@...nel.org
Cc: linux-mips@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] 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
+static __initdata const void *fdt;
ERROR: Use of const init definition must use __initconst
+static __initdata const struct mips_machine *mach;
ERROR: Use of const init definition must use __initconst
+static __initdata const void *mach_match_data;
Signed-off-by: Tiezhu Yang <yangtiezhu@...ngson.cn>
---
arch/mips/generic/init.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/mips/generic/init.c b/arch/mips/generic/init.c
index d5b8c47..1de215b 100644
--- a/arch/mips/generic/init.c
+++ b/arch/mips/generic/init.c
@@ -20,9 +20,9 @@
#include <asm/smp-ops.h>
#include <asm/time.h>
-static __initdata const void *fdt;
-static __initdata const struct mips_machine *mach;
-static __initdata const void *mach_match_data;
+static __initconst const void *fdt;
+static __initconst const struct mips_machine *mach;
+static __initconst const void *mach_match_data;
void __init prom_init(void)
{
--
2.1.0
Powered by blists - more mailing lists