Received: by 10.213.65.68 with SMTP id h4csp1947991imn; Sun, 1 Apr 2018 20:09:26 -0700 (PDT) X-Google-Smtp-Source: AIpwx49OuLdJXglR9/c0fl+iP0J4juo8T16Pu9/Cj2ZWIYyZLPCe+cTdmgUz+F/OUtVvj38ErCho X-Received: by 2002:a17:902:6184:: with SMTP id u4-v6mr8427671plj.390.1522638566670; Sun, 01 Apr 2018 20:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522638566; cv=none; d=google.com; s=arc-20160816; b=ldomB+FcuhwU880sdxaAxjowI2CjZp1eGY8fAhmgNyNUSNjoiqqAfMCaiUCxIViZH2 H8mi0msDAkA+VvTAi5duSQfjw1pAMI9NzjTetXT6lixgQ2bTvSNvJKK3+ITFQZevkvaI ufKRd8joE4w+Pr4mUcEYKS98vf68bMvpFfmRI+rkupQ4i+RE8CBR/W8sdbi54tmF8YPO 1iUIL5gy8Gq/v2udgBrjHXRWnropWuhNKEiRSe6AsPZDt9gq2S1bxlxZIl99dxjtgxxD kWCASE3QzCO1V41YFHaVIsaya7zWdjtMf1YCUao/zupn/cUrc2W4ET4C5RtQCiIDCRWU 4TlA== 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 :arc-authentication-results; bh=qNTqID5ZIfm8meWHm2ruK2PyPAfp55VaAwavz3Mk+J0=; b=HoaCYZksPmdt1tCz7UFWiGeUoqAq9DO/Hya+xL8ctuJ7sax+maOzTcxCPaAK0G3gIV fNWrRA1/wSi+eZHWcqkpvQctteFjgsIzEkUW/cXyOrfF56WLPk64BJN1/q0OJrh/o2+8 58g5mOBvQ6wrA8hmTgzmGgGuTtrtyjQX6HNv6ox4r/GU1+7p0p83HQrmj61HPcSlzrsS 4AAwmJpLKf33ahl4snC284xxb6prIFCi4KTnWD88vaRtFvGo9TKuq4rab2JyRx7AzD3l 3XDvOY5p+J5e/xJkFpDWCp3e2Fcd/9HiHKlqirEzvY0g7s8lMDhGbwojPnKVpiCJktBA jJEA== 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 l137si9171337pga.465.2018.04.01.20.08.13; Sun, 01 Apr 2018 20:09:26 -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 S1754111AbeDBDE0 (ORCPT + 99 others); Sun, 1 Apr 2018 23:04:26 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:37246 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1754074AbeDBDEY (ORCPT ); Sun, 1 Apr 2018 23:04:24 -0400 X-UUID: e22dedfa3e574ca98adc252ea6956da2-20180402 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 2032204050; Mon, 02 Apr 2018 11:04:17 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Mon, 2 Apr 2018 11:04:15 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Mon, 2 Apr 2018 11:04:15 +0800 Message-ID: <1522638255.18424.44.camel@mtkswgap22> Subject: Re: [PATCH v2] staging: mt7621-eth: Fix sparse warning in ethtool.c From: Sean Wang To: NeilBrown CC: Chris Coffey , Greg Kroah-Hartman , Matthias Brugger , , , , Date: Mon, 2 Apr 2018 11:04:15 +0800 In-Reply-To: <87vada1owt.fsf@notabene.neil.brown.name> References: <20180329095637.GA16778@kroah.com> <20180329124745.24694-1-cmc@babblebit.net> <87vada1owt.fsf@notabene.neil.brown.name> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-12.5.0.5042-8.2.9001-23758.004 X-TM-AS-Result: No-21.392200-8.000000-10 X-TMASE-MatchedRID: L8tZF6zWW2r4OiVTWoD8RCa1MaKuob8Pt3aeg7g/usCe9toQ6h6LEwpB K2hUihAXadgG7kzTAhSwiqg6QcdK5wDBaeVuVh0C9Ib/6w+1lWQAHmJpemgWrl9I8oY/f0KuJDk GkQuDnwMZYxhOyN53UwBCe/zihxdXULNUje/+PyDISPeZE8elXsMdI0UcXEHzh8BhJvgqWBl4oU XbKg7So+GR/MGrL4SXKaAgIi2Kz7o1GNNcYTZ3yO9VsdrlGzy3dZPoD9V2prSbKItl61J/ycnjL TA/UDoASlnU38LCY8vkwjHXXC/4I5BlLa6MK1y4 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--21.392200-8.000000 X-TMASE-Version: SMEX-12.5.0.5042-8.2.9001-23758.004 X-TMASE-POSTMAN: 2-d; X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-04-02 at 09:34 +1000, NeilBrown wrote: > On Thu, Mar 29 2018, Chris Coffey wrote: > > > This fixes the following sparse warning: > > > > drivers/staging/mt7621-eth/ethtool.c:213:6: warning: symbol > > 'mtk_set_ethtool_ops' was not declared. Should it be static? > > > > Signed-off-by: Chris Coffey > > Reviewed-by: NeilBrown > > Thanks, > NeilBrown > Hi, Neil Forgive me I cannot find the cover letter in the original series in my mailbox to make a reply, so I rudely made here just letting you know something good to the growth of mt7621 support in upstream. do you have maintained an out-of-tree branch to boot the mt7621 machine with those staging patches? If so, it would become a bit easier for me that maybe I could give a hand for migrating these staging driver for mt7621 to mainline. I thought mmc, pci, ethernet, gsw and hsdma all could probably reuse the current mainline code. Sean > > > --- > > Changes in v2: > > - Per GregKH's feedback (thanks!), don't add unnecessary new .h file > > dependencies. This patch version reverts those changes and fixes the > > problem directly in ethtool.c (which is that it didn't include > > ethtool.h anywhere -- mtk_set_ethtool_ops is not static). > > > > drivers/staging/mt7621-eth/ethtool.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/staging/mt7621-eth/ethtool.c b/drivers/staging/mt7621-eth/ethtool.c > > index 38ba0c040a..5268c5ca09 100644 > > --- a/drivers/staging/mt7621-eth/ethtool.c > > +++ b/drivers/staging/mt7621-eth/ethtool.c > > @@ -13,6 +13,7 @@ > > */ > > > > #include "mtk_eth_soc.h" > > +#include "ethtool.h" > > > > static const char mtk_gdma_str[][ETH_GSTRING_LEN] = { > > #define _FE(x...) # x, > > -- > > 2.11.0 > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek