projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9217cbb
)
irq_work.h: fix warning when CONFIG_IRQ_WORK=n
author
James Hogan
<
[email protected]
>
Fri, 22 Mar 2013 22:04:37 +0000
(15:04 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 22 Mar 2013 23:41:19 +0000
(16:41 -0700)
A randconfig caught repeated compiler warnings when CONFIG_IRQ_WORK=n
due to the definition of a non-inline static function in
<linux/irq_work.h>:
include/linux/irq_work.h +40 : warning: 'irq_work_needs_cpu' defined but not used
Make it inline to supress the warning. This is caused commit
00b42959106a
("irq_work: Don't stop the tick with pending works") merged
in v3.9-rc1.
Signed-off-by: James Hogan <
[email protected]
>
Signed-off-by: Frederic Weisbecker <
[email protected]
>
Cc: Steven Rostedt <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Paul Gortmaker <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/linux/irq_work.h
patch
|
blob
|
history
diff --git
a/include/linux/irq_work.h
b/include/linux/irq_work.h
index f5dbce50466e6546fc72f4084ed0d0c91d91fe1e..66017028dcb3d0aebf70aa7281e7758a42bcb3bf 100644
(file)
--- a/
include/linux/irq_work.h
+++ b/
include/linux/irq_work.h
@@
-37,7
+37,7
@@
void irq_work_sync(struct irq_work *work);
#ifdef CONFIG_IRQ_WORK
bool irq_work_needs_cpu(void);
#else
-static bool irq_work_needs_cpu(void) { return false; }
+static
inline
bool irq_work_needs_cpu(void) { return false; }
#endif
#endif /* _LINUX_IRQ_WORK_H */