diff mbox series

nfp: Explicitly include linux/bug.h

Message ID 20171013025035.4450-1-broonie@kernel.org
State New
Headers show
Series nfp: Explicitly include linux/bug.h | expand

Commit Message

Mark Brown Oct. 13, 2017, 2:50 a.m. UTC
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.

Signed-off-by: Mark Brown <broonie@kernel.org>

---
 drivers/net/ethernet/netronome/nfp/nfp_app.c | 1 +
 drivers/net/ethernet/netronome/nfp/nfp_asm.h | 1 +
 2 files changed, 2 insertions(+)

-- 
2.14.1

Comments

Jakub Kicinski Oct. 13, 2017, 3:16 a.m. UTC | #1
On Fri, 13 Oct 2017 03:50:35 +0100, Mark Brown wrote:
> 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.

> 

> Signed-off-by: Mark Brown <broonie@kernel.org>


Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>


Thank you!
David Miller Oct. 15, 2017, 1:31 a.m. UTC | #2
From: Mark Brown <broonie@kernel.org>

Date: Fri, 13 Oct 2017 03:50:35 +0100

> 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.

> 

> Signed-off-by: Mark Brown <broonie@kernel.org>


Applied, thanks Mark.
diff mbox series

Patch

diff --git a/drivers/net/ethernet/netronome/nfp/nfp_app.c b/drivers/net/ethernet/netronome/nfp/nfp_app.c
index 82c290763529..5d9e2eba5b49 100644
--- a/drivers/net/ethernet/netronome/nfp/nfp_app.c
+++ b/drivers/net/ethernet/netronome/nfp/nfp_app.c
@@ -31,6 +31,7 @@ 
  * SOFTWARE.
  */
 
+#include <linux/bug.h>
 #include <linux/skbuff.h>
 #include <linux/slab.h>
 
diff --git a/drivers/net/ethernet/netronome/nfp/nfp_asm.h b/drivers/net/ethernet/netronome/nfp/nfp_asm.h
index c4c18dd5630a..aa397bf308e4 100644
--- a/drivers/net/ethernet/netronome/nfp/nfp_asm.h
+++ b/drivers/net/ethernet/netronome/nfp/nfp_asm.h
@@ -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