Skip to content

Commit 83e3fa6

Browse files
Paul Gortmakertorvalds
authored andcommitted
irq_work: fix compile failure on MIPS from system.h split
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>
1 parent dd775ae commit 83e3fa6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎kernel/irq_work.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* context. The enqueueing is NMI-safe.
66
*/
77

8+
#include <linux/bug.h>
89
#include <linux/kernel.h>
910
#include <linux/export.h>
1011
#include <linux/irq_work.h>

0 commit comments

Comments
 (0)