lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20180319220735.11520-1-stefan@agner.ch>
Date:   Mon, 19 Mar 2018 23:07:35 +0100
From:   Stefan Agner <stefan@...er.ch>
To:     dhowells@...hat.com, dwmw2@...radead.org
Cc:     keyrings@...r.kernel.org, linux-kernel@...r.kernel.org,
        Stefan Agner <stefan@...er.ch>, Andi Kleen <ak@...ux.intel.com>
Subject: [PATCH] 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 <ak@...ux.intel.com>
Cc: David Howells <dhowells@...hat.com>
Signed-off-by: Stefan Agner <stefan@...er.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ