From patchwork Sun Jun 26 11:24:57 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralf Baechle X-Patchwork-Id: 102204 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 57CE0B6F5C for ; Tue, 28 Jun 2011 01:38:45 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751542Ab1F0PiO (ORCPT ); Mon, 27 Jun 2011 11:38:14 -0400 Received: from h5.dl5rb.org.uk ([81.2.74.5]:40666 "EHLO duck.linux-mips.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751219Ab1F0PiH (ORCPT ); Mon, 27 Jun 2011 11:38:07 -0400 Received: from duck.linux-mips.net (duck.linux-mips.net [127.0.0.1]) by duck.linux-mips.net (8.14.4/8.14.3) with ESMTP id p5RFc1SR019387; Mon, 27 Jun 2011 16:38:01 +0100 Received: (from ralf@localhost) by duck.linux-mips.net (8.14.4/8.14.4/Submit) id p5RFc1d0019386; Mon, 27 Jun 2011 16:38:01 +0100 Message-Id: <5c64aa41d9d581af5c6863c4c7078fb9dfb381d5.1309182743.git.ralf@linux-mips.org> In-Reply-To: <17dd5038b15d7135791aadbe80464a13c80758d3.1309182742.git.ralf@linux-mips.org> References: <17dd5038b15d7135791aadbe80464a13c80758d3.1309182742.git.ralf@linux-mips.org> From: Ralf Baechle To: "David S. Miller" Cc: Jaroslav Kysela , netdev@vger.kernel.org, linux-mips@linux-mips.org Date: Sun, 26 Jun 2011 12:24:57 +0100 Subject: [PATCH 05/12] NET: hp100: Fix section mismatches Lines: 31 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org WARNING: drivers/net/hp100.o(.data+0x70): Section mismatch in reference from the variable hp100_eisa_driver to the function .init.text:hp100_eisa_probe() The variable hp100_eisa_driver references the function __init hp100_eisa_probe() 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 Signed-off-by: Ralf Baechle To: "David S. Miller" Cc: Jaroslav Kysela Cc: netdev@vger.kernel.org Cc: linux-mips@linux-mips.org --- drivers/net/hp100.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/hp100.c b/drivers/net/hp100.c index c3ecb11..9cd575f 100644 --- a/drivers/net/hp100.c +++ b/drivers/net/hp100.c @@ -2843,7 +2843,7 @@ static void cleanup_dev(struct net_device *d) } #ifdef CONFIG_EISA -static int __init hp100_eisa_probe (struct device *gendev) +static int __devinit hp100_eisa_probe(struct device *gendev) { struct net_device *dev = alloc_etherdev(sizeof(struct hp100_private)); struct eisa_device *edev = to_eisa_device(gendev);