From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94986C17461 for ; Tue, 5 Nov 2019 12:49:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5E02021882 for ; Tue, 5 Nov 2019 12:49:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572958171; bh=EnmHDJpRlHAWfn8bqOB3/vB3RWRtJ46RJfln9RLbDB0=; h=From:To:Cc:Subject:Date:List-ID:From; b=wGRHi5AUyeUmJj2OCDZC0/IxD1cX2pAhXWK5P4e1wZTL8r3AebiPFGwRbXZ+RNHlB 1EAFaV0HRr8+nyAk7c2+1yRIWbjxU9hu24kD+Yi1mx30mpJdtDIP1DedI13uX+MQRU biMyf1nVhB/BPVi2zx8Oii+i5kED5AcLqyitd7MU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388649AbfKEMtb (ORCPT ); Tue, 5 Nov 2019 07:49:31 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:42644 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388222AbfKEMta (ORCPT ); Tue, 5 Nov 2019 07:49:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=YF0SPqtJlZ9yO+HjEI8KHZXAGRkZZ0lJis6FsY1blfY=; b=odaFo7CtTrXVALVT+A9AmK2rw ab2bAvH1DMgSuC3Uj8rz+KMiDbgwqwRRZ9855XdWSypUMRyUVfGhCanvuESRTPFjWKey2GvQJBsWw forbrOvTwgMOlo1Il91xPnPW9wNmeIEaOAyzFgHP75ryeqJkQu37Y+UjvBee+KrRovfbQ=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=ypsilon.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iRyGx-0006Zf-EF; Tue, 05 Nov 2019 12:49:23 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 982D5274301E; Tue, 5 Nov 2019 12:49:22 +0000 (GMT) From: Mark Brown To: Linus Walleij , Bartosz Golaszewski , Chris Packham Cc: bcm-kernel-feedback-list@broadcom.com, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH] gpio: xgs-iproc: Fix section mismatch on device tree match table Date: Tue, 5 Nov 2019 12:49:15 +0000 Message-Id: <20191105124915.34100-1-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The table of devicetree identifiers is annotated as __initconst indicating that it can be discarded after kernel boot but it is referenced from the driver struct which has no init annotation leading to a linker warning: WARNING: vmlinux.o(.data+0x82d58): Section mismatch in reference from the variable bcm_iproc_gpio_driver to the variable .init.rodata:bcm_iproc_gpio_of_match The variable bcm_iproc_gpio_driver references the variable __initconst bcm_iproc_gpio_of_match Since drivers can be probed after init the lack of annotation on the driver struct is correct so remove the annotation from the match table. Signed-off-by: Mark Brown --- drivers/gpio/gpio-xgs-iproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-xgs-iproc.c b/drivers/gpio/gpio-xgs-iproc.c index a3fdd95cc9e6..bb183f584d92 100644 --- a/drivers/gpio/gpio-xgs-iproc.c +++ b/drivers/gpio/gpio-xgs-iproc.c @@ -299,7 +299,7 @@ static int __exit iproc_gpio_remove(struct platform_device *pdev) return 0; } -static const struct of_device_id bcm_iproc_gpio_of_match[] __initconst = { +static const struct of_device_id bcm_iproc_gpio_of_match[] = { { .compatible = "brcm,iproc-gpio-cca" }, {} }; -- 2.20.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DAD51C17461 for ; Tue, 5 Nov 2019 12:49:36 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id AF85F21928 for ; Tue, 5 Nov 2019 12:49:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="aGaIdibw"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sirena.org.uk header.i=@sirena.org.uk header.b="odaFo7Ct" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AF85F21928 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=AIpfEyXO5ornJrXK5FDXe35UJXIzMLoe2ZGmdSDHwrw=; b=aGaIdibwal1+Ex aUByLAaS0ql5f+3YxXidl/X5Wh3IyeSj5GZ+YaZLBf8Qh2zLBdJuwosiv6lQAFfcwg48L9DPM57cK uPpFsbQRln8E4tppkvDftCF838L89P4pzHDW5HAuiJkJCwNhqtbhvi5sqH7UCZfo2JKe2oT9c2LBi HIMI2PFR+SP2JSAER/IQgk8ZxHu4DIFHgvnvebrd0u9M3vvxg2x9q+WZXE8cgduMNkVqqcO9Btm4/ fqDXiz+67O4su0D99UrRnsXhF0QdLvrHnH5/e7RiD6nOJRDhtaDFFFkLukxhBGtC7saEoi0Q2zvvz mQCjdzS0PLtfN07p9Yyg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iRyHA-000578-8n; Tue, 05 Nov 2019 12:49:36 +0000 Received: from heliosphere.sirena.org.uk ([172.104.155.198]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iRyH7-000538-JH for linux-arm-kernel@lists.infradead.org; Tue, 05 Nov 2019 12:49:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=YF0SPqtJlZ9yO+HjEI8KHZXAGRkZZ0lJis6FsY1blfY=; b=odaFo7CtTrXVALVT+A9AmK2rw ab2bAvH1DMgSuC3Uj8rz+KMiDbgwqwRRZ9855XdWSypUMRyUVfGhCanvuESRTPFjWKey2GvQJBsWw forbrOvTwgMOlo1Il91xPnPW9wNmeIEaOAyzFgHP75ryeqJkQu37Y+UjvBee+KrRovfbQ=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=ypsilon.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iRyGx-0006Zf-EF; Tue, 05 Nov 2019 12:49:23 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 982D5274301E; Tue, 5 Nov 2019 12:49:22 +0000 (GMT) From: Mark Brown To: Linus Walleij , Bartosz Golaszewski , Chris Packham Subject: [PATCH] gpio: xgs-iproc: Fix section mismatch on device tree match table Date: Tue, 5 Nov 2019 12:49:15 +0000 Message-Id: <20191105124915.34100-1-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191105_044933_643991_1C3971B9 X-CRM114-Status: GOOD ( 11.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-gpio@vger.kernel.org, Mark Brown , bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org The table of devicetree identifiers is annotated as __initconst indicating that it can be discarded after kernel boot but it is referenced from the driver struct which has no init annotation leading to a linker warning: WARNING: vmlinux.o(.data+0x82d58): Section mismatch in reference from the variable bcm_iproc_gpio_driver to the variable .init.rodata:bcm_iproc_gpio_of_match The variable bcm_iproc_gpio_driver references the variable __initconst bcm_iproc_gpio_of_match Since drivers can be probed after init the lack of annotation on the driver struct is correct so remove the annotation from the match table. Signed-off-by: Mark Brown --- drivers/gpio/gpio-xgs-iproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-xgs-iproc.c b/drivers/gpio/gpio-xgs-iproc.c index a3fdd95cc9e6..bb183f584d92 100644 --- a/drivers/gpio/gpio-xgs-iproc.c +++ b/drivers/gpio/gpio-xgs-iproc.c @@ -299,7 +299,7 @@ static int __exit iproc_gpio_remove(struct platform_device *pdev) return 0; } -static const struct of_device_id bcm_iproc_gpio_of_match[] __initconst = { +static const struct of_device_id bcm_iproc_gpio_of_match[] = { { .compatible = "brcm,iproc-gpio-cca" }, {} }; -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel