Received: by 10.213.65.68 with SMTP id h4csp1833538imn; Sun, 1 Apr 2018 16:37:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx49F/VEDHRsBFk7hlD6D4CmXqpg5r0XcLV3lS/W/JSr3UpYABH0qHdQMeT9i/QRhUfwghTpw X-Received: by 10.98.196.153 with SMTP id h25mr5714754pfk.111.1522625847384; Sun, 01 Apr 2018 16:37:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522625847; cv=none; d=google.com; s=arc-20160816; b=PQvahpsAJTQX568ur+T3jgC6XVITBSd3psD9ipnc9rm1yz1oFT1vxXHSk4Q5o+v8mf PgIGlRua0qidv/v/tQK/t7O3CQeNsM9lLjZ4WFL2EBSrYZfmtFw6Ar10sUatJqgevjLy 1Ixz4bGKz1bYfuONIAX9EVflb0+g4YXAtQPoqNi1rcP5niMxFZJa+Z7RTkRRtBXf/R4T rCze+2YK+REMYbs+eEvDNkhsN0m1twskA9KL0XkT/tdLGwdHvle/9ypC1xvxsmsxpTLG 8IXaqoJYU5dl43NLqdkjVj85b7kt+uZoaSd9TzxvMZcBUMScaC22Sd8R7u/0yX+5BbXE fJGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:references :in-reply-to:subject:cc:date:to:from:arc-authentication-results; bh=Y8EOdYXgjW6jGtt6HQ5arBHJkJATyQ0kNu4ISyWBRhw=; b=I4j5HxEOlGGjWDX/4RdcfO2GkrG+BN+T2GI3M0BsPg9E6JGZTQGU/LzqDQ6MyT4UNo U+xsNQHvqlqEGaEwvjthedViQyn/isqbdcYBzut67LVLsO2W6/MScMqNnmsiEomFpsWz 7gZqtlZTP63sNf6CFGhG8GknFfXuKgqDEuB/n7qyHY2hRkrN+kIfLGa3D5xkVET/gGiH UXFM8+mkhnDeSchIs22YOf6qp+JxZfG2QJdVkGopDkfBNTgCrKRGr7f9Iqcd+27/1zfi d0rflOf7TzjvqUUwb5TlC01QyzLrQDSiq1Dw3okjWKtXWFE8wyWs9bzuVA1+Y8hNcj8d 3ieA== 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 e4-v6si721436pls.314.2018.04.01.16.36.58; Sun, 01 Apr 2018 16:37:27 -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 S1753979AbeDAXfM (ORCPT + 99 others); Sun, 1 Apr 2018 19:35:12 -0400 Received: from mx2.suse.de ([195.135.220.15]:53215 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752325AbeDAXfL (ORCPT ); Sun, 1 Apr 2018 19:35:11 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id AF63FABEA; Sun, 1 Apr 2018 23:35:10 +0000 (UTC) From: NeilBrown To: Chris Coffey , Greg Kroah-Hartman , Matthias Brugger Date: Mon, 02 Apr 2018 09:34:58 +1000 Cc: devel@driverdev.osuosl.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Chris Coffey Subject: Re: [PATCH v2] staging: mt7621-eth: Fix sparse warning in ethtool.c In-Reply-To: <20180329124745.24694-1-cmc@babblebit.net> References: <20180329095637.GA16778@kroah.com> <20180329124745.24694-1-cmc@babblebit.net> Message-ID: <87vada1owt.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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 > --- > 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/mt762= 1-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 @@ > */ >=20=20 > #include "mtk_eth_soc.h" > +#include "ethtool.h" >=20=20 > static const char mtk_gdma_str[][ETH_GSTRING_LEN] =3D { > #define _FE(x...) # x, > --=20 > 2.11.0 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAlrBbKMACgkQOeye3VZi gbmWphAAw5pBrEWrvsgAMo5LGy+Vpt4tkXJ0R8OzjHtg26YX6XQmPDTYdlooVTG0 CG/Q4zfsXFi+TK0mmRbIh5uRdAwEvyX1VlK7V/FKszHZ5mU8qS5P2UYRI64PbrME xCrpA+QVtuQHtzMZJVLDj0c0VpgFQCh73SN9OYwW2f5RWKJYr1rhLFfXjc2BMkBL 2cvzo7vCLbzpq7OukMJ9zPYwonFXk3LwxJX28seQkxAHd2be59r96uV7qevACTTK CISYJc5o0/mXjwy7PDZqF75Ma9cLqNNtjVedTjrfoyxkMejEW8vhUB8WuSxkDHc/ pPdqNUdFItQDRNjb6lAYAqxCYQQHId3UbTIdrkGOxzQWdB6pGTINwkDj/gS03NFs s35A9QwzWqWQfFV2u1qvwMzbnVdVwqjNgwGTrQvVwdh3rAGgXW0MmNr8My+TR1vc HSQI4eNmtcRONaBm0yNyOvs73Gm3yJZmzvVw62frnvVV4e8jv8umIH76dBufXGJd K9RNnbw7iEBtq3v5OVhTymReSVQ4tZOPGwxs8jOtZjmlRTzsHmHGvHTtoqUZ4+nH f8mwsTa5j7RYo6Epa/bpDp6bvhCL4UamZ8BC4EVIzdn921t1vNd2W8rMJ29kgwOX p75oSRRW+rHNDs9vih3vp0yHIkQabnmRFDL/adEcC+zzM0XBCzM= =MGT+ -----END PGP SIGNATURE----- --=-=-=--