diff mbox series

[v2] bitfield.h: include <linux/build_bug.h> instead of <linux/bug.h>

Message ID 1505700775-19826-1-git-send-email-yamada.masahiro@socionext.com
State New
Headers show
Series [v2] bitfield.h: include <linux/build_bug.h> instead of <linux/bug.h> | expand

Commit Message

Masahiro Yamada Sept. 18, 2017, 2:12 a.m. UTC
Since commit bc6245e5efd7 ("bug: split BUILD_BUG stuff out into
<linux/build_bug.h>"), #include <linux/build_bug.h> is better
to pull minimal headers needed for BUILG_BUG() family.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

---

Changes in v2:
  - Fix a typo s/minumam/minimal/

 include/linux/bitfield.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.7.4

Comments

Jakub Kicinski Sept. 18, 2017, 8:01 a.m. UTC | #1
On Mon, 18 Sep 2017 11:12:55 +0900, Masahiro Yamada wrote:
> Since commit bc6245e5efd7 ("bug: split BUILD_BUG stuff out into

> <linux/build_bug.h>"), #include <linux/build_bug.h> is better

> to pull minimal headers needed for BUILG_BUG() family.

> 

> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>


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

Patch

diff --git a/include/linux/bitfield.h b/include/linux/bitfield.h
index 8b9d6fff002d..9e16b3381642 100644
--- a/include/linux/bitfield.h
+++ b/include/linux/bitfield.h
@@ -15,7 +15,7 @@ 
 #ifndef _LINUX_BITFIELD_H
 #define _LINUX_BITFIELD_H
 
-#include <linux/bug.h>
+#include <linux/build_bug.h>
 
 /*
  * Bitfield access macros