pinctrl: uniphier: include <linux/build_bug.h> instead of <linux/bug.h>

Message ID 1504373178-1022-1-git-send-email-yamada.masahiro@socionext.com
State New
Headers show
Series
  • pinctrl: uniphier: include <linux/build_bug.h> instead of <linux/bug.h>
Related show

Commit Message

Masahiro Yamada Sept. 2, 2017, 5:26 p.m.
The #includes <linux/bug.h> is here to use BUILD_BUG_ON_ZERO().

Thanks to commit bc6245e5efd7 ("bug: split BUILD_BUG stuff out into
<linux/build_bug.h>"), it is now possible to reduce the number of
headers pulled in.

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

 drivers/pinctrl/uniphier/pinctrl-uniphier.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Linus Walleij Sept. 12, 2017, 7:35 a.m. | #1
On Sat, Sep 2, 2017 at 7:26 PM, Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:

> The #includes <linux/bug.h> is here to use BUILD_BUG_ON_ZERO().
>
> Thanks to commit bc6245e5efd7 ("bug: split BUILD_BUG stuff out into
> <linux/build_bug.h>"), it is now possible to reduce the number of
> headers pulled in.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

Patch applied for fixes.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier.h b/drivers/pinctrl/uniphier/pinctrl-uniphier.h
index c075ecb8e5db..0a3d2ac27503 100644
--- a/drivers/pinctrl/uniphier/pinctrl-uniphier.h
+++ b/drivers/pinctrl/uniphier/pinctrl-uniphier.h
@@ -17,7 +17,7 @@ 
 #define __PINCTRL_UNIPHIER_H__
 
 #include <linux/bitops.h>
-#include <linux/bug.h>
+#include <linux/build_bug.h>
 #include <linux/kernel.h>
 #include <linux/types.h>