Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2679494pxb; Mon, 6 Sep 2021 02:54:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyc/zh+ESYDszOcLpY1eK73FqsXPi8Eqv+8QH5oRjLYoAHC0wydEiUPmmGeM24SN8BeXYdB X-Received: by 2002:aa7:de93:: with SMTP id j19mr12627976edv.241.1630922083849; Mon, 06 Sep 2021 02:54:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630922083; cv=none; d=google.com; s=arc-20160816; b=Qd1GD5MhZz0aOrb7cWU0Zobw4CQDOrIcF3VDiRrCAQ+qg9O4mORaKoDD4WWUVGcsIu xSR17eG8V2mwGHRtjGKKuaqE+G5zn1XUmbIlK4ESlNRz4/Ti1TIkQXAnXnFtOG45Ne3K rf0LY2tPHX19jaAVPiMigMGBw1voIofM9BA7AEu24MXPjhTP3JvnOMw6pCu92mF/LZfy FGkzsERmlA/LdIjW7vuC6OqiJ2NpNyxxlFipAS6sFegPNmxh0SHBqJRZ7+dKgOMjSn6A SbQRxNE9FFWT0D02opEHLoUxZTI2qoUiLftX2xIPuu33Rq/S1O/cIEOR2Vtvr6NLi2XO LgUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=xNHIANAac6UMF/5wsBPg69UfzKnpRxYWdpqjdnMZ930=; b=S/ZyfKo5JssyrnGG+B5fpKo/wSXYnnmNjzZ3IeH9XSIYROzRI64n1E6bG3GZqRnHyq pdWZc0VRTA4YltAf/VvUWdLMJuwWCyEg7oBYSoLrgv2UpFQmVVLStTEYMkbUmPBcP3l0 iMrwk/egUmHJMLII3RbcH7i+6hlPknl/XgjTR4oe2zqpHz7l2pltHobq1XmDaKtMG+aw GT6cjHDuFjHas3o+crAQ7URx9m4wMnPZfnt2Chjkyff8SBqjtlplz+Gij42DffszN7/2 ee/+4rSH7y9xS8Zsl8QkNF98aFpiwlqBkH8kEZFDcBrvJW/yt3q5AJ1YfyC75gIH8mbi M2Kg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p4si7104535eju.288.2021.09.06.02.54.20; Mon, 06 Sep 2021 02:54:43 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241481AbhIFJxN (ORCPT + 99 others); Mon, 6 Sep 2021 05:53:13 -0400 Received: from out30-54.freemail.mail.aliyun.com ([115.124.30.54]:34504 "EHLO out30-54.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241296AbhIFJxN (ORCPT ); Mon, 6 Sep 2021 05:53:13 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0UnPs1D5_1630921922; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UnPs1D5_1630921922) by smtp.aliyun-inc.com(127.0.0.1); Mon, 06 Sep 2021 17:52:07 +0800 From: Jiapeng Chong To: yisen.zhuang@huawei.com Cc: salil.mehta@huawei.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, chongjiapeng Subject: [PATCH] net: hns3: make hclgevf_cmd_caps_bit_map0 and hclge_cmd_caps_bit_map0 static Date: Mon, 6 Sep 2021 17:51:59 +0800 Message-Id: <1630921919-36549-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: chongjiapeng This symbols is not used outside of hclge_cmd.c and hclgevf_cmd.c, so marks it static. Fix the following sparse warning: drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c:345:35: warning: symbol 'hclgevf_cmd_caps_bit_map0' was not declared. Should it be static? drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c:365:33: warning: symbol 'hclge_cmd_caps_bit_map0' was not declared. Should it be static? Reported-by: Abaci Robot Signed-off-by: chongjiapeng --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 2 +- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c index 474c6d1..ac9b695 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c @@ -362,7 +362,7 @@ static void hclge_set_default_capability(struct hclge_dev *hdev) } } -const struct hclge_caps_bit_map hclge_cmd_caps_bit_map0[] = { +static const struct hclge_caps_bit_map hclge_cmd_caps_bit_map0[] = { {HCLGE_CAP_UDP_GSO_B, HNAE3_DEV_SUPPORT_UDP_GSO_B}, {HCLGE_CAP_PTP_B, HNAE3_DEV_SUPPORT_PTP_B}, {HCLGE_CAP_INT_QL_B, HNAE3_DEV_SUPPORT_INT_QL_B}, diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c index 59772b0..f89bfb3 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c @@ -342,7 +342,7 @@ static void hclgevf_set_default_capability(struct hclgevf_dev *hdev) set_bit(HNAE3_DEV_SUPPORT_FEC_B, ae_dev->caps); } -const struct hclgevf_caps_bit_map hclgevf_cmd_caps_bit_map0[] = { +static const struct hclgevf_caps_bit_map hclgevf_cmd_caps_bit_map0[] = { {HCLGEVF_CAP_UDP_GSO_B, HNAE3_DEV_SUPPORT_UDP_GSO_B}, {HCLGEVF_CAP_INT_QL_B, HNAE3_DEV_SUPPORT_INT_QL_B}, {HCLGEVF_CAP_TQP_TXRX_INDEP_B, HNAE3_DEV_SUPPORT_TQP_TXRX_INDEP_B}, -- 1.8.3.1