Re: [PATCH] omnibus include/ cleanup (biggish)

From: andersg@0x63.nu
Date: Fri Nov 16 2001 - 06:37:35 EST


On Thu, Nov 15, 2001 at 05:51:44PM -0800, Nathan Myers wrote:
> I have located every place under linux/include/ that #defines
> a macro with an improper unary expression, like any of

you missed this which generates a compiletime-error in sched.c with compiled
with WAITQUEUE_DEBUG

--- wait.h~ Thu Nov 15 22:54:50 2001
+++ wait.h Thu Nov 15 22:59:04 2001
@@ -105,7 +105,7 @@
         } while (0)
 #define WQ_CHECK_LIST_HEAD(list) \
         do { \
- if (!list->next || !list->prev) \
+ if (!(list)->next || !(list)->prev) \
                         WQ_BUG(); \
         } while(0)
 #define WQ_NOTE_WAKER(tsk) \

-- 

//anders/g

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Nov 23 2001 - 21:00:13 EST