From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65CE1C43387 for ; Wed, 26 Dec 2018 22:56:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 29A47214D8 for ; Wed, 26 Dec 2018 22:56:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545865011; bh=vvXH4R6dYzTpGyp1+Vp5R0R8S4GtWO4epVrosFLkRP8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=G9fgYdN3ka90Su/+pcHJJNALVLPeLAzZuBM1UWPgcIrFEpX4bD4DmgIOFVHpAb90T xWzMNFURQ56+6z1vam/R6QXmdo3hEP2fmcBut8nrltqtQe3bUkLuy6NIR2pLtLBMco wZE+/J5iyWikKXFNkjnJ61h55RikFHdyKyp1BRtQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730358AbeLZW4u (ORCPT ); Wed, 26 Dec 2018 17:56:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:55668 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730114AbeLZWyU (ORCPT ); Wed, 26 Dec 2018 17:54:20 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C09A1214D8; Wed, 26 Dec 2018 22:54:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545864859; bh=vvXH4R6dYzTpGyp1+Vp5R0R8S4GtWO4epVrosFLkRP8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UuNyfnbycTgMnRzd7wZBD7OSMXegveY/QNlgywLI4xHvD4Rnk/n9opS89BiFDQXgW /RNRqkkK+plVPaiZdWrzJKZs0hMhDkzZ9GulPYZuTq/6hjyd6bMHrq9DNB6YIF3PR2 xIrX53i7+GfrhH2bE78qaer/TXJ5nKI1yXdq3jg4= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Arnd Bergmann , "David S . Miller" , Sasha Levin , netdev@vger.kernel.org Subject: [PATCH AUTOSEL 4.9 19/35] w90p910_ether: remove incorrect __init annotation Date: Wed, 26 Dec 2018 17:41:26 -0500 Message-Id: <20181226224142.150866-19-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181226224142.150866-1-sashal@kernel.org> References: <20181226224142.150866-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit 51367e423c6501a26e67d91a655d2bc892303462 ] 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 Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/nuvoton/w90p910_ether.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/nuvoton/w90p910_ether.c b/drivers/net/ethernet/nuvoton/w90p910_ether.c index 712d8bcb7d8c..a2960169a784 100644 --- a/drivers/net/ethernet/nuvoton/w90p910_ether.c +++ b/drivers/net/ethernet/nuvoton/w90p910_ether.c @@ -918,7 +918,7 @@ static const struct net_device_ops w90p910_ether_netdev_ops = { .ndo_change_mtu = eth_change_mtu, }; -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; -- 2.19.1