Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6146677iog; Thu, 23 Jun 2022 12:18:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uLkkJnZ/WeXOkLnVLet3U21B1sZ7UDqbm0u9B/Cg+tSgejiiu9pS4o76s9+W3e/3kXIBaX X-Received: by 2002:a17:90b:4a4c:b0:1ec:9036:8f91 with SMTP id lb12-20020a17090b4a4c00b001ec90368f91mr5564567pjb.33.1656011907319; Thu, 23 Jun 2022 12:18:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656011907; cv=none; d=google.com; s=arc-20160816; b=G9WUFCU7hd3FgfKsKCqOi6OMRqbyp1TltpcWNk4phni2zKI2Dya2+khmFbP0TT4nRV vH6Hw9HILhdPcpEncSJnPm46GoHiuAMYPOV86b7BhV8xlHN5QxFUdOCcBvKmdN2V2VvB qU4xcCExm3g8iewY5HxoEP5N6IvftdXCwrAHZkhmXAblMSHlmsP9r+XJYEj6uz7Q2r7j cUfLmCOn/KuvhELBrF0bz6ULjhhVCMjvN5zxrD9BcKsOraDgcEu1Ixju2L14HLR+NR+I gBIFvqGMVz+nZ4XPq9wy+yLQARLdtCEy/aGx2Zt/7CMmVTeGcoF8bGHXThySwLFOdYh7 10Kg== 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=PlGsPNRtsLG9IoSNb9aSsPzevDu0OBAXO3QMDCf6Qnd+RnLR1yuWsGXST/c6yIf0aH Sho0uEM40ICtdFB3QelHm0feWQWy1jRh5oVhglV5TnnWVVyjDFMcnq0Yg8YTNFJPcjc/ SbTYVfmzUuUgdSPY1rzwSIAcCSVgcvl6C2u8VaOwSNiS2HHHosjmeVuj7whnhO0iW9BK LRjMwUafpi9l3PdwTCNxytaixis3ZpAJb5uIf2FRLnlmNRsv0RYw3RE05pyX1dO19TkB 8GUeRe6MEe7rwVn1jRCay41xc6ooK7mCRW9aFyhFlcBvRcnILue4U12Gi6RfsLrOL+7p EyLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1+v7DcLl; 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 a19-20020a056a000c9300b00510538e14f6si29131605pfv.364.2022.06.23.12.18.16; Thu, 23 Jun 2022 12:18:27 -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=1+v7DcLl; 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 S229970AbiFWSSv (ORCPT + 99 others); Thu, 23 Jun 2022 14:18:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236787AbiFWSQk (ORCPT ); Thu, 23 Jun 2022 14:16:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89098137; Thu, 23 Jun 2022 10:22:51 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 210A361EB7; Thu, 23 Jun 2022 17:22:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3755C341C4; Thu, 23 Jun 2022 17:22:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656004970; bh=KRnyYm02/M04mY5xe4aX4sVWRy2Xqe+5jAymsdFwhho=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1+v7DcLlygmYsZ0Ko3d3IGiLdalDbjsAglP41Zelb/9QQIPNCuL+MQXsFdoeCagY7 GBN2f3bZqFfWq2O7lxinat2RHZQd4D+4+AqwwiwCCkB3xnfagGmOluQtm30eKicDAG OvZTn/YPtOrT1jqlUQSRG4jl5+BFJxIQVBtBwbiE= 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 4.19 207/234] certs/blacklist_hashes.c: fix const confusion in certs blacklist Date: Thu, 23 Jun 2022 18:44:34 +0200 Message-Id: <20220623164348.908685918@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220623164343.042598055@linuxfoundation.org> References: <20220623164343.042598055@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