nfp: Explicitly include linux/bug.h
Subsystems (3)
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
@@ -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
@@ -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
Quoted 5 lines · Mark Brown
Today's -next build encountered an error due to a missing definition of
WARN_ON(), caused by some header reorganization removing an implicit inclusion oflinux/bug.h. Fix this with an explicit inclusion.Signed-off-by Mark Brown <[email protected]>
Thank you!
From: Mark Brown <[email protected]>
Date: Fri, 13 Oct 2017 03:50:35 +0100
Quoted 5 lines
Today's -next build encountered an error due to a missing definition of
WARN_ON(), caused by some header reorganization removing an implicit inclusion oflinux/bug.h. Fix this with an explicit inclusion.Signed-off-by Mark Brown <[email protected]>
Applied, thanks Mark.