Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0221872a3b0aa2fa2f3fa60affcbaebd662c4a90
Commit:     0221872a3b0aa2fa2f3fa60affcbaebd662c4a90
Parent:     701dfbe71903413d10caf2790259bccbabbedcf5
Author:     Linus Torvalds <[EMAIL PROTECTED]>
AuthorDate: Fri Dec 15 14:13:51 2006 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Fri Dec 15 14:13:51 2006 -0800

    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 <[EMAIL PROTECTED]>
---
 include/linux/workqueue.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h
index edef8d5..5b13dcf 100644
--- a/include/linux/workqueue.h
+++ b/include/linux/workqueue.h
@@ -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
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to