From 78fda91b330657f1d66afc32d18cae99f4783f21 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Thu, 2 Aug 2012 18:28:01 +0200 Subject: [PATCH] compat: fix endless recursion in flush_scheduled_work The hader file defines flush_scheduled_work(a) compat_flush_scheduled_work(a), which causes flush_scheduled_work() and compat_flush_scheduled_work() to be the same function. With this patch it calls the actual function in the kernel. This fixes problems when unloading mac80211 from compat-wireless. Signed-off-by: Hauke Mehrtens Signed-off-by: Luis R. Rodriguez --- compat/compat-2.6.36.c | 1 + 1 file changed, 1 insertion(+) diff --git a/compat/compat-2.6.36.c b/compat/compat-2.6.36.c index 8f25be0a1e35..05b41c2b227d 100644 --- a/compat/compat-2.6.36.c +++ b/compat/compat-2.6.36.c @@ -133,6 +133,7 @@ int compat_schedule_delayed_work_on(int cpu, } EXPORT_SYMBOL_GPL(compat_schedule_delayed_work_on); +#undef flush_scheduled_work(a) void compat_flush_scheduled_work(void) { /* -- 2.30.2