]> git.karo-electronics.de Git - karo-tx-linux.git/commit
irq_work.h: fix warning when CONFIG_IRQ_WORK=n
authorJames Hogan <james.hogan@imgtec.com>
Wed, 20 Mar 2013 04:06:45 +0000 (15:06 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 22 Mar 2013 04:32:44 +0000 (15:32 +1100)
commitad730b7208b700f5b1de594824ed48b8cc83e977
treef0c87a8426ab3404d5e888b0669e8245ab6c4ac1
parent5119bb9078f599d5340a912f0fac6d88e2ce0f4b
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 by the following
commit:

Commit 00b429591 ("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>
include/linux/irq_work.h