Skip to content

Commit

Permalink
Fix "delayed_work_pending()" macro expansion
Browse files Browse the repository at this point in the history
Nobody uses it, but it was still wrong.  Using the macro argument name
'work' meant that when we used 'work' as a member name, that would also
get replaced by the macro argument.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Linus Torvalds committed Dec 15, 2006
1 parent 701dfbe commit 0221872
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/workqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ struct execute_work {
* pending
* @work: The work item in question
*/
#define delayed_work_pending(work) \
test_bit(WORK_STRUCT_PENDING, &(work)->work.management)
#define delayed_work_pending(w) \
work_pending(&(w)->work)

/**
* work_release - Release a work item under execution
Expand Down

0 comments on commit 0221872

Please sign in to comment.