]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
net: hns: Move static keyword to the front of declaration
authorKrzysztof Wilczynski <kw@linux.com>
Wed, 4 Sep 2019 14:21:16 +0000 (16:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Sep 2019 10:38:42 +0000 (12:38 +0200)
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: Krzysztof Wilczynski <kw@linux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c

index c1eba421ba822eb3cedaef55f0b4ea7da41d242d..3a14bbc26ea2890c4654d12742731ad0883bd685 100644 (file)
@@ -24,7 +24,7 @@
 #include "hns_dsaf_rcb.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_6PORT_0VM] = "6port-16rss",
        [DSAF_MODE_DISABLE_6PORT_16VM] = "6port-16vf",