提交 fd5ebbc7 编写于 作者: J Jakub Kicinski 提交者: David S. Miller

netdevsim: declare struct device_type as static

struct device_type nsim_dev_type created for SR-IOV support
should be static.
Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: NQuentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 5d0c138e
......@@ -139,7 +139,7 @@ static void nsim_dev_release(struct device *dev)
free_netdev(ns->netdev);
}
struct device_type nsim_dev_type = {
static struct device_type nsim_dev_type = {
.groups = nsim_dev_attr_groups,
.release = nsim_dev_release,
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册