From patchwork Mon Dec 10 20:45:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 153343 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3993192ljp; Mon, 10 Dec 2018 12:45:40 -0800 (PST) X-Google-Smtp-Source: AFSGD/UgODykPU4MZHDPwUWB3n+B2Q800509WWSUtPvW8q+RQn4wEVJ1RMXagmzzQj5obww0lUmR X-Received: by 2002:aa7:8286:: with SMTP id s6mr13453994pfm.63.1544474739932; Mon, 10 Dec 2018 12:45:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544474739; cv=none; d=google.com; s=arc-20160816; b=hDHLz39asOQddHwq1GBvDSxyNA+3GTGrvRijxwvF1mvUeY1LjzNHnlkU2HCq3p1dZV yif9+X5ApxKQxyZTe1RBk89HtzpiPjlb5AcCjHpLbY8RAsYXBFlMJEIIJ10uuMhtvIoU O4nRMH2tJpwSubs/d00YMZKihxVqcvT+wnBbdKgzyS8LLB90UmlH0fkyoF3SpJqXtjV3 hdmKM+baiNIMUKW94GRZNco5AP9mQxXKcIzY5T3Pie12E+d02sLJPbZADfz75Z+4sQKD gL8e3lS+btAd8kSdOv1i4DeQZqf694+tPYKfzqrBV2yjSxvfH0DbeJ4zmvlTfRsqaWjN e6AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=R2weNkto/V6lBsd6/e2uRkofSeSdrJ59E/0j+kU9Wag=; b=ECJbcDCGWnXf5VWGlpZzbIhtdiUSIB4PV4UiM+WINtFA6LEpAT0wh1/VtD80+iF37c ZwmVFVXkGYk0t4cq5SWG4zxRvMjy4bAB3hr088Y1UCs58rjAB3NNlGcyiLiPHvIu0C9X AwUCRhzjYId0gTcN7Ylbu/u7WEQL8G6SSPZvXK1gEtbYFUtPcrkTYa9l6G+KIFF5GzDG vRWBdrRQ/AKwvFeXm0eTDSIgYm7KIDQ4+o14q6nvi05jfg6RAqg6H12KwIcAhivMV98k P9m7051yHLvQd2t8W8IFogAJcFtcDZmTKFtr2WImd3lPbziGPjyYa1upxxaExZEUui1+ Y84Q== 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 c8si11503939pfe.243.2018.12.10.12.45.39; Mon, 10 Dec 2018 12:45:39 -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 S1729070AbeLJUph (ORCPT + 31 others); Mon, 10 Dec 2018 15:45:37 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:53871 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726912AbeLJUph (ORCPT ); Mon, 10 Dec 2018 15:45:37 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1MVvGt-1gw0AT32MX-00RuFi; Mon, 10 Dec 2018 21:45:16 +0100 From: Arnd Bergmann To: Wan ZongShun , "David S. Miller" Cc: Arnd Bergmann , linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] w90p910_ether: remove incorrect __init annotation Date: Mon, 10 Dec 2018 21:45:07 +0100 Message-Id: <20181210204514.2362328-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:o1rMw2aYXfEUlBRV5qxG3z9Xz3NqFDkHTfll+jYdgTzCqly/PpC 4kkeLiXInDEm59fTvKLxmY7BsZJ7cCZgts+pvPoJ71M5aif0gEgAoacdjohegJ5Tfm3xVfJ 2qO5G+ZkLU9ScmK+JYQxlJyJHWZLUZlVuhxpXPDYb4HZPEKtBKgXtjgYL3WELTAaqH/H0NS Oq2tuxv192OC2rOPHfNYg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:sdrTkwtKAzY=:tKINHUTVVsm0WFaUykQcBK HbVbbTJV9JyhmvHLuvH5TKLvcksbehb++5bGJvD0tKDjohphSiDS9t2b3UrnMQ2bU38Neht6H UVyVFd71pOvsqvFrE4u70KTeBSQi2BTbg3FvJHmUXBEjHXLP1KKtQhymJlUS3ic+zsKA3g77x ivFs5d5CLCVvRseIkkNk9BhEXEdSLjaCb6fsEPC98b2PHWH7IDT9iqqy8qLv4qmDmM+Co/2d4 vlcuuFzrPArKd+iEMlhZHo/lOlKv3YZrN7ysjDFqA4v/SUa5bi9+kE4DmKZPhZAgEiAr7DIsZ ayln/I4my15yQzLWN/MJg5FDNSgBsGkIXymUcIIJWp8qDszDt08a00tlzXuUOOmHRUoXdlbs3 YeWMBCBapIc+d54jfWFPDhl2Te4KFbJCgauj2qJ1VSBr1Xc9G1E1hP8rFE4jakpD/pmDKXTW7 tppn2rfg7WtJYLSCZ6KfTC5MnSmSdra+UkZLKd0vADBBNZy/QVZL9xlqF+ReSEqGErhkddYhd JMXsSbdjVTq+8tMgK3kc80wMYSbtdoFelHBulx9BcUmeEuYUID6gO25VXav7RMx/zNKgFCqvo K+iJOFH9Z4TBHAyo2wk+i8Qre9CTA385XnPXM3h7oZb8X4Sa5R4sMxHE++INpnzf0ePtSBy8T q4WRe7azIGmfNRYSwQ7ac1pOa9+/GEGddgoxYQ6UC73nmp72q/ZbskkXPoyJGBKqQLjMD8Fcs Nzs5zYGVovwtpGu4gHoPc7WvXH+HngFLqDP3eQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The get_mac_address() function is normally inline, but when it is not, we get a warning that this configuration is broken: WARNING: vmlinux.o(.text+0x4aff00): Section mismatch in reference from the function w90p910_ether_setup() to the function .init.text:get_mac_address() The function w90p910_ether_setup() references the function __init get_mac_address(). This is often because w90p910_ether_setup lacks a __init Remove the __init to make it always do the right thing. Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/nuvoton/w90p910_ether.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 diff --git a/drivers/net/ethernet/nuvoton/w90p910_ether.c b/drivers/net/ethernet/nuvoton/w90p910_ether.c index 052b3d2c07a1..c662c6f5bee3 100644 --- a/drivers/net/ethernet/nuvoton/w90p910_ether.c +++ b/drivers/net/ethernet/nuvoton/w90p910_ether.c @@ -912,7 +912,7 @@ static const struct net_device_ops w90p910_ether_netdev_ops = { .ndo_validate_addr = eth_validate_addr, }; -static void __init get_mac_address(struct net_device *dev) +static void get_mac_address(struct net_device *dev) { struct w90p910_ether *ether = netdev_priv(dev); struct platform_device *pdev;