* [PATCH] certs/blacklist_hashes.c: Use __initconst for const init definition
@ 2020-06-15 3:53 Xingxing Su
0 siblings, 0 replies; only message in thread
From: Xingxing Su @ 2020-06-15 3:53 UTC (permalink / raw)
To: dhowells, dwmw2; +Cc: keyrings, linux-kernel, yangtiezhu, lixuefeng
Fix the following checkpatch error:
ERROR: Use of const init definition must use __initconst
#4: FILE: certs/blacklist_hashes.c:4:
+const char __initdata *const blacklist_hashes[] = {
Signed-off-by: Xingxing Su <suxingxing@loongson.cn>
---
certs/blacklist_hashes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/certs/blacklist_hashes.c b/certs/blacklist_hashes.c
index 3448923..d5961aa 100644
--- a/certs/blacklist_hashes.c
+++ b/certs/blacklist_hashes.c
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
#include "blacklist.h"
-const char __initdata *const blacklist_hashes[] = {
+const char __initconst *const blacklist_hashes[] = {
#include CONFIG_SYSTEM_BLACKLIST_HASH_LIST
, NULL
};
--
2.1.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-15 3:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-15 3:53 [PATCH] certs/blacklist_hashes.c: Use __initconst for const init definition Xingxing Su
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).