Commit 0221872a3b0aa2fa2f3fa60affcbaebd662c4a90

Authored by Linus Torvalds
1 parent 701dfbe719

Fix "delayed_work_pending()" macro expansion

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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

include/linux/workqueue.h
... ... @@ -121,8 +121,8 @@
121 121 * pending
122 122 * @work: The work item in question
123 123 */
124   -#define delayed_work_pending(work) \
125   - test_bit(WORK_STRUCT_PENDING, &(work)->work.management)
  124 +#define delayed_work_pending(w) \
  125 + work_pending(&(w)->work)
126 126  
127 127 /**
128 128 * work_release - Release a work item under execution