From patchwork Thu Dec 6 13:04:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Paasch X-Patchwork-Id: 204224 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 5FC1E2C0281 for ; Fri, 7 Dec 2012 00:14:08 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754259Ab2LFNOF (ORCPT ); Thu, 6 Dec 2012 08:14:05 -0500 Received: from smtp.sgsi.ucl.ac.be ([130.104.5.67]:44041 "EHLO smtp5.sgsi.ucl.ac.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752917Ab2LFNOE (ORCPT ); Thu, 6 Dec 2012 08:14:04 -0500 Received: from cpaasch-mac.dhcp.info.ucl.ac.be (cpaasch-mac.dhcp.info.ucl.ac.be [130.104.228.20]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: cpaasch@smtp5.sgsi.ucl.ac.be) by smtp5.sgsi.ucl.ac.be (Postfix) with ESMTPSA id C018911F0E1; Thu, 6 Dec 2012 14:04:29 +0100 (CET) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp5.sgsi.ucl.ac.be C018911F0E1 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=uclouvain.be; s=selucl; t=1354799069; bh=Md0tIwywBFjZUjhZBuFWLMEZMIGqnutGl/TFUYMAMio=; h=From:To:Cc:Subject:Date:Message-Id; b=yVsO9JKD3lxOY/WzAsvOTqNpI4+NYzJ9XAI4qEhdfb3zofUa2CXOy6B0gKDgOwZ2Q oXAKqiaAzzO9CD4vNQPz1E4WgN07znIX3WEQUSeZkhJilCuVZto4xLezszRgaS3NbH qDWFo0Nl3FvEPJvFYjKWB+4kO8W/yqob464BDDeo= From: Christoph Paasch To: Grant Grundler , David Miller Cc: netdev@vger.kernel.org Subject: [PATCH] tulip: Fix compiler warning when CONFIG_DEBUG_SECTION_MISMATCH=y Date: Thu, 6 Dec 2012 14:04:27 +0100 Message-Id: <1354799067-25680-1-git-send-email-christoph.paasch@uclouvain.be> X-Mailer: git-send-email 1.7.10.4 X-Virus-Scanned: clamav-milter 0.97.3-exp at smtp-5.sipr-dc.ucl.ac.be X-Virus-Status: Clean X-Sgsi-Spamcheck: SASL authenticated, X-SGSI-MailScanner-ID: C018911F0E1.A05AC X-SGSI-MailScanner: Found to be clean X-SGSI-From: christoph.paasch@uclouvain.be X-SGSI-Spam-Status: No Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org WARNING: drivers/net/ethernet/dec/tulip/tulip.o(.text+0x4057): Section mismatch in reference from the function tulip_init_one() to the variable .devinit.rodata:early_486_chipsets The function tulip_init_one() references the variable __devinitconst early_486_chipsets. This is often because tulip_init_one lacks a __devinitconst annotation or the annotation of early_486_chipsets is wrong. Signed-off-by: Christoph Paasch --- drivers/net/ethernet/dec/tulip/tulip_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/dec/tulip/tulip_core.c b/drivers/net/ethernet/dec/tulip/tulip_core.c index 157c8e6..6baec9c 100644 --- a/drivers/net/ethernet/dec/tulip/tulip_core.c +++ b/drivers/net/ethernet/dec/tulip/tulip_core.c @@ -1301,7 +1301,7 @@ DEFINE_PCI_DEVICE_TABLE(early_486_chipsets) = { { }, }; -static int tulip_init_one(struct pci_dev *pdev, +static int __devinit tulip_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) { struct tulip_private *tp; @@ -1970,7 +1970,7 @@ static void poll_tulip (struct net_device *dev) } #endif -static struct pci_driver tulip_driver = { +static struct __devinitdata pci_driver tulip_driver = { .name = DRV_NAME, .id_table = tulip_pci_tbl, .probe = tulip_init_one,