Skip to content

Commit 22f099d

Browse files
swarrenLinus Walleij
authored andcommitted
pinctrl: include <linux/bug.h> to prevent compile errors
Macros in <linux/pinctrl/machine.h> call ARRAY_SIZE(), the definition of which eventually calls BUILD_BUG_ON_ZERO(), which is defined in <linux/bug.h>. Include that so that every .c file using the pinctrl macros doesn't have to do that itself. Signed-off-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 6974f1f commit 22f099d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/pinctrl/machine.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#ifndef __LINUX_PINCTRL_MACHINE_H
1313
#define __LINUX_PINCTRL_MACHINE_H
1414

15+
#include <linux/bug.h>
16+
1517
#include "pinctrl-state.h"
1618

1719
enum pinctrl_map_type {

0 commit comments

Comments
 (0)