Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp505131rbb; Sat, 24 Feb 2024 09:43:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVyrDorWtAZWksdGTA47rVN7sIlgF6wL23Ns/RAB57P65IIFJ/U/Q8SQG5CPn6wX8i8wxJ3XhCYXXityzw21xghoJWrQJOg1qissudN1g== X-Google-Smtp-Source: AGHT+IGE5d98bWcXmN7w6xqFHvMEgKhNnlF4kEgqINAM0aNRLzn/MID2IUyOM9ls6HBvFZbV/9FH X-Received: by 2002:a05:6871:4cd:b0:21a:46a6:b069 with SMTP id n13-20020a05687104cd00b0021a46a6b069mr3931699oai.14.1708796626098; Sat, 24 Feb 2024 09:43:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708796626; cv=pass; d=google.com; s=arc-20160816; b=JcFI4MrhHbE3q95NMP3/fG9RdkwzKRzajxUNC1w4KdQC+Pj+a6cPl3c255W60qDioP sMN5mS09W16ToOuY7MCTpMyk3fCLcRFpvaJtJmpHUuJ10A6MwLRdwRMgR6OqDROQDz3D aXP09hBoIx1z/KlsOqxfcGhSf2kAbt3+AjsNmTZfBMFSbmYm6qX36GX8Z2T2TkwW9r+w l62+wJu0l5RL6+ca7KwuKeIozz5bWEESFOU531/HKHgpjsvXzRkU1P14xzVAiG1t8gw3 Tizb2P63PaL1d6YTN+2L8Mh8CswM7x23NdyVGU006oY5cyOxC7uCCcQZlt8ABWXGxwfQ QwGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=xl5sr6xGvkgt0DRk80TmwdWAopeF+k3ng7NlSeZyPdc=; fh=axaiTczyEibQIAZR7tL5HdXpt5eDXppl7AUtI52L8OM=; b=sje/2fmZFdyvFlqCNHsBKdLJ/Vn+OLsoPp8VTTPMxfzn/jlXF3Tm3y+viv2oqQB+s8 06wB6Yz7o2FH8xyu3G81INvBHYVmG3+AzX/7N8GioVtfj+iD8NUGObXIHclGP/07O9uv eDhe9VaVf1OWX6RmNbB1mL/IrvT0WND/6Zb7e+mv8fWoTDcJcJl604nBcQUMsoAe7b3S J5NeBYdoUDt2sUViufNUXaTM+WgCkhIiBJtOEOOrfY1iKmvKAhCN995i1bWxn8P+w0Kc xEXk6Imf7BoqebkCthB90uMc7B91ehig3d4d1UnrI9ZfwTc5SfvT6mxuZU8mgJ3017h/ /y6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hM6IjYpO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79770-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79770-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 b15-20020a17090a6e0f00b00296fa4bc183si2944082pjk.187.2024.02.24.09.43.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 09:43:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79770-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=hM6IjYpO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79770-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79770-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 C38F6282877 for ; Sat, 24 Feb 2024 17:43:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 97F7F4E1BF; Sat, 24 Feb 2024 17:42:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hM6IjYpO" 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 882DF481DB; Sat, 24 Feb 2024 17:42:27 +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=1708796547; cv=none; b=Ajv9tYzRrhrlREtimXSrFdsRIEB06fww/EY1t0AuEbff2YjQtdnd+eTVhAwFat85MZpGi3MqN14RV7oJ9qWWWJ9q9x68Rn6lzx85dsI+xBwBQ2wWd9A0XAUkqt3ccUmggxixZd3Su5o5f3tR6JT5gT0Cf+G3kh7zmhcwyJqyfWo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708796547; c=relaxed/simple; bh=BpChDc4AdXLSlhIQ1beqDCEhZX4ty/N7Hr3rHV89JQc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BxYe0MbaMXG8lIpnFBd7K+R94u1iYG+omsv8JP18+dnYm4a1Nvx+NMXaU1w6mYNAvFUHIM8UyTkAkC+P5dGPxV7SRXVOiOWMuz543mgADPLiD4IgB1o3dE8bGX41t0P6A8oZLzGNEyxwBhI4fpsXmTCLi0J3lO0rR1U7hkDnU6Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hM6IjYpO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 43250C433B2; Sat, 24 Feb 2024 17:42:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708796547; bh=BpChDc4AdXLSlhIQ1beqDCEhZX4ty/N7Hr3rHV89JQc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=hM6IjYpOnP7O32ustFTBJR9nsLehBYm1XHe6qd6G6vfsQOaVgkWe/VXrM3tkUp0nU e5OSJtZ4x4ZbbOtuk9R2+inYXs903bweTKX3iY0gVhbTszG36R9vnd0G1e0zaXNo7L M3TKZQO2Bra3x7BpiC/JzhaeNvvjj8KwauKOZEClrOCej7DRwq/b9k20rwNBuFTCua 3W/dFbNMK1sIdeYJ+OES6eG+G3BrzyU41DiOas48ZzveyaFMvsJqGwpAmJr3Mli4J9 FZJaeqvEfuUwxz8S9wqg9buQaMHw5Gib2qkCNwgQpx2IA+NTCWWBuVe/Dfkax3dF3R +7TCZzp1b3klA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 329BCC54E4F; Sat, 24 Feb 2024 17:42:27 +0000 (UTC) From: Sam Ravnborg via B4 Relay Date: Sat, 24 Feb 2024 18:42:28 +0100 Subject: [PATCH v2 7/7] sparc32: Fix section mismatch in leon_pci_grpci Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240224-sam-fix-sparc32-all-builds-v2-7-1f186603c5c4@ravnborg.org> References: <20240224-sam-fix-sparc32-all-builds-v2-0-1f186603c5c4@ravnborg.org> In-Reply-To: <20240224-sam-fix-sparc32-all-builds-v2-0-1f186603c5c4@ravnborg.org> To: "Maciej W. Rozycki" , sparclinux@vger.kernel.org, Andreas Larsson , Randy Dunlap Cc: Miquel Raynal , linux-parport@lists.infradead.org, "David S. Miller" , Arnd Bergmann , linux-kernel@vger.kernel.org, Sam Ravnborg X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708796545; l=1706; i=sam@ravnborg.org; s=20230107; h=from:subject:message-id; bh=sp1d/B24jZbQZh3/vvpsecjIEsONMYKjjInm+P7c4rg=; =?utf-8?q?b=3Dg6ryIctXAY8E?= =?utf-8?q?RVSP7byE0Sv/rPNTxni/bFVxqgeeV0JsbhZM6eDayu5hVR10CVQe98O1Q1FHWAAM?= /aIXJuA6B9nUPGrWcgHnnmW73F4QqXtQDcNHs5JOfJ8Z60bsp0Ek X-Developer-Key: i=sam@ravnborg.org; a=ed25519; pk=R0+pqV7BRYOAeOIGkyOrSNke7arx5y3LkEuNi37YEyU= X-Endpoint-Received: by B4 Relay for sam@ravnborg.org/20230107 with auth_id=22 X-Original-From: Sam Ravnborg Reply-To: From: Sam Ravnborg 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 --- 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 8700a0e3b0df..b2b639bee068 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 282b49d496ea..9f662340b5b2 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.34.1