From nobody Wed Oct 15 22:45:56 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A72027CBD3; Sun, 24 Mar 2024 23:39:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323542; cv=none; b=mCd5OWwvExYqQfu2JOWq1vU6PIwk/EUuw/yywwhIsEgnb5s4cHE7ufPvTOC6AY/bx62w/K9dlmutGoM4q9L9sPz+/nfh6fA/VI3ep+NuCQJi0asjdopCzLvDSR8xR1octZ5JuhSNdhEUw20P9FFNnVK0mSzj7ugOdYzd25YKfjE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323542; c=relaxed/simple; bh=qUsKLSR4/2S+QJrOFojeB/hmcUgRxhpYTpV7hOoNmWw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VwzqBjwNxxKkLPV2e504Uky6uxLUfEX2+Jilrgj59wrTQ9j2g3AM/QX0m0Qi3pKYMu2c2AWhsMYPol/QTHovvnUmcGFeS3xyHz+LBAryQBF8e/5R6pdGT7qXG5HGjLI+hOriZ86U6nca3GVB5M00h8C0XvkwSS7AABHyjua0UDI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BdutJ/vn; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BdutJ/vn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A495C43394; Sun, 24 Mar 2024 23:39:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711323541; bh=qUsKLSR4/2S+QJrOFojeB/hmcUgRxhpYTpV7hOoNmWw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BdutJ/vn+fQe71rlxK/Tm1Vs+YO+j6fQhA/EwJr1EqQgghAuaFSg2gJ2bZg7UmLu8 7Dkh+4s5nsaTJuhCkb1Q+awuwYeIdJVPUgTfYpIzthdJ7CZEJjeetE/28c6pM0MidK 5G6TklGka71dA79iYyC2k+/5UMucJKGKTqIRN2/uzxsD6AKVv7FmQEjIJrYtqPmD6k Nz7Ho6YUoRKZ+ZK1z4gMibQUb6p42sxLl1A+HaKf7vGkNnvZIgoyU9shg7tr9uh5QH fgmWx8wwjHStOOTcmHka4gSjyY23/piGY7JwjASCmi8/qLc80S8MST2tvAILFrS67L uORFFs9aNE2DQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Sam Ravnborg , "David S. Miller" , Andreas Larsson , Randy Dunlap , Sasha Levin Subject: [PATCH 5.15 249/317] sparc32: Fix section mismatch in leon_pci_grpci Date: Sun, 24 Mar 2024 19:33:49 -0400 Message-ID: <20240324233458.1352854-250-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324233458.1352854-1-sashal@kernel.org> References: <20240324233458.1352854-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Sam Ravnborg [ Upstream commit 24338a6ae13cb743ced77da1b3a12c83f08a0c96 ] Passing a datastructre marked _initconst to platform_driver_register() is wrong. Drop the __initconst notation. This fixes the following warnings: WARNING: modpost: vmlinux: section mismatch in reference: grpci1_of_driver+= 0x30 (section: .data) -> grpci1_of_match (section: .init.rodata) WARNING: modpost: vmlinux: section mismatch in reference: grpci2_of_driver+= 0x30 (section: .data) -> grpci2_of_match (section: .init.rodata) Signed-off-by: Sam Ravnborg Cc: "David S. Miller" Cc: Andreas Larsson Fixes: 4154bb821f0b ("sparc: leon: grpci1: constify of_device_id") Fixes: 03949b1cb9f1 ("sparc: leon: grpci2: constify of_device_id") Tested-by: Randy Dunlap # build-tested Reviewed-by: Andreas Larsson Tested-by: Andreas Larsson Signed-off-by: Andreas Larsson Link: https://lore.kernel.org/r/20240224-sam-fix-sparc32-all-builds-v2-7-1f= 186603c5c4@ravnborg.org Signed-off-by: Sasha Levin --- arch/sparc/kernel/leon_pci_grpci1.c | 2 +- arch/sparc/kernel/leon_pci_grpci2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sparc/kernel/leon_pci_grpci1.c b/arch/sparc/kernel/leon_p= ci_grpci1.c index e6935d0ac1ec9..c32590bdd3120 100644 --- a/arch/sparc/kernel/leon_pci_grpci1.c +++ b/arch/sparc/kernel/leon_pci_grpci1.c @@ -696,7 +696,7 @@ static int grpci1_of_probe(struct platform_device *ofde= v) return err; } =20 -static const struct of_device_id grpci1_of_match[] __initconst =3D { +static const struct of_device_id grpci1_of_match[] =3D { { .name =3D "GAISLER_PCIFBRG", }, diff --git a/arch/sparc/kernel/leon_pci_grpci2.c b/arch/sparc/kernel/leon_p= ci_grpci2.c index ca22f93d90454..dd06abc61657f 100644 --- a/arch/sparc/kernel/leon_pci_grpci2.c +++ b/arch/sparc/kernel/leon_pci_grpci2.c @@ -887,7 +887,7 @@ static int grpci2_of_probe(struct platform_device *ofde= v) return err; } =20 -static const struct of_device_id grpci2_of_match[] __initconst =3D { +static const struct of_device_id grpci2_of_match[] =3D { { .name =3D "GAISLER_GRPCI2", }, --=20 2.43.0