mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-26 14:17:26 -04:00
irq_work.h: fix warning when CONFIG_IRQ_WORK=n
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
00b4295910
("irq_work: Don't stop the tick with pending works") merged
in v3.9-rc1.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
9217cbb8df
commit
fe8d52614b
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ void irq_work_sync(struct irq_work *work);
|
||||||
#ifdef CONFIG_IRQ_WORK
|
#ifdef CONFIG_IRQ_WORK
|
||||||
bool irq_work_needs_cpu(void);
|
bool irq_work_needs_cpu(void);
|
||||||
#else
|
#else
|
||||||
static bool irq_work_needs_cpu(void) { return false; }
|
static inline bool irq_work_needs_cpu(void) { return false; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _LINUX_IRQ_WORK_H */
|
#endif /* _LINUX_IRQ_WORK_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue