Received: by 10.213.65.68 with SMTP id h4csp1340593imn; Thu, 29 Mar 2018 02:57:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx49OnRvi0M3r/f2Ii9OXs6tVW1P0qh1EKkJwY6YCSmZOaBNomYXaLu70GOGqvGOctvjni7rD X-Received: by 2002:a17:902:ab81:: with SMTP id f1-v6mr7483819plr.5.1522317471637; Thu, 29 Mar 2018 02:57:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522317471; cv=none; d=google.com; s=arc-20160816; b=VtAGyQ3yIsVJFw51iQcEGdiHFlMiXaIuovakc11+wYQEnbqS+1Rjty68wYV3HpAFCV 6bSdtsdHTkRCRjs/ReCmHqxArXGmlm4hj5Gi4jZDt8/oaD4ARQlhKB2HG2qvoAcW4ePi nsjcgxAOkcFN6223AELTnIqTp1fBLV9R0jgsqSiibJXr+Ff2mcUGSfceMkk7kBN+OFOr YOT7PtZQWVYL5GDvwd6zjVPhLHPz4dryCXl/MvXGN8BmR0puCCLgKmoO1CcPf1/oBJ6G zmDRoEgIbHiq0WQxQBELg1I0RC07YGQi57w2VO3uGSYi6vhwoA8/Kwsp3j/Yj84+xOn3 40FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=xCRWUWaKf57NexrGUbXL+Z8HV7oItdd/urjSQFzimlo=; b=nkiK9UOFDGKDx4XjKYoMGGINyPnQieBe+HGAZ0wPS2CQnPPI/cD9w5pytopUvf+Pe3 AtRFFh6+i1YU2BcxF7BfSLskb9/vXu4MLl2qyM6zIENaJ96vBuZpDJ09MpeP7fR3j0gd xVnCRc5DhTFgpoqsNTByqNYb9CXIeVxt+gX8vACsl6sqayxZyuUa751MI741iPAR8FPQ GnRq/TfNxFBsP7eY1ux6g8Hsk8My9JRSW6LMSxfgytc36jm8dhO9r6L4GgJrlVLVJtJ7 EGdYQTaB6rN20FzqudwWUlmX3cFCDlw3RTmDEmYMwr7sjCVMRgbbD7M2oc1GZVy3Filr DsSQ== 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 u6-v6si5454184plm.239.2018.03.29.02.57.37; Thu, 29 Mar 2018 02:57:51 -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 S1752259AbeC2J4m (ORCPT + 99 others); Thu, 29 Mar 2018 05:56:42 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:49348 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751161AbeC2J4l (ORCPT ); Thu, 29 Mar 2018 05:56:41 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2237E8E3; Thu, 29 Mar 2018 09:56:40 +0000 (UTC) Date: Thu, 29 Mar 2018 11:56:37 +0200 From: Greg Kroah-Hartman To: Chris Coffey Cc: NeilBrown , Matthias Brugger , devel@driverdev.osuosl.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: mt7621-eth: Fix sparse warning in ethtool.c Message-ID: <20180329095637.GA16778@kroah.com> References: <20180328211848.11085-1-cmc@babblebit.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180328211848.11085-1-cmc@babblebit.net> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 28, 2018 at 10:18:48PM +0100, Chris Coffey wrote: > Include the local ethtool.h header file in mtk_eth_soc.h so > implementation files have centralized access to it. > > 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 > --- > drivers/staging/mt7621-eth/mtk_eth_soc.c | 1 - > drivers/staging/mt7621-eth/mtk_eth_soc.h | 1 + > 2 files changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/mt7621-eth/mtk_eth_soc.c b/drivers/staging/mt7621-eth/mtk_eth_soc.c > index cbc7339843..0574e71573 100644 > --- a/drivers/staging/mt7621-eth/mtk_eth_soc.c > +++ b/drivers/staging/mt7621-eth/mtk_eth_soc.c > @@ -35,7 +35,6 @@ > > #include "mtk_eth_soc.h" > #include "mdio.h" > -#include "ethtool.h" How about just moving ethtool.h above the mtk_eth_soc.h include? Putting .h file dependancies in other .h files is generally not a good idea if at all possible. Keeping them "clean" is better, and this driver has a bunch of work to go there, so let's not make it worse :) thanks, greg k-h