Skip to content

Commit 48111b7

Browse files
geertulinusw
authored andcommitted
pinctrl: sh-pfc: sh7734: Add missing cfg macro parameter to fix build
When building for SH7734: drivers/pinctrl/sh-pfc/pfc-sh7734.c:586:1: error: macro "_GP_DATA" passed 5 arguments, but takes just 4 drivers/pinctrl/sh-pfc/pfc-sh7734.c:586:2: error: '_GP_DATA' undeclared here (not in a function) drivers/pinctrl/sh-pfc/pfc-sh7734.c:586:1: error: macro "_GP_DATA" passed 5 arguments, but takes just 4 drivers/pinctrl/sh-pfc/pfc-sh7734.c:586:1: error: macro "_GP_DATA" passed 5 arguments, but takes just 4 ... drivers/pinctrl/sh-pfc/pfc-sh7734.c:2389:1: error: macro "_GP_INOUTSEL" passed 5 arguments, but takes just 4 drivers/pinctrl/sh-pfc/pfc-sh7734.c:2389:53: error: '_GP_INOUTSEL' undeclared here (not in a function) drivers/pinctrl/sh-pfc/pfc-sh7734.c:2389:2: warning: initialization makes integer from pointer without a cast [enabled by default] drivers/pinctrl/sh-pfc/pfc-sh7734.c:2389:2: warning: (near initialization for '(anonymous)[0]') [enabled by default] ... drivers/pinctrl/sh-pfc/pfc-sh7734.c:2416:1: error: macro "_GP_INDT" passed 5 arguments, but takes just 4 drivers/pinctrl/sh-pfc/pfc-sh7734.c:2416:47: error: '_GP_INDT' undeclared here (not in a function) drivers/pinctrl/sh-pfc/pfc-sh7734.c:2416:2: warning: initialization makes integer from pointer without a cast [enabled by default] drivers/pinctrl/sh-pfc/pfc-sh7734.c:2416:2: warning: (near initialization for '(anonymous)[0]') [enabled by default] ... Add the missing "cfg" macro parameters to the sh7734-specific _GP_DATA(), _GP_INOUTSEL(), and _GP_INDT() macros to fix this. Fixes: 22768fc ("pinctrl: sh-pfc: Add macros defining GP ports with config flags") Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent f97c230 commit 48111b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/pinctrl/sh-pfc/pfc-sh7734.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
PORT_GP_12(5, fn, sfx)
3232

3333
#undef _GP_DATA
34-
#define _GP_DATA(bank, pin, name, sfx) \
34+
#define _GP_DATA(bank, pin, name, sfx, cfg) \
3535
PINMUX_DATA(name##_DATA, name##_FN, name##_IN, name##_OUT)
3636

37-
#define _GP_INOUTSEL(bank, pin, name, sfx) name##_IN, name##_OUT
38-
#define _GP_INDT(bank, pin, name, sfx) name##_DATA
37+
#define _GP_INOUTSEL(bank, pin, name, sfx, cfg) name##_IN, name##_OUT
38+
#define _GP_INDT(bank, pin, name, sfx, cfg) name##_DATA
3939
#define GP_INOUTSEL(bank) PORT_GP_32_REV(bank, _GP_INOUTSEL, unused)
4040
#define GP_INDT(bank) PORT_GP_32_REV(bank, _GP_INDT, unused)
4141

0 commit comments

Comments
 (0)