Received: by 10.213.65.68 with SMTP id h4csp1493027imn; Thu, 29 Mar 2018 05:50:49 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/imcWpWZyK7KVQCpEHsY61cj/H0GdUoSp+muoiDJFNGMh5UGz3nU2JVRe+vWQuJrdaZk2q X-Received: by 2002:a17:902:5a4e:: with SMTP id f14-v6mr8139318plm.116.1522327849712; Thu, 29 Mar 2018 05:50:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522327849; cv=none; d=google.com; s=arc-20160816; b=o7Aw5mzVdQLvVuOe3osuVhn6byfLL4ym0ryivuEKnytIrWYJygF5MlvduOUM0a4thK tQB6JCQR/jF0NF/ZwlP0tNN/J8nGhKOvpip4Lb4YIXSKhfL9vDHLBe0MekiU3qi14yDm if6A6UI+gSEd+DxCJR34E8au+UvBRGON7tvHBPhk+diwLSFfahFgMRBHMK5cl07NkUWa RoNqvuTxUts3A2uOeA2uTQeJtr8yZ7A+TmeJBrDcfJhP538ieDfZb8iTKUx6b/N2nQ3v CrYywbtgHpsCUTB2bjyjQGpgjqMiWYibHabJCIeW2jPrgHh9eGbSLiVnMGLc6H+C9YZM 1nVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=jdQwwZQzanoC0dC079dR1oW0RxLgrHNxIO411KxUnw4=; b=gcQDIJLtIsSMOM21EZ6jRdsQaNW5e5n73+o2L9Ear3eA1l/b141QfqF7r3YjN1fCIR ThtRb2l7HZliBhCuiN88yg3hEF8rl0ONpixoeSWeyMcNt9n4QZLV5V/S+uRwet3RdFBl joCKxn4e55mZXxNlImrvNbu1hrbrBFzb9QJG9gKAgrCDSTRvpFJPp5jpCX+i30n51dmr NkUMm9GpfzwfdmDhgGNSirOoknkmHoHIINtj40k9GNGPEWlGjEqhwfvYcZ3XmoiBilVi upmFixloocMLYTD6ptsoP22yBUwvj8PlIQfiYq/L5jreCpnS4tkEmpWLSgl5++p86ogG rW9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@babblebit.net header.s=mail header.b=QpKoU/Vn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=babblebit.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r8-v6si5857831pli.12.2018.03.29.05.50.35; Thu, 29 Mar 2018 05:50:49 -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=pass header.i=@babblebit.net header.s=mail header.b=QpKoU/Vn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=babblebit.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752652AbeC2Msr (ORCPT + 99 others); Thu, 29 Mar 2018 08:48:47 -0400 Received: from mail.babblebit.net ([37.139.8.208]:47799 "EHLO mail.babblebit.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752622AbeC2Msp (ORCPT ); Thu, 29 Mar 2018 08:48:45 -0400 Received: from localhost.localdomain (79-75-32-4.dynamic.dsl.as9105.com [79.75.32.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.babblebit.net (Postfix) with ESMTPSA id 2505412021F; Thu, 29 Mar 2018 12:48:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=babblebit.net; s=mail; t=1522327724; bh=xfcH3HRbgqdtkNRxJBodT8VfuPzhnFB9Svorz1rGgRE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QpKoU/VnmbUfb8+5l2bP9rVdqLGNAXDNiweTZ2H6u3BgkmCwqy+ZKOmvoAkXy8CIh Dkf87s0tU/64rq+nr58AZoFVpfBmqN8FkVcv1dku9AyolS5X+mx29lvp0DZhTFyHvR vT+SPrC5En6grArq97uTbgCLMQNirS97rP9zTIoM= From: Chris Coffey To: Greg Kroah-Hartman , NeilBrown , Matthias Brugger Cc: devel@driverdev.osuosl.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Chris Coffey Subject: [PATCH v2] staging: mt7621-eth: Fix sparse warning in ethtool.c Date: Thu, 29 Mar 2018 13:47:45 +0100 Message-Id: <20180329124745.24694-1-cmc@babblebit.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180329095637.GA16778@kroah.com> References: <20180329095637.GA16778@kroah.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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