提交 e8572f03 编写于 作者: Y Yang Yingliang 提交者: David S. Miller

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: 67d63751 ("net: microchip: sparx5: Adding KUNIT test for the VCAP API")
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: NSteen Hegelund <Steen.Hegelund@microchip.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8c2a535e
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册