Skip to contentSkip to conversation

KEYS: fix const section declaration in certs blacklist

PATCH New Stefan Agner 1 participant 1 message Mar 19, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KEYS: fix const section declaration in certs blacklist

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 <[email protected]>
Cc David Howells <[email protected]>
---
 certs/blacklist.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
certs/blacklist.h +1 -1
index 150d82da8e99..1efd6fa0dc60 100644
@@ -1,3 +1,3 @@
 #include <linux/kernel.h>
 
-extern const char __initdata *const blacklist_hashes[];
+extern const char __initconst *const blacklist_hashes[];
Signature · 1 line
2.16.2