Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2515125ybl; Mon, 20 Jan 2020 04:28:52 -0800 (PST) X-Google-Smtp-Source: APXvYqw/4VwrmXE6QXwC9ZUGdgNyyzV4aE2ALCkHfTOkYxw4I6XylJRJoK7HCw5l1OZ5Hc2Lzdez X-Received: by 2002:aca:5d57:: with SMTP id r84mr12697371oib.42.1579523332239; Mon, 20 Jan 2020 04:28:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579523332; cv=none; d=google.com; s=arc-20160816; b=y8qilBfFNijAE7idM/zYFF5Z9f3KvqAici2wFj+KbFsrfHtdy71TnBGmquTm23NEzk JEXEPeFFOekgFaZsR1acBQ1p9xWlbQ4hJpnUEuzPAiHOvMhs73kH0Ikr3iZCCiCN35PG liMdMR9sw09iOJ3vTFohydPD3d55eAQHL0VrhjEvWmyatv75DcvMrrQHdh6c5w3uKCzG QiFsLUk1KGE7Iv6ccgGYAhTuGBTugKZIcxWQLa7qHW6QAMzRg2i+O/Q9Xzai4T6gB6G6 980uk4LPu+zXiQ7d7fpr6EnK/u6g3CIy3l4Z+naJVrAT6BeHGAStVivRTChO3T+ZpvrX ZZmw== 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=mjbFh83xN6mSclxsU8VO0L4xKCpg/4NzvEPcHHTEepU=; b=GP2uKPqYQtLXzwGraWBXwHMwRLVNFVRDpJhWmvRdF97r5S7MSfiWuYvRuENkNTyHOx TmnZ9RybchAoDnKFLXb1SbkJc2gWGzcRVTwLY4FBaN5ovrrqEhlkMwLYqLj/rJwkV999 rTSvpAO2ebS3xtccN+TnFVyYIv0ZfNHWAu8qHeoZtHDLzZyQ27Mv1EogjGlqaiQKvCQc hmd+clpfjWL5RW55HKnr+1337+vq/4+1mHtMsbVpansGjpy6dMDDJbPvhYGC8ze/xNft 5ow+GZVzCRoLW6MN9E5LBlqr33IUj7QpOF4bWRRYvuouNO70JiZZyRd/wazdt+7p2XmC DogQ== 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 q1si20816962oti.234.2020.01.20.04.28.40; Mon, 20 Jan 2020 04:28:52 -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 S1729191AbgATM1X (ORCPT + 99 others); Mon, 20 Jan 2020 07:27:23 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:33812 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726942AbgATM1T (ORCPT ); Mon, 20 Jan 2020 07:27:19 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id A44575CA724095EC7D30; Mon, 20 Jan 2020 20:27:15 +0800 (CST) Received: from euler.huawei.com (10.175.104.193) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Mon, 20 Jan 2020 20:27:05 +0800 From: Chen Wandun To: , , , , , , , CC: Subject: [PATCH next] net/mlx5: make the symbol 'ESW_POOLS' static Date: Mon, 20 Jan 2020 20:41:53 +0800 Message-ID: <20200120124153.32354-1-chenwandun@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.104.193] 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 sparse warning: drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_chains.c:35:20: warning: symbol 'ESW_POOLS' was not declared. Should it be static? Fixes: 39ac237ce009 ("net/mlx5: E-Switch, Refactor chains and priorities") Signed-off-by: Chen Wandun --- .../ethernet/mellanox/mlx5/core/eswitch_offloads_chains.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_chains.c b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_chains.c index 3a60eb5360bd..c5a446e295aa 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_chains.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_chains.c @@ -32,10 +32,10 @@ * pools. */ #define ESW_SIZE (16 * 1024 * 1024) -const unsigned int ESW_POOLS[] = { 4 * 1024 * 1024, - 1 * 1024 * 1024, - 64 * 1024, - 4 * 1024, }; +static const unsigned int ESW_POOLS[] = { 4 * 1024 * 1024, + 1 * 1024 * 1024, + 64 * 1024, + 4 * 1024, }; struct mlx5_esw_chains_priv { struct rhashtable chains_ht; -- 2.17.1