Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp554841iol; Sat, 11 Jun 2022 11:06:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxa9HCbf5SIzpYYPK0D6W1t1GYKil4GPhbOM8EZh3FSwVnDTuA6iZl7pb7Gkr+Y9R5qMmKa X-Received: by 2002:a05:6a00:1805:b0:51c:3a7:54dc with SMTP id y5-20020a056a00180500b0051c03a754dcmr36988809pfa.15.1654970800585; Sat, 11 Jun 2022 11:06:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654970800; cv=none; d=google.com; s=arc-20160816; b=cTFEjni1+gjn92iHrP7BpBXjLo36E2F4C05a6T+WqATiG0ZrdusGQmg5lJ8Y+IM3V/ kW3E+uy1iEK1fJ+4vZCqk6IZ6kVlZg3NtciWoZhGPyi3biiNkvqNzzq4IS8IbZuscU2V fP3zycwvkv11LHhriXT8FlmBu9UIDjMqeY88+XPuDc037sPYx2W+kBk9mKGrIFk7ZKF5 4GFSLv6F3ShEjk8oDEON49CYCQMfSff1QSTKIHqnj6K1sv6v3L23lxpAL3tKnd9v5Caj UXrre8vz//E5XznijObC2rmtY2e74/BxumIz3y3E/Bq8lj6QfL+jqsPR5e/xAnVYU2xu vhEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=nuJ9fX78Hn2THkCVuIttIKmGkLM6Dk/qRQ+cuZnHrm8=; b=vRvg4fR6UsZafMOx9MVSpxgiXy1o//Ab9ZwklHLJlskXIDdJWKIl280djO8k/nePh1 D93YVeJ18GJkotNJsMDCzutUoJF44D5IwGlURKlw11YTEIL8jasxmTmsrIZwE35X7wS5 yt6Gx15SqHvfdCraphkEoL6Gn6+/bI1bH5nrV8LONj9sQl/NcjGPl/io9yj78/AnNXHH 2iDECyhAPCFzPUEvugblsuQLElFYjo7EkZsak4gavJzMgpBD5Hdo49FX5YeudBeMBAns F0dTV8lh2E4MR0H+kRUcv39duJnxETyGVUYbvb9wZm4v7NRMFZvmFIw3tKWy9R55NlD0 bcSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=1RE3Uu54; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z26-20020a65665a000000b003fdb97e3c15si3268160pgv.394.2022.06.11.11.06.24; Sat, 11 Jun 2022 11:06:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=1RE3Uu54; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238813AbiFKRXy (ORCPT + 99 others); Sat, 11 Jun 2022 13:23:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236066AbiFKRXn (ORCPT ); Sat, 11 Jun 2022 13:23:43 -0400 Received: from conuserg-09.nifty.com (conuserg-09.nifty.com [210.131.2.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23C963CFD3; Sat, 11 Jun 2022 10:23:38 -0700 (PDT) Received: from grover.sesame (133-32-177-133.west.xps.vectant.ne.jp [133.32.177.133]) (authenticated) by conuserg-09.nifty.com with ESMTP id 25BHMhjN022692; Sun, 12 Jun 2022 02:22:43 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com 25BHMhjN022692 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1654968163; bh=nuJ9fX78Hn2THkCVuIttIKmGkLM6Dk/qRQ+cuZnHrm8=; h=From:To:Cc:Subject:Date:From; b=1RE3Uu54helDOf0cj2T9yhUCVy3XiBs+UO77ut4ySI4SO64ULrIRVOQ+HkNGmm+uG kzsxdHqrhl22d2von3RncQU0ZzcKSNLrCDLmZM7rAW8pEflxjxp3JiS7Cpe0kaGeed 0mUwg2Z48gF2IdKpl9KZIAhMD0idS/YF5lI1dtPgIFMX+sNn+gWcHHW31bxchV5t0i KwTYeaTUJzcxIwK33X3u8Vg25ev0WrKZd/vZgw5Oy78R3pWrnyu5jQGB0cnE8s1KFC Z0bf1v6DqPtoFyl799xXm5JqwRM0PTRqyPpcnna8HMYTqf5rbCKc5MFUNHkPzCtYjR 3FuFK5+b/4x+A== X-Nifty-SrcIP: [133.32.177.133] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: David Howells , Jarkko Sakkinen , =?UTF-8?q?Micka=8F=AB=B3l=20Sala=8F=AB=E4n?= , Masahiro Yamada , David Woodhouse , keyrings@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] certs/blacklist_hashes.c: fix const confusion in certs blacklist Date: Sun, 12 Jun 2022 02:22:30 +0900 Message-Id: <20220611172233.1494073-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This file fails to compile as follows: CC certs/blacklist_hashes.o certs/blacklist_hashes.c:4:1: error: ignoring attribute ‘section (".init.data")’ because it conflicts with previous ‘section (".init.rodata")’ [-Werror=attributes] 4 | const char __initdata *const blacklist_hashes[] = { | ^~~~~ In file included from certs/blacklist_hashes.c:2: certs/blacklist.h:5:38: note: previous declaration here 5 | extern const char __initconst *const blacklist_hashes[]; | ^~~~~~~~~~~~~~~~ Apply the same fix as commit 2be04df5668d ("certs/blacklist_nohashes.c: fix const confusion in certs blacklist"). Fixes: 734114f8782f ("KEYS: Add a system blacklist keyring") Signed-off-by: Masahiro Yamada --- certs/blacklist_hashes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certs/blacklist_hashes.c b/certs/blacklist_hashes.c index 344892337be0..d5961aa3d338 100644 --- a/certs/blacklist_hashes.c +++ b/certs/blacklist_hashes.c @@ -1,7 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 #include "blacklist.h" -const char __initdata *const blacklist_hashes[] = { +const char __initconst *const blacklist_hashes[] = { #include CONFIG_SYSTEM_BLACKLIST_HASH_LIST , NULL }; -- 2.32.0