summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2013-08-03 12:57:06 +0200
committerBen Hutchings <ben@decadent.org.uk>2013-09-10 01:57:03 +0100
commit22cbb1bd14275c52a659e8f42bfceddfea24d785 (patch)
tree12d9e7dd7f7786d8846938b10de9b2dcf0e650ad
parent401390fbc8e28bb07851be6bbe0b343a0e9f8306 (diff)
ifb: Include <linux/sched.h>
commit b51c3427e95b ('ifb: fix rcu_sched self-detected stalls', commit 440d57bc5ff5 upstream) added a call to cond_resched(), which is declared in '#include <linux/sched.h>'. In Linux 3.2.y that header is included indirectly in some but not all configurations, so add a direct #include. Reported-by: Teck Choon Giam <giamteckchoon@gmail.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r--drivers/net/ifb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ifb.c b/drivers/net/ifb.c
index b19841aca42a..00f136705491 100644
--- a/drivers/net/ifb.c
+++ b/drivers/net/ifb.c
@@ -34,6 +34,7 @@
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/moduleparam.h>
+#include <linux/sched.h>
#include <net/pkt_sched.h>
#include <net/net_namespace.h>