Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp461849lqs; Tue, 5 Mar 2024 07:08:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXjfJBaAwymjinF+xlSo8eACoJyuqFDgbmSo98iXCzZPlo/MlbVLXOIvmTEaduebYb/D75vOjJlk10IMGwsle3ENYcfiOx0soK8DMjiOg== X-Google-Smtp-Source: AGHT+IHKQ37PFwtqxBLCzl0JwRW4KdOKMDau5CZ8GpCYC6mZqnEsquHEuUgz0XRN+fiJA9dFl3eM X-Received: by 2002:a17:903:1c7:b0:1dc:a60a:a7c7 with SMTP id e7-20020a17090301c700b001dca60aa7c7mr2412620plh.25.1709651280948; Tue, 05 Mar 2024 07:08:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709651280; cv=pass; d=google.com; s=arc-20160816; b=AyPBrZbyJfCvCyyUuJ8cHDgXMgQk34MkUIpVkbQwchMjEx/rb6fChpTcaeTaIJ8/SZ skbK7ZqrB5XbjYRNU4ZYw/wEjjGYWbYdEDTgfZf+cRHaL1PVatZ2PynIxAbRTodtkDZu CwsO2DshbiXAEyCKEGY4isDwqm6EATsAh+95TnZ+UlNgvDun3XNdR7sGQOn7yp43C7IL eVVIGRdAy9f+Ps+QtIb+4uSa/qOBcHjBtUPQ6KK4DOZ2shRnpUNMUcZDu3KCHzbsXQK9 e9rntwPdXepwJA04zs/NL4N+8kJ6fPTGzoYj5UVDDCB6A+eKKJfMLxNDJvItm6ixTaIm kO1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=VetxK7yjRtnH1XgANvoOGGg9D35KX7NCD1vfFBjm0IU=; fh=Uyvov59C/GYE7SzlTwt8N+9xdXcAPI+jjVhYyNcAuuo=; b=yjlW7nQh9fsqzhXC8rx4h0RBG3es7g6G4Q4zPd+/jkTaKCmctZ6teCidfhc6V/Pa1g WTnjUA82zH4Kxeb96WcSt2l5qRS77Bfdkk6i94ev9n921PPkphVCuqFptdlFE8KBmnm6 W6z7Xar3GcDKuWXpFRqUzNkTjJ+S7/TveejVE7e4oIUVea16w6d5S8Qi9bzpAi87u+88 bQDnqNjUu2CMi5vep5QUXEc7o74oeVRfArP6IE4uxavh9QDIMdrsynRwzEV61qHK/mBk unopNm03fMrwauWMowb7CjqeMYLehFef36XQsYWx/Zk9+UD9B5rLE0r2S8ImZwzCm4J0 kcRA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gaisler.com header.s=unoeuro header.b=liXzRDI1; arc=pass (i=1 spf=pass spfdomain=gaisler.com dkim=pass dkdomain=gaisler.com dmarc=pass fromdomain=gaisler.com); spf=pass (google.com: domain of linux-kernel+bounces-92577-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=gaisler.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j3-20020a170902da8300b001dcdfbf26b4si9544423plx.473.2024.03.05.07.08.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 07:08:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92577-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gaisler.com header.s=unoeuro header.b=liXzRDI1; arc=pass (i=1 spf=pass spfdomain=gaisler.com dkim=pass dkdomain=gaisler.com dmarc=pass fromdomain=gaisler.com); spf=pass (google.com: domain of linux-kernel+bounces-92577-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=gaisler.com 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 5EDEA282A7E for ; Tue, 5 Mar 2024 15:07:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 93CE4126F38; Tue, 5 Mar 2024 15:07:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=gaisler.com header.i=@gaisler.com header.b="liXzRDI1" Received: from smtp-out3.simply.com (smtp-out3.simply.com [94.231.106.210]) (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 0E49F4683; Tue, 5 Mar 2024 15:07:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=94.231.106.210 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709651231; cv=none; b=jt9dkIvNmgqdmmHD2kh0dhDMDnMRU5GrRUOh4to4AoV15czCZQn4CpWVGoUsfw8qobLcT2d94Q/nK1k+90gB0S2wJ3MtR/jP1sv47UdbQVORhF/dlZSeG+uvHMV6crr4+LjeDIOgKb06XXDlcKSXPC0BpQCTfdYh4mCuGf1CO9A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709651231; c=relaxed/simple; bh=j45/arG1jTvfPCM3g2slpD39IyQbQuMb0o2+3UhyDDQ=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=lb7nIgkGmrntOTydJu/QngSFYOQw5UyBsID0HyRmFzBqlxCNCs48FXa3Y15SMGNmiSUo/G3B/uqfa5/ISgJ+yDEXEHNSMZkv/Q4RYwraYeWg17QQPve71Lyi5yXp92jlC7cweQyY6QvZEBA6uCcuK/op1kLWsTECfmtGe0B7blk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=gaisler.com; spf=pass smtp.mailfrom=gaisler.com; dkim=pass (1024-bit key) header.d=gaisler.com header.i=@gaisler.com header.b=liXzRDI1; arc=none smtp.client-ip=94.231.106.210 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=gaisler.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gaisler.com Received: from localhost (localhost [127.0.0.1]) by smtp.simply.com (Simply.com) with ESMTP id 4TpzS66ZZDz684B; Tue, 5 Mar 2024 16:07:02 +0100 (CET) Received: from [192.168.0.25] (h-98-128-223-123.NA.cust.bahnhof.se [98.128.223.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by smtp.simply.com (Simply.com) with ESMTPSA id 4TpzRx4KpNz684Y; Tue, 5 Mar 2024 16:06:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gaisler.com; s=unoeuro; t=1709651222; bh=VetxK7yjRtnH1XgANvoOGGg9D35KX7NCD1vfFBjm0IU=; h=Date:From:Subject:To:Cc:References:In-Reply-To; b=liXzRDI1gYzFNvWsoFw06B9/hCOt22Y5AnFAH2sKKKrkRGIME570mJ60DLtRJov4p f9eibKo2lpxkQQE64AWk9msiez/qlQhyY+2W2NIBybI3wX7h709oLKGtq+Z+lGBz06 X2m9YBQftWzTXfPiw/C1dM9UVzLjiWV1iO0GbkR4= Message-ID: Date: Tue, 5 Mar 2024 16:06:52 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Andreas Larsson Subject: Re: [PATCH v2 7/7] sparc32: Fix section mismatch in leon_pci_grpci To: sam@ravnborg.org, "Maciej W. Rozycki" , sparclinux@vger.kernel.org, Randy Dunlap Cc: Miquel Raynal , linux-parport@lists.infradead.org, "David S. Miller" , Arnd Bergmann , linux-kernel@vger.kernel.org, Arvind Yadav References: <20240224-sam-fix-sparc32-all-builds-v2-0-1f186603c5c4@ravnborg.org> <20240224-sam-fix-sparc32-all-builds-v2-7-1f186603c5c4@ravnborg.org> Content-Language: en-US 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 2024-02-24 18: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 Could you also add Fixes: 4154bb821f0b ("sparc: leon: grpci1: constify of_device_id") Fixes: 03949b1cb9f1 ("sparc: leon: grpci2: constify of_device_id") for these fixes in your v3 of the series as well as CCing stable? > --- > 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", > }, > Thanks, Andreas