Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2930074iog; Mon, 20 Jun 2022 07:42:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uG5INRk/rzVDYPB1oSR1BKNIVWNK9P4lZ+dBisIFo2bZ9yXpESP86fVIso10Dv9MZhY+L1 X-Received: by 2002:a17:90b:354:b0:1ec:a915:c77a with SMTP id fh20-20020a17090b035400b001eca915c77amr5938085pjb.78.1655736172828; Mon, 20 Jun 2022 07:42:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655736172; cv=none; d=google.com; s=arc-20160816; b=pa8i61nIkSOW9OXd6nsr+fRCWuIuEnHua81ZtAw7COj3m6J7Cen1xxSI6MekO01fXD 1YpA3MWS5inN1KG3qXjrCN/lW0OIPSX7tSEuT5mZfya/PQjY2kvne8cL8jhopKNeC2Ht m//5qHl8f32vqUg5GAa0B0vb4T1OGpnbzdVZOqsmrqnPK3DT9UQEHD2kHuQSN77Z9lNF 8Mrm2q0IFkh85m+Ezb5FHu9Qutv1FYj1P5oQgB7F4nnMFKO1MURMHZC3KE5cnInWA6bY oNmD7qIKvDCVUj3mTLEFaby/ChEmE7gcCPAgMQjNcV7fXQv0aVtOgfP9Gb9bF0r3ssV9 aCDA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OOC1m1zJ7zVx5MoMyqwwA6oMV7B1GojFgrqL6f+siZ4=; b=UIqq3NgEVzScyZ+O2Rd7wjoKvBTMDlWozPrXIYcGryKUGkTS/X9S8zPqUQstAtNPif VJvv1GCzravm97hnjZmMe3IxZviRxYgIYL3DBo+q/k07620xwsg0nTBMy3J7EU9zaORE 6mryvSTcVCo1slksCq1oYSxvt0Me1x5DbJBJIjgEXdQEjIev3ifTG0eSEd2BKAVONLeY X2BDnw4dI810r2LWRPfpxT2tzzhUXxXHAQDIeek5o+rUBgbABdKah7i7Fyq64dkNvgbv cWl/LQdUpxMwHxWav+ec6OcXNY5ouXjXdU9cBCqVclffDd8YMZIaas7vdW0hD8O4xgMo jCWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0Hx6Q5D8; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h129-20020a636c87000000b00408e1a4e297si15756727pgc.856.2022.06.20.07.42.40; Mon, 20 Jun 2022 07:42:52 -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=@linuxfoundation.org header.s=korg header.b=0Hx6Q5D8; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344365AbiFTNZC (ORCPT + 99 others); Mon, 20 Jun 2022 09:25:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346037AbiFTNYT (ORCPT ); Mon, 20 Jun 2022 09:24:19 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 249EB19294; Mon, 20 Jun 2022 06:09:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 58E37B811D7; Mon, 20 Jun 2022 13:08:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 971A8C3411B; Mon, 20 Jun 2022 13:08:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655730517; bh=KRnyYm02/M04mY5xe4aX4sVWRy2Xqe+5jAymsdFwhho=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0Hx6Q5D8YXxjh+ZDyWZOrllW4wnBx7Wywg0bGrhmv0UFKmspkQkWFcR8emCIpV39c NJlDvjChvIv6Z2ZfZXhY8CWR2jLbyRaj8mu/knjYdHDi3QcJx3gL+bz3NCl5sHrA5d Cez/yBu+JY1ix/rWboGC6Ek4rr6UpkNKdvV2ZMAM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masahiro Yamada , Jarkko Sakkinen , =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , Sasha Levin Subject: [PATCH 5.15 070/106] certs/blacklist_hashes.c: fix const confusion in certs blacklist Date: Mon, 20 Jun 2022 14:51:29 +0200 Message-Id: <20220620124726.473560315@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220620124724.380838401@linuxfoundation.org> References: <20220620124724.380838401@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Masahiro Yamada [ Upstream commit 6a1c3767d82ed8233de1263aa7da81595e176087 ] 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 Reviewed-by: Jarkko Sakkinen Reviewed-by: Mickaël Salaün Signed-off-by: Jarkko Sakkinen Signed-off-by: Sasha Levin --- 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.35.1