Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6326624ybi; Tue, 4 Jun 2019 22:54:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+/+pm4wUh5A1FjkP020Q6vkG28zbrAiOBdLJEEq+QCKg7Xc4jA/ip9vAUdZv3bNuC+rDu X-Received: by 2002:a62:ee04:: with SMTP id e4mr41819037pfi.232.1559714085449; Tue, 04 Jun 2019 22:54:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559714085; cv=none; d=google.com; s=arc-20160816; b=QCq+9bMkvMGcE6tE7qAzU9+VOUwD+Juu3eV7sK+DtFVKGMLmqfOAKBIodBnfxIkSgy DXG3sMHPQTZDvfVqhdlubMH/TB/DlcP0fr01md3oiaCL9bu4cJ1HDvPcArvaUA0cl007 OCdMZsA1hYakUgqTvKatHJ7wnHA85ExY2KMUEuvaEZ5IJhJqXlKM3MVUeFEtIueILvAE 2YNFVTFIsut8g+0O78v3BLP2YF3QbGfXL+sG6DWoPCbZ7O34OwrEkRbkHQs+ga9gvuyY cyfdvplmRfEq/s15AtIBcAG2hzagEQuXMCffkHQMk4j70++GhpC9IaFdte4bRdh/2oG+ itCg== 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 :content-language:mime-version:user-agent:date:message-id:subject :from:cc:to:dkim-signature; bh=mQPnxrhp5YNAxbcRHunQ2loi4lsOMm2nCJapuHt3yu8=; b=Xt8Yn8Fm/MZY6Bmnm/9p0InHcu8cPxHfsB77BcItFMFJD0AEDV/wAqaS0ufRCRELvp aXM++h5iSwPvcSgf0nXRKhLtNOcRDzoHt96uVWGyjwXu/vATbV7E15oJLzB7HQFHM1vp st40A6qpJRUGU0s70/OjQxwTBUH8ntm/lM/4wcnOcjmVbdnCQPeZ0Yoma0sFqSITa8iq Am0QFzOC4WdB6n++dmgLeZ0n+1vBxr66M4OcHd3kBKhOU8+MQm6xHFh39TvU+0eAxNhV AfawojEdIiczgzduo1wuy23FT6g+sg2wCfeHJeI56h5wdrHOoMMjzaLx7QCYMmsl5dIg VhJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=PIJl5hSe; 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 f3si25560764pgs.135.2019.06.04.22.54.27; Tue, 04 Jun 2019 22:54:45 -0700 (PDT) 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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=PIJl5hSe; 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 S1726554AbfFEFwP (ORCPT + 99 others); Wed, 5 Jun 2019 01:52:15 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:52902 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726050AbfFEFwP (ORCPT ); Wed, 5 Jun 2019 01:52:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Date:Message-ID:Subject:From:Cc:To:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=mQPnxrhp5YNAxbcRHunQ2loi4lsOMm2nCJapuHt3yu8=; b=PIJl5hSe98LLKx79uZ1dqZsNg b2rndQ5ZR8VcWAZeunlR8hh5a5sMcO8TUDiKi+ddHBvHfo49KDV+Wt5b7npFln+CQ6BC8G7/76nmP Iorz+ZIr/BBYin/WF+R7snd+9qpPsajI1isSocXkdQ6ed/FKCltCJsufpjfi8FPmir+YW+f15hwjN pPyk1fwo3QRljg46ofS8KUKwwHPJPh3TuKYqaWqIkzJrnfPu4XZ2R1VxBXz21NZ9MXdsMDDK8Ohlc TmrfGKrzenAu7LFttfAqfYLyTW/947yKE9E2vxqkajbskJ53kpTt/7UILS0lD2aCWUu6vMTLK2d23 wFmcyw+nw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=dragon.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYOqK-0005Zc-T9; Wed, 05 Jun 2019 05:52:12 +0000 To: "netdev@vger.kernel.org" , LKML , David Miller Cc: Sean Wang , John Crispin , Felix Fietkau , Nelson Chang , kbuild test robot From: Randy Dunlap Subject: [PATCH -next] net: ethernet: mediatek: fix mtk_eth_soc build errors & warnings Message-ID: <85d9fdd9-4b7f-6a51-b885-b3a43f199ec9@infradead.org> Date: Tue, 4 Jun 2019 22:52:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap Fix build errors in Mediatek mtk_eth_soc driver. It looks like these 3 source files were meant to be linked together since 2 of them are library-like functions, but they are currently being built as 3 loadable modules. Fixes these build errors: WARNING: modpost: missing MODULE_LICENSE() in drivers/net/ethernet/mediatek/mtk_eth_path.o WARNING: modpost: missing MODULE_LICENSE() in drivers/net/ethernet/mediatek/mtk_sgmii.o ERROR: "mtk_sgmii_init" [drivers/net/ethernet/mediatek/mtk_eth_soc.ko] undefined! ERROR: "mtk_setup_hw_path" [drivers/net/ethernet/mediatek/mtk_eth_soc.ko] undefined! ERROR: "mtk_sgmii_setup_mode_force" [drivers/net/ethernet/mediatek/mtk_eth_soc.ko] undefined! ERROR: "mtk_sgmii_setup_mode_an" [drivers/net/ethernet/mediatek/mtk_eth_soc.ko] undefined! ERROR: "mtk_w32" [drivers/net/ethernet/mediatek/mtk_eth_path.ko] undefined! ERROR: "mtk_r32" [drivers/net/ethernet/mediatek/mtk_eth_path.ko] undefined! This changes the loadable module name from mtk_eth_soc to mtk_eth. I didn't see a way to leave it as mtk_eth_soc. Reported-by: kbuild test robot Signed-off-by: Randy Dunlap Cc: Sean Wang Cc: John Crispin Cc: Felix Fietkau Cc: Nelson Chang --- drivers/net/ethernet/mediatek/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-next-20190604.orig/drivers/net/ethernet/mediatek/Makefile +++ linux-next-20190604/drivers/net/ethernet/mediatek/Makefile @@ -3,5 +3,5 @@ # Makefile for the Mediatek SoCs built-in ethernet macs # -obj-$(CONFIG_NET_MEDIATEK_SOC) += mtk_eth_soc.o mtk_sgmii.o \ - mtk_eth_path.o +obj-$(CONFIG_NET_MEDIATEK_SOC) += mtk_eth.o +mtk_eth-y := mtk_eth_soc.o mtk_sgmii.o mtk_eth_path.o