Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp408143ybf; Wed, 26 Feb 2020 15:33:30 -0800 (PST) X-Google-Smtp-Source: APXvYqwbrK/RRR1teNkumUa57U3iTYRP7JdyV2SoSJZtls2gTxMmfogeMMqqPoNced9rHDYBw5jB X-Received: by 2002:a05:6830:1d7b:: with SMTP id l27mr961204oti.251.1582760010554; Wed, 26 Feb 2020 15:33:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582760010; cv=none; d=google.com; s=arc-20160816; b=VfMM8V4jZm7Pl2tyYMc9sq+uy+MVR18bWmtu4K4jNpoKNpPU9rY/UotsOvRPF5DTMv fVNFIWK5ahLjx+gBiW+K7iafavCEGorfE2+XF0VpRQYURrt+DUk7GW+bGdNO8pdz8a3m stQ3ny3WS5wBPk2z7iE6be3CU0u5quppv/YbA9RdZSQOh9XYAGWlSlMnVgPOxcMuQX8P jxZzO2gU38jySDfqxis73CRRwghCyXF/Tthw/N1Lal86mkanV6tD6ovPkRxmluVR771E 2xxORG4sBHl9hv8+lAjjQrtVQ02FKGzJUHPqSdfSJ72lZH44Xn6gEB3osoakDpiCgjx/ v38Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=17AbJO59jTMoRiMUAs8iNEX1sNjgY2rrgLZmNN36aZg=; b=frzQVb/oW4NWqtmkCNWtPWntY3TQvXaYUdAx3ng+75leDmfFWbLTKam7AF+JrN/PXo GLWQhFGa0rF6gGR/IsbHQhJFJL4uScRpCUdMMOfvqJ3Hc2CSMeAkEYR0Dk0kswxVApzt Cv3whEqT682ZMDCzwd+Uv52o0Mkm6iy34O8VRVDES22i/VsgGEy8rdcNfbRBIy/DC286 2kNQLpsAWTm2Vz3OPQNS1RYWWNDwxOHNIbvwYEC8MDOPI5LMOHiXQHyjnPrxrvT1LuRE FqWO4d7k+zs3S5Pc/xJrIWwxoPOXkXfpoi9q0z14Zj0EDA7DcHSHmKiVsz1FBvloUF6H cakg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l19si347827oii.54.2020.02.26.15.33.15; Wed, 26 Feb 2020 15:33:30 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727980AbgBZXcj (ORCPT + 99 others); Wed, 26 Feb 2020 18:32:39 -0500 Received: from mga18.intel.com ([134.134.136.126]:21925 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726413AbgBZXci (ORCPT ); Wed, 26 Feb 2020 18:32:38 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Feb 2020 15:32:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,489,1574150400"; d="scan'208";a="350511839" Received: from sneftin-mobl1.ger.corp.intel.com (HELO [10.24.14.90]) ([10.24.14.90]) by fmsmga001.fm.intel.com with ESMTP; 26 Feb 2020 15:32:37 -0800 Subject: Re: [Intel-wired-lan] [PATCH next] igc: make non-global functions static To: Chen Zhou , jeffrey.t.kirsher@intel.com, davem@davemloft.net Cc: netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org References: <20200108133959.93035-1-chenzhou10@huawei.com> From: "Neftin, Sasha" Message-ID: <1453037a-4370-8c08-f8c9-dfaa629e96b0@intel.com> Date: Wed, 26 Feb 2020 15:32:37 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <20200108133959.93035-1-chenzhou10@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/8/2020 05:39, Chen Zhou wrote: > Fix sparse warning: > drivers/net/ethernet/intel/igc/igc_ptp.c:512:6: > warning: symbol 'igc_ptp_tx_work' was not declared. Should it be static? > drivers/net/ethernet/intel/igc/igc_ptp.c:644:6: > warning: symbol 'igc_ptp_suspend' was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: Chen Zhou > --- > drivers/net/ethernet/intel/igc/igc_ptp.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/ethernet/intel/igc/igc_ptp.c b/drivers/net/ethernet/intel/igc/igc_ptp.c > index 6935065..389a969 100644 > --- a/drivers/net/ethernet/intel/igc/igc_ptp.c > +++ b/drivers/net/ethernet/intel/igc/igc_ptp.c > @@ -509,7 +509,7 @@ static void igc_ptp_tx_hwtstamp(struct igc_adapter *adapter) > * This work function polls the TSYNCTXCTL valid bit to determine when a > * timestamp has been taken for the current stored skb. > */ > -void igc_ptp_tx_work(struct work_struct *work) > +static void igc_ptp_tx_work(struct work_struct *work) > { > struct igc_adapter *adapter = container_of(work, struct igc_adapter, > ptp_tx_work); > @@ -641,7 +641,7 @@ void igc_ptp_init(struct igc_adapter *adapter) > * This function stops the overflow check work and PTP Tx timestamp work, and > * will prepare the device for OS suspend. > */ > -void igc_ptp_suspend(struct igc_adapter *adapter) > +static void igc_ptp_suspend(struct igc_adapter *adapter) > { > if (!(adapter->ptp_flags & IGC_PTP_ENABLED)) > return; > This patch should be partially reverted for "igc_ptp_suspend". "igc_ptp_suspend" declared in igc.h file and used in "__igc_shutdown" method.