mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 12:21:37 +00:00
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:
parent
5d0c138eff
commit
fd5ebbc75c
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user