From patchwork Mon Jun 13 18:17:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 100175 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 4CE64B6FBE for ; Tue, 14 Jun 2011 04:18:07 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752280Ab1FMSRn (ORCPT ); Mon, 13 Jun 2011 14:17:43 -0400 Received: from jacques.telenet-ops.be ([195.130.132.50]:48574 "EHLO jacques.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750726Ab1FMSRl (ORCPT ); Mon, 13 Jun 2011 14:17:41 -0400 Received: from ayla.of.borg ([84.193.80.148]) by jacques.telenet-ops.be with bizsmtp id vWHe1g00B3C005g0JWHekl; Mon, 13 Jun 2011 20:17:38 +0200 Received: from geert by ayla.of.borg with local (Exim 4.71) (envelope-from ) id 1QWBhh-0005gJ-Ft; Mon, 13 Jun 2011 20:17:37 +0200 From: Geert Uytterhoeven To: netdev@vger.kernel.org Cc: linux-m68k@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] net/hplance: hplance_init() should be __devinit Date: Mon, 13 Jun 2011 20:17:36 +0200 Message-Id: <1307989056-21814-1-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 1.7.0.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org WARNING: vmlinux.o(.devinit.text+0x253e): Section mismatch in reference from the function hplance_init_one() to the function .init.text:hplance_init() The forward declaration had the correct attribute, but the actual function definition hadn't. Signed-off-by: Geert Uytterhoeven --- drivers/net/hplance.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/hplance.c b/drivers/net/hplance.c index b6060f7..a900d5b 100644 --- a/drivers/net/hplance.c +++ b/drivers/net/hplance.c @@ -135,7 +135,7 @@ static void __devexit hplance_remove_one(struct dio_dev *d) } /* Initialise a single lance board at the given DIO device */ -static void __init hplance_init(struct net_device *dev, struct dio_dev *d) +static void __devinit hplance_init(struct net_device *dev, struct dio_dev *d) { unsigned long va = (d->resource.start + DIO_VIRADDRBASE); struct hplance_private *lp;