Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1736134ybj; Wed, 6 May 2020 04:28:40 -0700 (PDT) X-Google-Smtp-Source: APiQypK0Dddp6+SnuqJcDUfkywoxFzzhDc8mojYTXZQr5LhcILhMWOnUe84TSudkZInaF0qm1uhP X-Received: by 2002:a17:906:1690:: with SMTP id s16mr6307498ejd.339.1588764520755; Wed, 06 May 2020 04:28:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588764520; cv=none; d=google.com; s=arc-20160816; b=sP7Aeq2n4JsgCE0g1itrHOIoPFzZBAbsPXHe1EEuFOUtD6qEOjsB9fCWR5fr8+CxMr pLXZU5SFZ5cat6tpBD7v98oasDUkh90AOfDUoEVJfpiMaxjwk0VeNhiJ5nGujzknIZrW lh8OpCRI7re9QS7XO33UxBvd8Vbmi7DIOUOcK/+N+xLOKSlYyhAdsdtghbASUuxYXwCF rdWAQGaEc0E0ncyzUELu56xZ7ZiMZdL0sGhscli3cBXJ4KIxyG0qxKBse/XwFsx6JRFn /FmRVP9/sER+dQ16CKUtoGeV4+dCUBIdI4JxTXRp0IGIoXyuZPxktp7vt/T3Z/YLw1gT cgTA== 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=g/qxJ2BNYJDmjmeY7e4dai0RDb2jMJGbW4iAdvqVWKk=; b=kzJ1UFOXKyjlRu1ayEKKEoAYH1teZ0eFlf0eutdadAdSrClJBfmAwPFNIvq8RP9/3i lIAOlSIMCbPLDj39h4zlp1TKAuuD7HyCAVgaS0v3HjzjnVd/n8rQFc8+AVPqHyMzP+R7 yT5lf9vmSCO/bFDxfxOUY3kN2MIGLHlUlimva40xEQc+KQBkKZaIt+S3sKqfGMfALuhZ K1HYJJ+JVJrlutHUmuq3/7d3WmTq8dMowQLTKRJXX5DIYlRejWLsAiZDaWJ5LnVrPRae oEhWrKBPDnNAYJc9S9DS+stnsNtXZwyORi/qlNQHznJUEkKDO7YUZTPnrbCh/r2HdUgl /Exw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e17si859948edr.16.2020.05.06.04.28.18; Wed, 06 May 2020 04:28:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727805AbgEFLXK (ORCPT + 99 others); Wed, 6 May 2020 07:23:10 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:3818 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727099AbgEFLXK (ORCPT ); Wed, 6 May 2020 07:23:10 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id A5ABFE62CDF7BBCBE9B0; Wed, 6 May 2020 19:23:08 +0800 (CST) Received: from huawei.com (10.67.174.156) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Wed, 6 May 2020 19:23:02 +0800 From: ChenTao To: CC: , , , Subject: [PATCH -next] net: enetc: Make some symbols static Date: Wed, 6 May 2020 19:22:17 +0800 Message-ID: <20200506112217.161534-1-chentao107@huawei.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.174.156] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following warning: drivers/net/ethernet/freescale/enetc/enetc_qos.c:427:20: warning: symbol 'enetc_act_fwd' was not declared. Should it be static? drivers/net/ethernet/freescale/enetc/enetc_qos.c:966:20: warning: symbol 'enetc_check_flow_actions' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: ChenTao --- drivers/net/ethernet/freescale/enetc/enetc_qos.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/freescale/enetc/enetc_qos.c b/drivers/net/ethernet/freescale/enetc/enetc_qos.c index 48e589e9d0f7..172acb602ccb 100644 --- a/drivers/net/ethernet/freescale/enetc/enetc_qos.c +++ b/drivers/net/ethernet/freescale/enetc/enetc_qos.c @@ -424,7 +424,7 @@ struct enetc_psfp { spinlock_t psfp_lock; /* spinlock for the struct enetc_psfp r/w */ }; -struct actions_fwd enetc_act_fwd[] = { +static struct actions_fwd enetc_act_fwd[] = { { BIT(FLOW_ACTION_GATE), BIT(FLOW_DISSECTOR_KEY_ETH_ADDRS), @@ -963,7 +963,8 @@ static int enetc_psfp_hw_set(struct enetc_ndev_priv *priv, return err; } -struct actions_fwd *enetc_check_flow_actions(u64 acts, unsigned int inputkeys) +static struct actions_fwd *enetc_check_flow_actions(u64 acts, + unsigned int inputkeys) { int i; -- 2.22.0