aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-10-28 16:11:06 +0800
committerDavid S. Miller <davem@davemloft.net>2022-10-31 10:48:32 +0000
commite8572f038a527a4f865b0992057963252f14ba40 (patch)
tree853e3f43c39c2e5f87adc25038ae823bafc51e18
parentnet: geneve: fix array of flexible structures warnings (diff)
downloadwireguard-linux-e8572f038a527a4f865b0992057963252f14ba40.tar.xz
wireguard-linux-e8572f038a527a4f865b0992057963252f14ba40.zip
net: microchip: sparx5: kunit test: change test_callbacks and test_vctrl to static
test_callbacks and test_vctrl are only used in vcap_api_kunit.c now, change them to static. Fixes: 67d637516fa9 ("net: microchip: sparx5: Adding KUNIT test for the VCAP API") Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c b/drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
index b01a6e5039b0..d142ed660338 100644
--- a/drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
+++ b/drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
@@ -204,7 +204,7 @@ static int vcap_test_port_info(struct net_device *ndev, enum vcap_type vtype,
return 0;
}
-struct vcap_operations test_callbacks = {
+static struct vcap_operations test_callbacks = {
.validate_keyset = test_val_keyset,
.add_default_fields = test_add_def_fields,
.cache_erase = test_cache_erase,
@@ -216,7 +216,7 @@ struct vcap_operations test_callbacks = {
.port_info = vcap_test_port_info,
};
-struct vcap_control test_vctrl = {
+static struct vcap_control test_vctrl = {
.vcaps = kunit_test_vcaps,
.stats = &kunit_test_vcap_stats,
.ops = &test_callbacks,