Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1098007lqg; Sat, 2 Mar 2024 15:54:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXSkY39Az2o+prEEkISDFBV41w6UZoCjJ4OeC5Q3dZ4oNtNWJzygs+fM7cD4PLwhj9rORDtiPFJHmESaAJWGYouQ9hjIGu+Bz8dN7d6EQ== X-Google-Smtp-Source: AGHT+IE9e7ifCZ+HhSU3cntkitQaW26syffMpf6zJ0xKB3NQ8kMvn5MA7Y23oqFVE6+yHcu0Kqjo X-Received: by 2002:a05:620a:2494:b0:787:ced9:5f12 with SMTP id i20-20020a05620a249400b00787ced95f12mr10158217qkn.31.1709423650907; Sat, 02 Mar 2024 15:54:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709423650; cv=pass; d=google.com; s=arc-20160816; b=LUtliLxkwqmJWCQybNsSZahAI/CPJMWUSRtGCdgVaPudzzTwO7gcA5nFUOBvw53+m1 kUKRQMnp34/mmZOgfK0yBTAPSEQiPm4Ls9KOiM4zR+gIpwIiyD2Jsjg8PWan6kAvIIXU fRQB4A2eC0Q757O2hSba6APzm6+xFGCm1K0snupvdM3RYBmhQEjsPSiYQs4xkwVi322G Siy/8OSQqZV/Qcf0wRTATAY/57Zwhs34NTg8B8ymyoLcJ7x5dGeofRyBLaNx0BeodkLX UEa9kbduk602LxkJjJ5ayxXWzWO53Fy9nAOdz8tE3Kfl5UL4HGYB+h1x6EQY/FvOfpRX 8S6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=rRSxRq4RYizaA5xPGXgzWmpBCTInsuqB/CJzht9r6cQ=; fh=lLlzFU5tD+gZa7MGrsHFHzBetAR7kkxwNr+Jw+gFM6U=; b=NhJzMVa3SxVa71TNtKnwlxfGcLjo8P4UIeEgPMfHxV6qj88bCj+co7qlzz+T3a3QyH N/3kQ0vWHDusifSV4y0ZHP79fgWlg5Lsq+pn5w2mmNRVpHXVNKnl4IfNTsrHewuVUbJe y72iowezv+4Zs/W/ajOwSJRz6k6MmvgfAE6gCEpJjhP4+CJzp0K5bXcHwZoIAwcxJKAm RK4Q84quTQhrfWD8G2BNe/rBSZ2x7P4cc5nhmRHEjwsLx+HhuISktIcm6ppOREKNMlh/ zdBx0H6oD2QifC4m4nisXdFXrp49slAcwAXgHErdS6yMRIrdQJk+Hv4Sz5vGbdR161AA kPwg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="jPcygT/x"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-89625-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89625-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z5-20020ae9f445000000b00787bd6fa02bsi2207943qkl.327.2024.03.02.15.54.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Mar 2024 15:54:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89625-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="jPcygT/x"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-89625-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89625-linux.lists.archive=gmail.com@vger.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A1C4D1C2150E for ; Sat, 2 Mar 2024 23:54:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 398D053E3D; Sat, 2 Mar 2024 23:54:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="jPcygT/x" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 EF29A1FB2; Sat, 2 Mar 2024 23:54:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709423644; cv=none; b=biW5rrdkK8PhsAdVlTvaNJP/8pIfgKzLclNu1cgq5WZYKuNXx6LUjTMnHTxXsr5ksu9XBB3dp1agS4HdnCehv8iO3tZEEPpUK8SAElZDo6dnotW0Emimp4aAJ9WaiAc91vcJdGU+tnaiqTIG1CcIa1dXRL5eozf5rARLqySbmoI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709423644; c=relaxed/simple; bh=05dr3QBGjLcG8bLfMQxmFebKi1hG0Y+b2mQbXTJXf/E=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=l7InP6CqBakhTVXwdkkBWRYw8j/C06OvfinrvQNA4TBTtB/CoJAffG5rEmOQfeg2dfGtcXYfjV5BrrnystPiiHaiPNdvf5VUoyfqX389wEd3KdosayYPTe1iCKVvi+41ZN+UrCo8WoIk6nYraHzRIRixq9M6J5MGNCXdETg+BF4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=jPcygT/x; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=rRSxRq4RYizaA5xPGXgzWmpBCTInsuqB/CJzht9r6cQ=; b=jPcygT/xGUKMPQQlsh5xGz7c/z opWDep6LuPQwB4+hFtRmqPKmNPbPXYMGUy6Mu8W0ckfxwHa5ph3CKDne2d8NoxzQliAB2mAypp7Xb XdI0cCv1Xw0j4DCItw8mSQYyNo0hhiqxbz2lfngDawhtUqJ6cDhbZUlP1jeFr6vcTbQL2ME2mOFGu FhRtIrj+ySvPTqN3hDZskCOz0f6MiuGEwzNxJueN8VCNsWB/dxE1Gmj+ODF2NbvbPI80LVUTzQQQ/ Kjrskk5vjRdzoYsn0L2apiuPYOhNUJltdM5AFLngjsvzGl0FJI24bYYxf5j+XbV3O+4UYPy8FHszU CldGkbXA==; Received: from [50.53.50.0] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rgZB4-00000004gky-0LOv; Sat, 02 Mar 2024 23:54:02 +0000 Message-ID: <0bb239ef-013f-4bdb-9d8e-a288f39438d2@infradead.org> Date: Sat, 2 Mar 2024 15:54:01 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 7/7] sparc32: Fix section mismatch in leon_pci_grpci Content-Language: en-US To: sam@ravnborg.org, "Maciej W. Rozycki" , sparclinux@vger.kernel.org, Andreas Larsson Cc: Miquel Raynal , linux-parport@lists.infradead.org, "David S. Miller" , Arnd Bergmann , linux-kernel@vger.kernel.org References: <20240224-sam-fix-sparc32-all-builds-v2-0-1f186603c5c4@ravnborg.org> <20240224-sam-fix-sparc32-all-builds-v2-7-1f186603c5c4@ravnborg.org> From: Randy Dunlap In-Reply-To: <20240224-sam-fix-sparc32-all-builds-v2-7-1f186603c5c4@ravnborg.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/24/24 09:42, Sam Ravnborg via B4 Relay wrote: > 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 Tested-by: Randy Dunlap # build-tested Thanks. > --- > 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", > }, > -- #Randy