Skip to contentSkip to conversation

nfp: Explicitly include linux/bug.h

PATCH Applied Mark Brown 3 participants 3 messages Oct 13, 2017 – Oct 15, 2017

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 nfp: Explicitly include linux/bug.h

Today's -next build encountered an error due to a missing definition of WARN_ON(), caused by some header reorganization removing an implicit inclusion of linux/bug.h. Fix this with an explicit inclusion.

---
 drivers/net/ethernet/netronome/nfp/nfp_app.c | 1 +
 drivers/net/ethernet/netronome/nfp/nfp_asm.h | 1 +
 2 files changed, 2 insertions(+)
drivers/net/ethernet/netronome/nfp/nfp_app.c +1 -0
index 82c290763529..5d9e2eba5b49 100644
@@ -31,6 +31,7 @@
  * SOFTWARE.
  */
 
+#include <linux/bug.h>
 #include <linux/skbuff.h>
 #include <linux/slab.h>
 
drivers/net/ethernet/netronome/nfp/nfp_asm.h +1 -0
index c4c18dd5630a..aa397bf308e4 100644
@@ -35,6 +35,7 @@
 #define __NFP_ASM_H__ 1
 
 #include <linux/bitfield.h>
+#include <linux/bug.h>
 #include <linux/types.h>
 
 #define REG_NONE	0
Signature · 1 line
2.14.1