Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2394814lqp; Sun, 24 Mar 2024 17:34:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWyJhDyxSz8G2g0mh/+CQmhyJpHtFka0+cFFSdCFn2FRnwjAwumD9cr0P4329F170/hv6BGyL7UzJjiII45PEfOrZZWxVnm2IDcfsr/ug== X-Google-Smtp-Source: AGHT+IEcUS1AJpauWckpx09tN6omPHO86qglLYx5CtDrtNvgY7zcx4IqGhcLbTJDo1dNPR57Pw2d X-Received: by 2002:a17:902:e889:b0:1e0:c824:2510 with SMTP id w9-20020a170902e88900b001e0c8242510mr180804plg.14.1711326896045; Sun, 24 Mar 2024 17:34:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711326896; cv=pass; d=google.com; s=arc-20160816; b=pSYr4whU6pyC/hce4qP6AiATnr0bkTPhr7Syw9XUxi0Nf056P6L46ZFao7yvq56mVy 6Va+UPNff0zxZNV6IWLBLa4QB773INjmVJIAQSylshTZhOut9sb/WQAil7E/VLai92kH i5ELggJojBqv5WlY2M2JIjkn74hbo+3r0iFIAsi8KcrSzv+19F8PEV1lKkntUsccUfiP 2sq1We9ILK/ro58GXVBbgeuVpsGk2F2X+9uSPWxFHC/2lNt3MpUbV7LULwkLDqH0Hb8S XwYG3CHwYD1mNWZ3pEaZzuD2O/5TR5WVsefBoyeoyVPIKVQIvVw2z/pvBpPvRP74DyEY 90BQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Sz3R3QL4438mEBE1rntf38misZzkZdftXeAbIrHctg8=; fh=xMyeNQ2huaJHBwUbPTNrMOlZJhl90ZhZmMWSf1AntIY=; b=b8J9DI06JrFxQrTVWdnhIFfsyEIKvUUSQrvrhcRElQfhBTY/7yZVWDYaG9dFa9G8VP Sq+0utJICyrGbGxa9ma0AADdk0pByJg4Z3xFLygo4peIQGRjQbT/3wf67pd1oKV9MJCA 79exBuqpb9amQpmVC7kv1Fibz5+KunG7rfIotstvrm8tN/8RzR0MJMw3HZX3lREMjjRi qItsWlYvhic4s4LGG8cKxS5m9wktk7KmXcbj5glsPgUjM3Z7vkt1ZeiaPkUtORysnwNP C+ydaoleAi/2c6mr3WqGmbilrm10+J8NS9qQxs9iYvSQCTM5uiVC+Bomt7FzUIzVgfDC tlkA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SXGNWHK7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113424-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113424-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l4-20020a170902d34400b001dc1df6489dsi3943113plk.26.2024.03.24.17.34.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:34:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113424-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SXGNWHK7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113424-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113424-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3F9D9281210 for ; Mon, 25 Mar 2024 00:33:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AB2971A928E; Sun, 24 Mar 2024 22:43:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SXGNWHK7" 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 BBF5D1A926D; Sun, 24 Mar 2024 22:43:46 +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=1711320226; cv=none; b=tbnpkU98OsdQrTe2zIB7Y3fx3/SzUmBNdx2T/3O2IGhHeH+DydNS30M9EyKIxtPXu2t7IqIG9cIp200QAbOqhQdf9+hl9RM2/ytD3S2vzW3EBcYvP7TLLDk1wRo9FeTb6ZLiYWWN/pa7/Lnxnsme4HAgAIa7TLmtZPK8I+blqEM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320226; c=relaxed/simple; bh=sp+I6BBlIcJS79pai/X5kIFjSazMkV/hJKZ8rNYUafs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Q6ITIfne2tzXI6Sr7P5km+i/EjAFPO/68IUZ0KD4OxZ5Qbfh7m9u/jiIH8VmyS6CotuVQ4eoO1LthsFCE/GD2ngeoBXk8FgIkX3HIXq4aHehMXrRqcAefCGXvU6UU8TxkIDOR84SPTON18cPB3in128z/VTKZCeMb+ZQwXUu8S8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SXGNWHK7; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87F52C43399; Sun, 24 Mar 2024 22:43:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320226; bh=sp+I6BBlIcJS79pai/X5kIFjSazMkV/hJKZ8rNYUafs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SXGNWHK7LRs6oIwPqFnA9q2Nvj2e8J6iQpups3jsTT5xtm5n+p4X3o+XlZ7izNjbu Zu7zJ1g/o2GWSG0jldT+TK1e2pEA2V7bySS0KS3F+/uPCBO68kKxfoO+PjdU0/6tO4 QISQ7JpfBO30JtNTEk7+xBlLypZGficcd58UeKA3YqZigGUgz4HmiF3lsG9inWytZ2 synSBYFM20JnUEP2YD6yhcJ9gskjMQPEQFQRpMr+7Vn0a9ATFQWAh4mOiNJKh+MLzi Ql1f9PcpeIKpJF/jVmT2M5LcRRocAnj4+jU3dBj5ktdVYl0+jlE5WlKIHgcfVBICeQ u/5+BRhQrSZSQ== 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 6.8 533/715] sparc32: Fix section mismatch in leon_pci_grpci Date: Sun, 24 Mar 2024 18:31:52 -0400 Message-ID: <20240324223455.1342824-534-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-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: 8bit 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-1f186603c5c4@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_pci_grpci1.c index 8700a0e3b0df7..b2b639bee0684 100644 --- a/arch/sparc/kernel/leon_pci_grpci1.c +++ b/arch/sparc/kernel/leon_pci_grpci1.c @@ -697,7 +697,7 @@ static int grpci1_of_probe(struct platform_device *ofdev) return err; } -static const struct of_device_id grpci1_of_match[] __initconst = { +static const struct of_device_id grpci1_of_match[] = { { .name = "GAISLER_PCIFBRG", }, diff --git a/arch/sparc/kernel/leon_pci_grpci2.c b/arch/sparc/kernel/leon_pci_grpci2.c index 60b6bdf7761fb..ac2acd62a24ec 100644 --- a/arch/sparc/kernel/leon_pci_grpci2.c +++ b/arch/sparc/kernel/leon_pci_grpci2.c @@ -889,7 +889,7 @@ static int grpci2_of_probe(struct platform_device *ofdev) return err; } -static const struct of_device_id grpci2_of_match[] __initconst = { +static const struct of_device_id grpci2_of_match[] = { { .name = "GAISLER_GRPCI2", }, -- 2.43.0