diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-12-19 21:10:42 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-20 18:51:10 +0100 |
commit | fd5ebbc75ccba3487524fb03e784fa598b214d72 (patch) | |
tree | 32557b69c89712d64f0246e1d6530bcc6e79db83 /drivers/net/netdevsim/netdev.c | |
parent | selftests: rtnetlink: add gretap test cases (diff) | |
download | linux-fd5ebbc75ccba3487524fb03e784fa598b214d72.tar.xz linux-fd5ebbc75ccba3487524fb03e784fa598b214d72.zip |
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>
Diffstat (limited to 'drivers/net/netdevsim/netdev.c')
-rw-r--r-- | drivers/net/netdevsim/netdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/netdevsim/netdev.c b/drivers/net/netdevsim/netdev.c index eb8c679fca9f..92678f55ee80 100644 --- a/drivers/net/netdevsim/netdev.c +++ b/drivers/net/netdevsim/netdev.c @@ -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, }; |