Bug 3863
Summary: | init_wait macro in <linux/wait.h> needs parens | ||
---|---|---|---|
Product: | Drivers | Reporter: | david howard (daveh) |
Component: | Other | Assignee: | drivers_other |
Status: | CLOSED PATCH_ALREADY_AVAILABLE | ||
Severity: | low | ||
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.7 | Subsystem: | |
Regression: | --- | Bisected commit-id: |
Description
david howard
2004-12-04 11:30:41 UTC
ORIGINAL #define init_wait(wait) \ do { \ wait->task = current; \ wait->func = autoremove_wake_function; \ INIT_LIST_HEAD(&wait->task_list); \ } while (0) FIX #define init_wait(wait) \ do { \ (wait)->task = current; \ (wait)->func = autoremove_wake_function; \ INIT_LIST_HEAD(&(wait)->task_list); \ } while (0) Andrew Morton plans to have a patch available in the post-2.6.10 timeframe. No bug left behind. :) Patch has hit linus tree. |