Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp913393ybl; Wed, 8 Jan 2020 07:58:00 -0800 (PST) X-Google-Smtp-Source: APXvYqxu9+ipC93aQ7O2sUKCMT31Gp+IjFcvu2K+kZi2ub9HZ0SvDuiddfd6dL+r8Jj9bFWaAtqu X-Received: by 2002:a9d:66ca:: with SMTP id t10mr4596111otm.352.1578499080378; Wed, 08 Jan 2020 07:58:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578499080; cv=none; d=google.com; s=arc-20160816; b=fl2MgXyCaey7yEj91lRjwyKFqlJvanp09udV2E6TXcI20K8Ap9TgiU6PTjxOAni0g3 VU0fDy4YYeUucdlj1Zb5nGYISnY2VZLee4z13Kvw42e1Yjgc5Os7RGO28OOMxwJJjKK/ S4k426hZtbqIRHuKzzkGF5Y/hXl5Hdq4Zw3HeVdakgMjHqVm5RJF18iOtQitgkaFK1Mc KCdF22JXqGLpSx8yQZUDrW9u6m8GCtiSIzDmCvfCAjennt81xYOcWc6j8fhjBkzFCtx1 FYe9sKDgZ+1WvzAbtNbGLjkpcgiFSLRUm2Kj9oqojR9B+yOAdWs1yZYR7jvH4Mp9bmqi 8GkA== 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:mime-version :message-id:date:subject:cc:to:from; bh=PdEFu3rJl4HPJ2Rvmmj5RNQbgE0THNYmmXXxCi5QgJc=; b=RmOnKoyGNi5/bHGd0W2IpmzN5xg80YVfFoJG/ENWZI9LCzD3Jc382YLD4vEh2QHKcW GtfcdLX5pp9DY5sWXLBXMr2WLJJyY9FTk1Qntp84YG/1WKanHH+AreV1uRzneTBUVlTF 5g31l+lPRRDWXfulD+hhPHbl/6ty6RNA6dQwexqJpb+5tH9goRs0ZQD5Nj7i2bYuSE24 RKJ9B6r/5NcJuRbgmao8eoQS53QITM5PEgu+mHhnepZLBwOe6bDpaujrqmOCB4ifwnqY tT07KPwkDsqGPPpzAymC9i6qdNVqMdSNlG5d2Wmrrku1aguVReiRCDy0yvvT0ierZKeG iopw== 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 q3si1993115otc.243.2020.01.08.07.57.48; Wed, 08 Jan 2020 07:58:00 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728329AbgAHNoW (ORCPT + 99 others); Wed, 8 Jan 2020 08:44:22 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:47158 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726556AbgAHNoW (ORCPT ); Wed, 8 Jan 2020 08:44:22 -0500 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id DAEC7D65DF3EF50D2D83; Wed, 8 Jan 2020 21:44:15 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Wed, 8 Jan 2020 21:44:09 +0800 From: Chen Zhou To: , CC: , , , Subject: [PATCH next] igc: make non-global functions static Date: Wed, 8 Jan 2020 21:39:59 +0800 Message-ID: <20200108133959.93035-1-chenzhou10@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; -- 2.7.4