[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200225045810.GA17545@e50d7db646c3>
Date: Tue, 25 Feb 2020 12:58:12 +0800
From: kbuild test robot <lkp@...el.com>
To: Vladimir Oltean <olteanv@...il.com>
Cc: kbuild-all@...ts.01.org, davem@...emloft.net,
horatiu.vultur@...rochip.com, alexandre.belloni@...tlin.com,
andrew@...n.ch, f.fainelli@...il.com, vivien.didelot@...il.com,
joergen.andreasen@...rochip.com, allan.nielsen@...rochip.com,
claudiu.manoil@....com, netdev@...r.kernel.org,
UNGLinuxDriver@...rochip.com, alexandru.marginean@....com,
xiaoliang.yang_1@....com, yangbo.lu@....com, po.liu@....com,
jiri@...lanox.com, idosch@...sch.org, kuba@...nel.org
Subject: [RFC PATCH] net: mscc: ocelot: vsc7514_vcap_is2_keys[] can be static
Fixes: b33f9830eb55 ("net: mscc: ocelot: don't rely on preprocessor for vcap key/action packing")
Signed-off-by: kbuild test robot <lkp@...el.com>
---
ocelot_board.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/mscc/ocelot_board.c b/drivers/net/ethernet/mscc/ocelot_board.c
index 8b83a10083e2e..186f181deffee 100644
--- a/drivers/net/ethernet/mscc/ocelot_board.c
+++ b/drivers/net/ethernet/mscc/ocelot_board.c
@@ -263,7 +263,7 @@ static const struct ocelot_ops ocelot_ops = {
.reset = ocelot_reset,
};
-struct vcap_field vsc7514_vcap_is2_keys[] = {
+static struct vcap_field vsc7514_vcap_is2_keys[] = {
/* Common: 46 bits */
[VCAP_IS2_TYPE] = { 0, 4},
[VCAP_IS2_HK_FIRST] = { 4, 1},
@@ -343,7 +343,7 @@ struct vcap_field vsc7514_vcap_is2_keys[] = {
[VCAP_IS2_HK_OAM_IS_Y1731] = {187, 1},
};
-struct vcap_field vsc7514_vcap_is2_actions[] = {
+static struct vcap_field vsc7514_vcap_is2_actions[] = {
[VCAP_IS2_ACT_HIT_ME_ONCE] = { 0, 1},
[VCAP_IS2_ACT_CPU_COPY_ENA] = { 1, 1},
[VCAP_IS2_ACT_CPU_QU_NUM] = { 2, 3},
Powered by blists - more mailing lists