]> 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>
Wed, 20 Mar 2013 04:10:58 +0000 (15:10 +1100)
commitdb0f4d2fdcf492d3b96753262acd98f3cc04c2a5
treeca838ee3a163354d9a3c012aaf92f277a1e03fcb
parent1f5352d7c7748602fdf0be39e987b66052ee4c98
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