Skip to content

Commit

Permalink
irq_work: fix compile failure on MIPS from system.h split
Browse files Browse the repository at this point in the history
Builds of the MIPS platform ip32_defconfig fails as of commit
0195c00 ("Merge tag 'split-asm_system_h ...") because MIPS xchg()
macro uses BUILD_BUG_ON and it was moved in commit b81947c
("Disintegrate asm/system.h for MIPS").

The root cause is that the system.h split wasn't tested on a baseline
with commit 6c03438 ("kernel.h: doesn't explicitly use bug.h, so
don't include it.")

Since this file uses BUG code in several other places besides the xchg
call, simply make the inclusion explicit.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Paul Gortmaker authored and torvalds committed Apr 2, 2012
1 parent dd775ae commit 83e3fa6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/irq_work.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* context. The enqueueing is NMI-safe.
*/

#include <linux/bug.h>
#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/irq_work.h>
Expand Down

0 comments on commit 83e3fa6

Please sign in to comment.