Received: by 10.223.185.116 with SMTP id b49csp1131903wrg; Fri, 23 Feb 2018 12:29:55 -0800 (PST) X-Google-Smtp-Source: AH8x225MzRQbv05RDzNpQQlE9i8A+D+0oTBbEI8YhnUj1nvbQBkp6gojdfVhIBMuACXVf3XEs/lY X-Received: by 2002:a17:902:a588:: with SMTP id az8-v6mr2868414plb.10.1519417795706; Fri, 23 Feb 2018 12:29:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519417795; cv=none; d=google.com; s=arc-20160816; b=ObpSsB8BRT3LWZ7rrO9g8EFpXCuRBDOq52d7q/N8RvyU4AgvDJ3aOOjZDkvXoNTBQp tRi5gSfClg9cU72X4WT8e6k3pYgwp/lNnl11AAyheHw+VjdLFpfqA8xoyx/zr/06q8AA pntvoN6BIGFWmygJRsY3eM6PMqKBNVqsEieK0QSwJH14GjMHuNHKRvkFauAVjqW1OBiW RSSg9HTlYeTjN2MVvwrg1DXjjyoVuGyBh1FsJ9rGkDbakXCwJCVasB13nYNeB8hRv/Jz SKSDWzn7TZqT2t6sfnvc+TZSJcrjiyb5md5XNruzwm+WnvcVAVLQWG8RPz6Il3eqwES8 4bTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=NOKj9mlpA8HiUx/HKOJKq9cESQ6TAUAoRFZXoLsD7qM=; b=fqBNss8vcRxzo93Ol1nIkmQfX34cjsAIPSY7WbtTO6yjxLcTj1ZHs/5qK+yp1lmjkW EFD9r8+hr5qsjaqZazjcXD11+aK3OEQnhvJXMW30ExUAIXoDdWJqzfmBgOLBhRB0GwVE 05oZ667Xqg+GTHGTCGMdkgs3KqCF3hY4z6lu/D71grwxJtSqvk1UxriygWmKZwLyoiev yOZJVDQXL+BocEP7pWmgCnFGDJcQYqbhUn0urVtt0W+U0Ne3HOPQjFWdsY8hJT0GCKm7 mBtVnh0JVoerxMR2ffghed1+703yPCKME3ZE7cZKSQXuxYPZ9A4gfyQZnA27zS8RFCwP +7sw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q3si1932108pgp.701.2018.02.23.12.29.40; Fri, 23 Feb 2018 12:29:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932091AbeBWSgi (ORCPT + 99 others); Fri, 23 Feb 2018 13:36:38 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:37822 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754096AbeBWSge (ORCPT ); Fri, 23 Feb 2018 13:36:34 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D16611318; Fri, 23 Feb 2018 18:36:33 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Fabian Frederick , "David S. Miller" Subject: [PATCH 4.4 085/193] drivers/net: fix eisa_driver probe section mismatch Date: Fri, 23 Feb 2018 19:25:18 +0100 Message-Id: <20180223170339.359985411@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170325.997716448@linuxfoundation.org> References: <20180223170325.997716448@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Fabian Frederick commit cb4396edd84ed73081635fb933d19c1410fafaf4 upstream. Some eisa_driver structures used __init probe functions which generates a warning and could crash if function is called after being deleted. Signed-off-by: Fabian Frederick Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/3com/3c509.c | 2 +- drivers/net/ethernet/3com/3c59x.c | 2 +- drivers/net/ethernet/dec/tulip/de4x5.c | 2 +- drivers/net/ethernet/hp/hp100.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) --- a/drivers/net/ethernet/3com/3c509.c +++ b/drivers/net/ethernet/3com/3c509.c @@ -562,7 +562,7 @@ static void el3_common_remove (struct ne } #ifdef CONFIG_EISA -static int __init el3_eisa_probe (struct device *device) +static int el3_eisa_probe(struct device *device) { short i; int ioaddr, irq, if_port; --- a/drivers/net/ethernet/3com/3c59x.c +++ b/drivers/net/ethernet/3com/3c59x.c @@ -907,7 +907,7 @@ static struct eisa_device_id vortex_eisa }; MODULE_DEVICE_TABLE(eisa, vortex_eisa_ids); -static int __init vortex_eisa_probe(struct device *device) +static int vortex_eisa_probe(struct device *device) { void __iomem *ioaddr; struct eisa_device *edev; --- a/drivers/net/ethernet/dec/tulip/de4x5.c +++ b/drivers/net/ethernet/dec/tulip/de4x5.c @@ -1990,7 +1990,7 @@ SetMulticastFilter(struct net_device *de static u_char de4x5_irq[] = EISA_ALLOWED_IRQ_LIST; -static int __init de4x5_eisa_probe (struct device *gendev) +static int de4x5_eisa_probe(struct device *gendev) { struct eisa_device *edev; u_long iobase; --- a/drivers/net/ethernet/hp/hp100.c +++ b/drivers/net/ethernet/hp/hp100.c @@ -2843,7 +2843,7 @@ static void cleanup_dev(struct net_devic } #ifdef CONFIG_EISA -static int __init hp100_eisa_probe (struct device *gendev) +static int hp100_eisa_probe(struct device *gendev) { struct net_device *dev = alloc_etherdev(sizeof(struct hp100_private)); struct eisa_device *edev = to_eisa_device(gendev);