Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6529521ybi; Wed, 5 Jun 2019 02:21:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqz650YzikSFNpuKmE46XWzleYD21h4XeNPixNM3stQSMRNeQzlZsFVJlFIFxkYoik0miO7Z X-Received: by 2002:a17:902:6b03:: with SMTP id o3mr42143861plk.85.1559726476719; Wed, 05 Jun 2019 02:21:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559726476; cv=none; d=google.com; s=arc-20160816; b=JT0afzlLSPhSv6ASv5r0FMVLaXSThUATtYdfwcrwIyxKf+q776NE7WlSsZTWm664xU 2WpvxK1RdZY0yMiQVX3TXA5n+fC2/WG+wbo3DPLNGfVRQqzkCYWhm6DlypWKYmXMRY9I w8d2uYcCEl+yS5Z1RdFMU6sTO6dTMxZS78Pl39mEhMtwL69BjscBmqUn2Buhz6Z6lwza CNlAB2p0RS96Sr54nMVXeWmMqRkAZ7WVqD8C4B6441kLJIxo5FosAUwOoelOGiQwLC9D Um5b/B6ecnYWSBOD3BXu6NftH0zY80TAIuAj9GNx8S5tzolOa6HqEX5n5p0uhoSoxVk6 ennQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id; bh=4AJoUUb1yk9bZx7+4jsk7cduQv+jVPfEJ2M9lEIZCtM=; b=Q2ffKseXpI7wyyLOW9Uws/m4CtVXl7HgIPhYDu7xypU/NFMYLMKfZ8uAS+GO2NuM+F LT+b6mWC0v4Cpt6TyhifcmIWl+LJvdrUNec6FDiBFakit0jKM17bMMKrw9xbT2biRbmY NOxJxdwFl0AAYpqM7uDb56a8NfyNicXmvRuG6uF7dhxRxeIqZlOp71hhGCBtxHcEMU5g 84XKcBEwDIUzr/rgKJeDxDyoSDShGdMoaE3a/aVtxTZUzkEbHWuN6/OJViUWH8pjIlI9 mTusEIIP7HkS8S++tR2dxY48qpO56Szo7N/AQ5vzWMPEcyi0a9rj+Sc0L9OJNukdF6WN i5BQ== 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 w13si2246390pfd.250.2019.06.05.02.21.00; Wed, 05 Jun 2019 02:21:16 -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; 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 S1727029AbfFEJTq (ORCPT + 99 others); Wed, 5 Jun 2019 05:19:46 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:36082 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726862AbfFEJTq (ORCPT ); Wed, 5 Jun 2019 05:19:46 -0400 X-UUID: cc3ab885d0cd4c82959726a3cc53dfe9-20190605 X-UUID: cc3ab885d0cd4c82959726a3cc53dfe9-20190605 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 476848323; Wed, 05 Jun 2019 17:19:30 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 5 Jun 2019 17:19:29 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 5 Jun 2019 17:19:29 +0800 Message-ID: <1559726369.9003.4.camel@mtkswgap22> Subject: Re: [PATCH -next] net: ethernet: mediatek: fix mtk_eth_soc build errors & warnings From: Sean Wang To: Randy Dunlap CC: "netdev@vger.kernel.org" , LKML , David Miller , "John Crispin" , Felix Fietkau , Nelson Chang , kbuild test robot Date: Wed, 5 Jun 2019 17:19:29 +0800 In-Reply-To: <85d9fdd9-4b7f-6a51-b885-b3a43f199ec9@infradead.org> References: <85d9fdd9-4b7f-6a51-b885-b3a43f199ec9@infradead.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Randy, Thanks for your help. But it seems I've already made the same fixup for the problem in http://lists.infradead.org/pipermail/linux-mediatek/2019-June/020301.html as soon as the kbuild test robot reported this. Sean On Tue, 2019-06-04 at 22:52 -0700, Randy Dunlap wrote: > 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 > >