Received: from mail.onstor.com ([66.201.51.107]) by onstor-exch02.onstor.net with Microsoft SMTPSVC(6.0.3790.1830);
	 Sat, 8 Mar 2008 08:59:08 -0800
Received: from ftp.linux-mips.org ([194.74.144.162]) by mail.onstor.com with Microsoft SMTPSVC(6.0.3790.1830);
	 Sat, 8 Mar 2008 08:59:08 -0800
Received: from localhost.localdomain ([127.0.0.1]:2769 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP
	id S28645947AbYCHQ66 (ORCPT <rfc822;andy.sharp@onstor.com>);
	Sat, 8 Mar 2008 16:58:58 +0000
Received: with ECARTIS (v1.0.0; list linux-mips); Sat, 08 Mar 2008 16:58:37 +0000 (GMT)
Received: from localhost.localdomain ([127.0.0.1]:465 "EHLO
	dl5rb.ham-radio-op.net") by ftp.linux-mips.org with ESMTP
	id S28645950AbYCHQ6f (ORCPT <rfc822;linux-mips@linux-mips.org>);
	Sat, 8 Mar 2008 16:58:35 +0000
Received: from denk.linux-mips.net (denk.linux-mips.net [127.0.0.1])
	by dl5rb.ham-radio-op.net (8.14.1/8.13.8) with ESMTP id m28GwYXS008674;
	Sat, 8 Mar 2008 16:58:34 GMT
Received: (from ralf@localhost)
	by denk.linux-mips.net (8.14.1/8.14.1/Submit) id m28GwXcu008663;
	Sat, 8 Mar 2008 16:58:33 GMT
Date:	Sat, 8 Mar 2008 16:58:33 +0000
From:	Ralf Baechle <ralf@linux-mips.org>
To:	Jeff Garzik <jeff@garzik.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	netdev@vger.kernel.org, linux-mips@linux-mips.org
Subject: [IOC3] Fix section missmatch
Message-ID: <20080308165833.GA8625@linux-mips.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.17 (2007-11-01)
X-archive-position: 18364
X-ecartis-version: Ecartis v1.0.0
Sender:	linux-mips-bounce@linux-mips.org
Errors-to: linux-mips-bounce@linux-mips.org
X-original-sender: ralf@linux-mips.org
Precedence: bulk
X-list:	linux-mips
Return-Path: linux-mips-bounce@linux-mips.org
X-OriginalArrivalTime: 08 Mar 2008 16:59:08.0597 (UTC) FILETIME=[B98B6E50:01C8813D]

  LD      drivers/net/built-in.o
WARNING: drivers/net/built-in.o(.text+0x3468): Section mismatch in reference fro
m the function ioc3_probe() to the function .devinit.text:ioc3_serial_probe()
The function ioc3_probe() references
the function __devinit ioc3_serial_probe().
This is often because ioc3_probe lacks a __devinit 
annotation or the annotation of ioc3_serial_probe is wrong.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

---
Resend, this time with Jeff's address corrected.

diff --git a/drivers/net/ioc3-eth.c b/drivers/net/ioc3-eth.c
index 373f72c..1f25263 100644
--- a/drivers/net/ioc3-eth.c
+++ b/drivers/net/ioc3-eth.c
@@ -1221,7 +1221,8 @@ static void __devinit ioc3_serial_probe(struct pci_dev *pdev, struct ioc3 *ioc3)
 }
 #endif
 
-static int ioc3_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
+static int __devinit ioc3_probe(struct pci_dev *pdev,
+	const struct pci_device_id *ent)
 {
 	unsigned int sw_physid1, sw_physid2;
 	struct net_device *dev = NULL;

----- End forwarded message -----

  Ralf

