From patchwork Tue Nov 5 12:49:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 178495 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp711155ilf; Tue, 5 Nov 2019 04:49:32 -0800 (PST) X-Google-Smtp-Source: APXvYqwjV4VeeuDAac1PBSgre8aMuwQy/u+Uy741waOSiRelwSbWmBwsMiytcwnclSPENBSbWXXD X-Received: by 2002:a17:906:f753:: with SMTP id jp19mr15090880ejb.216.1572958171676; Tue, 05 Nov 2019 04:49:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572958171; cv=none; d=google.com; s=arc-20160816; b=fjERdpc+gB/gslS/zbHgKf8bD4hm99f5R3n3jEBF/7lIdPRMgnTaRLHnF09vMb5e65 iPus6m1R6o6T0wOl/KCSOY+MDzRo+ABVveAJ3JiZiI1X+UCScOtbYf7gqsKPtxy5t5zu I+RHC/kw8a2ThMoMSAgr1mkjcnSQyKqeFDt6yQnxB+oO0cQ1Z/NdtmypAdYIBPPN7+go B+4UK7sqtWJhmIqMS65bev0IdHrJLeHDY3BUL7khZOJNEUpxuS6YCbMNHFHZa1Tza2h3 ija/jv+UlqFNFzratzgEf/mDBd1YE6+zrFXr4A8yB3yCm2U8dsVSyPB1h8rCjrvt4rXm zigA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=YF0SPqtJlZ9yO+HjEI8KHZXAGRkZZ0lJis6FsY1blfY=; b=RzYGkC/68wLkACQ728IiJp1N5MqolOXS9RlFWaDroLNPWBxMFrCeedMbxSTrUo95KH 9fAkaK7wIuVv9p2hvrfFwnaZxXT93omQEIXNIhmXOhMQ/szw6LQ9JofbkTdc967+ZJ3w l1DWSS5LEEdODAkXFj0pxN4t8eKD8snFxSkS6Q7igVNdsgXxchrRiHyOD2TH0/OUZntH 1+7AswF3sFqMhD4MdehHyixg9zgZGv4gCiL3MjWK+gA2AwxjGsKH4pvokTVieGnsDtob MjtYfjguqcDqlW3r4wv67LTE9O/3QJfR2fuMsKO7CZy32KfOawu5ZL4hUIKlMUR4kYRS G6dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=odaFo7Ct; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f37si9908864eda.190.2019.11.05.04.49.31; Tue, 05 Nov 2019 04:49:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=odaFo7Ct; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388649AbfKEMtb (ORCPT + 5 others); 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 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(-) -- 2.20.1 Reviewed-by: Chris Packham Reviewed-by: Yoshihiro Shimoda Tested-by: Yoshihiro Shimoda 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" }, {} };