Skip to contentSkip to conversation

openrisc: explicitly include linux/bug.h in asm/fixmap.h

PATCH New Tobias Klauser 2 participants 2 messages May 15, 2017 Openrisc architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openrisc: explicitly include linux/bug.h in asm/fixmap.h

openrisc's asm/fixmap.h uses the BUG() and BUG_ON() macros but relies on implict inclusion of linux/bug.h which means that changes in other headers could break the build. Thus, add an explicit include.

---
 arch/openrisc/include/asm/fixmap.h | 1 +
 1 file changed, 1 insertion(+)
arch/openrisc/include/asm/fixmap.h +1 -0
index 52733416c1f3..5a0159546f9e 100644
@@ -27,6 +27,7 @@
 #define FIXADDR_TOP	((unsigned long) (-2*PAGE_SIZE))
 
 #include <linux/kernel.h>
+#include <linux/bug.h>
 #include <asm/page.h>
 
 /*
Signature · 1 line
2.13.0
maintainer
#1 lore raw

PATCH 1/1 openrisc: explicitly include linux/bug.h in asm/fixmap.h

Quoted 3 lines · Tobias Klauser

openrisc's asm/fixmap.h uses the BUG() and BUG_ON() macros but relies on implict inclusion of linux/bug.h which means that changes in other headers could break the build. Thus, add an explicit include.

Thanks, I have applied it.

Quoted 21 lines
---
 arch/openrisc/include/asm/fixmap.h | 1 +
 1 file changed, 1 insertion(+)
arch/openrisc/include/asm/fixmap.h +1 -0
index 52733416c1f3..5a0159546f9e 100644
@@ -27,6 +27,7 @@
 #define FIXADDR_TOP	((unsigned long) (-2*PAGE_SIZE))
 
 #include <linux/kernel.h>
+#include <linux/bug.h>
 #include <asm/page.h>
 
 /*
Signature · 1 line
2.13.0