Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp140671pja; Fri, 22 Nov 2019 04:36:00 -0800 (PST) X-Google-Smtp-Source: APXvYqz8PCPmF5A9ZdrgjWS3JgK+Y6Wr2+iqtmTX2XSfUSw8qew1AySgHsGcXXBLsBzJ7UK0VByW X-Received: by 2002:aa7:cd52:: with SMTP id v18mr782422edw.280.1574426160788; Fri, 22 Nov 2019 04:36:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574426160; cv=none; d=google.com; s=arc-20160816; b=uIPrmpGI3vrFzxRRLAw5C7dGaLop+oJoo2VNdXhA94YR7MYF5cIBktcj6sQuyug5L7 JWt1JDpzDRBCEf5nz9CUT16m9elthtyFNqZEv1iKVGIe7E4oI3tjMIv+ql1Ga81SETPx Of/tC0RVJ0i7I3P3vPgtPfsLr9B6GsnTRoucAaS+d3S7NgzMQyPAhpVSwTI/DH3ElUiM k3YlYKrKEADZDmndjjvvM9hjkpZsASK7aS66TdkXxHnzDPWCR/7U1kVd/4UK3BrSu8AJ BaU2br5YFLovGnq5gXjdsvxgASKHdmLDZWLhCHfFYycEKKV0jLbY0C8NsUL4cQoMAF0J +XcQ== 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:date:subject:cc :to:from; bh=yLxMw3n+UoEcmCErHpD6G7uM7+NNb8WxkifgCD3W98Y=; b=BUUlQ0r1AeT1GEOHMIOZCQvB+vUsi7fMmGuQfyywKR/LApx0Od0Vtgxc8AeC5P4Hpi MK4vdWBs3mnx2k4BrlsnSlzLu30t1/RlQvt152chf3jeqZuv2Za3iW7FV+m99kiaMIUi KTtTbPUpQ8IogCJjqoL4WLTZhsZEaJgJWWXXyCwQA029lNpeCIkHx2rPcaLe3U9yVfvo G6TNd0lRIyXVbGziQTMN6Y1cUjxc4YU9EV8eloGwoUMfVyaXfRGYCu4JsQuH6SZKHwKv ltDrZbSWrNwL7j3yMu+a4iPb2YWniHeY9ML/4mzW9j1OgFQTGy6ttgmSusV7bh9yUNXp 6QuQ== 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 c13si4908349edv.320.2019.11.22.04.35.36; Fri, 22 Nov 2019 04:36: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 S1727637AbfKVM0I (ORCPT + 99 others); Fri, 22 Nov 2019 07:26:08 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:54468 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726739AbfKVM0I (ORCPT ); Fri, 22 Nov 2019 07:26:08 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 58FE480CE13315BE073B; Fri, 22 Nov 2019 20:26:01 +0800 (CST) Received: from localhost.localdomain (10.90.53.225) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Fri, 22 Nov 2019 20:25:52 +0800 From: Chen Wandun To: , , , , , , , CC: Subject: [PATCH] net: dsa: ocelot: fix "should it be static?" warnings Date: Fri, 22 Nov 2019 20:32:45 +0800 Message-ID: <1574425965-97890-1-git-send-email-chenwandun@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix following sparse warnings: drivers/net/dsa/ocelot/felix.c:351:6: warning: symbol 'felix_txtstamp' was not declared. Should it be static? Signed-off-by: Chen Wandun --- drivers/net/dsa/ocelot/felix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/dsa/ocelot/felix.c b/drivers/net/dsa/ocelot/felix.c index 167e415..b7f9246 100644 --- a/drivers/net/dsa/ocelot/felix.c +++ b/drivers/net/dsa/ocelot/felix.c @@ -348,8 +348,8 @@ static bool felix_rxtstamp(struct dsa_switch *ds, int port, return false; } -bool felix_txtstamp(struct dsa_switch *ds, int port, - struct sk_buff *clone, unsigned int type) +static bool felix_txtstamp(struct dsa_switch *ds, int port, + struct sk_buff *clone, unsigned int type) { struct ocelot *ocelot = ds->priv; struct ocelot_port *ocelot_port = ocelot->ports[port]; -- 2.7.4