History

netdevsim: declare struct device_type as static

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

Jakub Kicinski committed 8 years ago

Commit fd5ebbc1 parent 5d0c1381 file · +1 −1Browse files

Showing the changes to drivers/net/netdevsim/netdev.c (1 of 1 file). Show all

Unified · Split

drivers/net/netdevsim/netdev.c+1−1
@@ -139,7 +139,7 @@ static void nsim_dev_release(struct device *dev) · 138 unmodified lines
139 free_netdev(ns->netdev);139 free_netdev(ns->netdev);
140}140}
141 141
142struct device_type nsim_dev_type = {142static struct device_type nsim_dev_type = {
143 .groups = nsim_dev_attr_groups,143 .groups = nsim_dev_attr_groups,
144 .release = nsim_dev_release,144 .release = nsim_dev_release,
145};145};

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t