patch-2.4.15 linux/include/linux/wait.h

Next file: linux/include/linux/watchdog.h
Previous file: linux/include/linux/videodev.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.14/linux/include/linux/wait.h linux/include/linux/wait.h
@@ -109,12 +109,12 @@
 	} 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)							\
 	do {									\
-		tsk->__waker = (long)__builtin_return_address(0);		\
+		(tsk)->__waker = (long)__builtin_return_address(0);		\
 	} while (0)
 #else
 #define WQ_BUG()

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)