diff options
Diffstat (limited to 'include/linux/workqueue.h')
-rw-r--r-- | include/linux/workqueue.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index 0697946c66a1..e724dafc9e6d 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h | |||
@@ -96,9 +96,14 @@ struct execute_work { | |||
96 | #ifdef CONFIG_DEBUG_OBJECTS_WORK | 96 | #ifdef CONFIG_DEBUG_OBJECTS_WORK |
97 | extern void __init_work(struct work_struct *work, int onstack); | 97 | extern void __init_work(struct work_struct *work, int onstack); |
98 | extern void destroy_work_on_stack(struct work_struct *work); | 98 | extern void destroy_work_on_stack(struct work_struct *work); |
99 | static inline unsigned int work_static(struct work_struct *work) | ||
100 | { | ||
101 | return *work_data_bits(work) & (1 << WORK_STRUCT_STATIC); | ||
102 | } | ||
99 | #else | 103 | #else |
100 | static inline void __init_work(struct work_struct *work, int onstack) { } | 104 | static inline void __init_work(struct work_struct *work, int onstack) { } |
101 | static inline void destroy_work_on_stack(struct work_struct *work) { } | 105 | static inline void destroy_work_on_stack(struct work_struct *work) { } |
106 | static inline unsigned int work_static(struct work_struct *work) { return 0; } | ||
102 | #endif | 107 | #endif |
103 | 108 | ||
104 | /* | 109 | /* |