netdevsim: declare struct device_type as static

struct device_type nsim_dev_type created for SR-IOV support
should be static.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Jakub Kicinski 2017-12-19 12:10:42 -08:00 committed by David S. Miller
parent 5d0c138eff
commit fd5ebbc75c

View File

@ -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,
};