Fix init const for module signing code
PATCH 1/1 Fix init const for module signing code
From: Andi Kleen <[email protected]>
const has to use __initconst, not __initdata
Signed-off-by Andi Kleen <[email protected]>
--- kernel/modsign_pubkey.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
kernel/modsign_pubkey.c +3 -3
@@ -18,14 +18,14 @@struct key *modsign_keyring; -extern __initdata const u8 modsign_certificate_list[]; -extern __initdata const u8 modsign_certificate_list_end[]; +extern __initconst const u8 modsign_certificate_list[]; +extern __initconst const u8 modsign_certificate_list_end[];/* * We need to make sure ccache doesn't cache the .o file as it doesn't notice * if modsign.pub changes. */ -static __initdata const char annoy_ccache[] = __TIME__"foo" ; +static __initconst const char annoy_ccache[] = __TIME__"foo" ;/* * Load the compiled-in keys
Signature · 1 line
1.8.3.1