From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934575AbeCSWI3 (ORCPT ); Mon, 19 Mar 2018 18:08:29 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:44893 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933993AbeCSWHj (ORCPT ); Mon, 19 Mar 2018 18:07:39 -0400 From: Stefan Agner To: dhowells@redhat.com, dwmw2@infradead.org Cc: keyrings@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Agner , Andi Kleen Subject: [PATCH] KEYS: fix const section declaration in certs blacklist Date: Mon, 19 Mar 2018 23:07:35 +0100 Message-Id: <20180319220735.11520-1-stefan@agner.ch> X-Mailer: git-send-email 2.16.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: David Howells Signed-off-by: Stefan Agner --- 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 -extern const char __initdata *const blacklist_hashes[]; +extern const char __initconst *const blacklist_hashes[]; -- 2.16.2