Commit fd5ebbc7 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by 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: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: default avatarQuentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5d0c138e
...@@ -139,7 +139,7 @@ static void nsim_dev_release(struct device *dev) ...@@ -139,7 +139,7 @@ static void nsim_dev_release(struct device *dev)
free_netdev(ns->netdev); free_netdev(ns->netdev);
} }
struct device_type nsim_dev_type = { static struct device_type nsim_dev_type = {
.groups = nsim_dev_attr_groups, .groups = nsim_dev_attr_groups,
.release = nsim_dev_release, .release = nsim_dev_release,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment