Skip to content
Snippets Groups Projects
Commit ee59acaa authored by Krzysztof Wilczynski's avatar Krzysztof Wilczynski Committed by Cheng Jian
Browse files

net: hns: Move static keyword to the front of declaration


mainline inclusion
from mainline-5.4-rc1
commit 5e5d8bc4
category: bugfix
bugzilla: NA
CVE: NA

---------------------------

Move the static keyword to the front of declaration of g_dsaf_mode_match,
and resolve the following compiler warning that can be seen when building
with warnings enabled (W=1):

drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:27:1: warning:
  ‘static’ is not at beginning of declaration [-Wold-style-declaration]

Signed-off-by: default avatarKrzysztof Wilczynski <kw@linux.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarYonglong Liu <liuyonglong@huawei.com>
Reviewed-by: default avatarli yongxin <liyongxin1@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
parent b02308bf
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include "hns_dsaf_rcb.h" #include "hns_dsaf_rcb.h"
#include "hns_dsaf_misc.h" #include "hns_dsaf_misc.h"
const static char *g_dsaf_mode_match[DSAF_MODE_MAX] = { static const char *g_dsaf_mode_match[DSAF_MODE_MAX] = {
[DSAF_MODE_DISABLE_2PORT_64VM] = "2port-64vf", [DSAF_MODE_DISABLE_2PORT_64VM] = "2port-64vf",
[DSAF_MODE_DISABLE_6PORT_0VM] = "6port-16rss", [DSAF_MODE_DISABLE_6PORT_0VM] = "6port-16rss",
[DSAF_MODE_DISABLE_6PORT_16VM] = "6port-16vf", [DSAF_MODE_DISABLE_6PORT_16VM] = "6port-16vf",
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment