From patchwork Tue May 31 03:05:57 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 831382 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4V37AUH011961 for ; Tue, 31 May 2011 03:07:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752710Ab1EaDHJ (ORCPT ); Mon, 30 May 2011 23:07:09 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:23705 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751407Ab1EaDHI (ORCPT ); Mon, 30 May 2011 23:07:08 -0400 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p4V366gj011123 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 31 May 2011 03:06:08 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p4V365Ok027861 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 31 May 2011 03:06:05 GMT Received: from abhmt008.oracle.com (abhmt008.oracle.com [141.146.116.17]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p4V35xSV022141; Mon, 30 May 2011 22:06:00 -0500 Received: from chimera.site (/50.53.38.135) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 30 May 2011 20:05:59 -0700 Date: Mon, 30 May 2011 20:05:57 -0700 From: Randy Dunlap To: "Witold Baryluk" , Jesse Barnes Cc: linux-pci@vger.kernel.org, Adrian Bunk Subject: [PATCH] pci_eisa: fix section mismatch warning Message-Id: <20110530200557.26c84d70.randy.dunlap@oracle.com> In-Reply-To: <20110530164846.GT25813@smp.if.uj.edu.pl> References: <20110530164846.GT25813@smp.if.uj.edu.pl> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090208.4DE45B21.0004:SCFMA922111,ss=1,fgs=0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 31 May 2011 03:07:21 +0000 (UTC) From: Randy Dunlap Fix section mismatch warning in pci_eisa.c: WARNING: drivers/eisa/built-in.o(.data+0x90): Section mismatch in reference from the variable pci_eisa_driver to the function .init.text:pci_eisa_init() The variable pci_eisa_driver references the function __init pci_eisa_init() If the reference is valid then annotate the variable with __init* or __refdata (see linux/init.h) or name the variable: *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console Reported-by: Witold Baryluk Signed-off-by: Randy Dunlap Cc: Adrian Bunk --- drivers/eisa/pci_eisa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- lnx26today.orig/drivers/eisa/pci_eisa.c +++ lnx26today/drivers/eisa/pci_eisa.c @@ -51,7 +51,7 @@ static struct pci_device_id pci_eisa_pci { 0, } }; -static struct pci_driver pci_eisa_driver = { +static struct pci_driver pci_eisa_driver __refdata = { .name = "pci_eisa", .id_table = pci_eisa_pci_tbl, .probe = pci_eisa_init,