Search Linux Wireless

[PATCH 3/4] compat: fix mod_delayed_work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 * Add return value to function
 * make EXPORT_SYMBOL_GPL work by including the needed header file

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 compat/compat-3.7.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/compat/compat-3.7.c b/compat/compat-3.7.c
index 8fd07ff..f251788 100644
--- a/compat/compat-3.7.c
+++ b/compat/compat-3.7.c
@@ -9,11 +9,13 @@
  */
 
 #include <linux/workqueue.h>
+#include <linux/export.h>
 
 bool mod_delayed_work(struct workqueue_struct *wq, struct delayed_work *dwork,
 		      unsigned long delay)
 {
 	cancel_delayed_work(dwork);
 	queue_delayed_work(wq, dwork, delay);
+	return false;
 }
 EXPORT_SYMBOL_GPL(mod_delayed_work);
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux