* [PATCH] KEYS: fix const section declaration in certs blacklist
@ 2018-03-19 22:07 ` Stefan Agner
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Agner @ 2018-03-19 22:07 UTC (permalink / raw)
To: dhowells, dwmw2; +Cc: keyrings, linux-kernel, Stefan Agner, Andi Kleen
Use __initconst, not __initdata also in header file.
This fixes a warning generated by clang:
certs/blacklist_nohashes.c:4:12: warning: section does not match
previous declaration [-Wsection]
const char __initconst *const blacklist_hashes[] = {
^
..
certs/blacklist.h:3:19: note: previous attribute is here
extern const char __initdata *const blacklist_hashes[];
^
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Stefan Agner <stefan@agner.ch>
---
certs/blacklist.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/certs/blacklist.h b/certs/blacklist.h
index 150d82da8e99..1efd6fa0dc60 100644
--- a/certs/blacklist.h
+++ b/certs/blacklist.h
@@ -1,3 +1,3 @@
#include <linux/kernel.h>
-extern const char __initdata *const blacklist_hashes[];
+extern const char __initconst *const blacklist_hashes[];
--
2.16.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] KEYS: fix const section declaration in certs blacklist
@ 2018-03-19 22:07 ` Stefan Agner
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Agner @ 2018-03-19 22:07 UTC (permalink / raw)
To: dhowells, dwmw2; +Cc: keyrings, linux-kernel, Stefan Agner, Andi Kleen
Use __initconst, not __initdata also in header file.
This fixes a warning generated by clang:
certs/blacklist_nohashes.c:4:12: warning: section does not match
previous declaration [-Wsection]
const char __initconst *const blacklist_hashes[] = {
^
..
certs/blacklist.h:3:19: note: previous attribute is here
extern const char __initdata *const blacklist_hashes[];
^
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Stefan Agner <stefan@agner.ch>
---
certs/blacklist.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/certs/blacklist.h b/certs/blacklist.h
index 150d82da8e99..1efd6fa0dc60 100644
--- a/certs/blacklist.h
+++ b/certs/blacklist.h
@@ -1,3 +1,3 @@
#include <linux/kernel.h>
-extern const char __initdata *const blacklist_hashes[];
+extern const char __initconst *const blacklist_hashes[];
--
2.16.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-19 22:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-19 22:07 [PATCH] KEYS: fix const section declaration in certs blacklist Stefan Agner
2018-03-19 22:07 ` Stefan Agner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.