projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
701dfbe
)
Fix "delayed_work_pending()" macro expansion
author
Linus Torvalds
<torvalds@woody.osdl.org>
Fri, 15 Dec 2006 22:13:51 +0000
(14:13 -0800)
committer
Linus Torvalds
<torvalds@woody.osdl.org>
Fri, 15 Dec 2006 22:13:51 +0000
(14:13 -0800)
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>
include/linux/workqueue.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/workqueue.h
b/include/linux/workqueue.h
index edef8d50b26bd668b415e0758f16961068e28339..5b13dcf027140647ac251e829d01f16973202741 100644
(file)
--- 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(w
ork
) \
-
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