Skip to contentSkip to conversation

net,bonding: fix bond_options.c direct rwlock.h include

PATCH Applied Mike Galbraith 2 participants 2 messages Feb 14, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net,bonding: fix bond_options.c direct rwlock.h include

drivers/net/bonding/bond_options.c includes rwlock.h directly, which is a nono, and which also breaks RT kernel build.

---

drivers/net/bonding/bond_options.c +1 -1
index 11cb943222d5..c37878432717 100644
@@ -14,7 +14,7 @@
 #include <linux/errno.h>
 #include <linux/if.h>
 #include <linux/netdevice.h>
-#include <linux/rwlock.h>
+#include <linux/spinlock.h>
 #include <linux/rcupdate.h>
 #include <linux/ctype.h>
 #include <linux/inet.h>