Subject: linux-next: build failure after merge of the pinctrl-renesas tree

From: Stephen Rothwell <[email-masked]>
Date: Wed, 20 Apr 2022 14:55:17 +1000

Hi all,

After merging the pinctrl-renesas tree, today's linux-next build (x86_64
allmodconfig) failed like this:

In file included from include/asm-generic/bug.h:22,
                 from arch/x86/include/asm/bug.h:87,
                 from include/linux/bug.h:5,
                 from include/linux/io.h:11,
                 from drivers/pinctrl/renesas/core.c:16:
drivers/pinctrl/renesas/core.c: In function 'sh_pfc_check_info':
include/linux/kern_levels.h:5:25: error: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=]
    5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
      |                         ^~~~~~
include/linux/printk.h:418:25: note: in definition of macro 'printk_index_wrap'
  418 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
      |                         ^~~~
include/linux/printk.h:489:9: note: in expansion of macro 'printk'
  489 |         printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
      |         ^~~~~~
include/linux/kern_levels.h:11:25: note: in expansion of macro 'KERN_SOH'
   11 | #define KERN_ERR        KERN_SOH "3"    /* error conditions */
      |                         ^~~~~~~~
include/linux/printk.h:489:16: note: in expansion of macro 'KERN_ERR'
  489 |         printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
      |                ^~~~~~~~
drivers/pinctrl/renesas/core.c:767:17: note: in expansion of macro 'pr_err'
  767 |                 pr_err("%s: " fmt, drvname, ##__VA_ARGS__);     \
      |                 ^~~~~~
drivers/pinctrl/renesas/core.c:1186:33: note: in expansion of macro 'sh_pfc_err'
 1186 |                                 sh_pfc_err("drive_reg 0x%x:%u/0x%x:%u: pin conflict\n",
      |                                 ^~~~~~~~~~
include/linux/kern_levels.h:5:25: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long unsigned int' [-Werror=format=]
    5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
      |                         ^~~~~~
include/linux/printk.h:418:25: note: in definition of macro 'printk_index_wrap'
  418 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
      |                         ^~~~
include/linux/printk.h:489:9: note: in expansion of macro 'printk'
  489 |         printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
      |         ^~~~~~
include/linux/kern_levels.h:11:25: note: in expansion of macro 'KERN_SOH'
   11 | #define KERN_ERR        KERN_SOH "3"    /* error conditions */
      |                         ^~~~~~~~
include/linux/printk.h:489:16: note: in expansion of macro 'KERN_ERR'
  489 |         printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
      |                ^~~~~~~~
drivers/pinctrl/renesas/core.c:767:17: note: in expansion of macro 'pr_err'
  767 |                 pr_err("%s: " fmt, drvname, ##__VA_ARGS__);     \
      |                 ^~~~~~
drivers/pinctrl/renesas/core.c:1186:33: note: in expansion of macro 'sh_pfc_err'
 1186 |                                 sh_pfc_err("drive_reg 0x%x:%u/0x%x:%u: pin conflict\n",
      |                                 ^~~~~~~~~~
include/linux/kern_levels.h:5:25: error: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=]
    5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
      |                         ^~~~~~
include/linux/printk.h:418:25: note: in definition of macro 'printk_index_wrap'
  418 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
      |                         ^~~~
include/linux/printk.h:489:9: note: in expansion of macro 'printk'
  489 |         printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
      |         ^~~~~~
include/linux/kern_levels.h:11:25: note: in expansion of macro 'KERN_SOH'
   11 | #define KERN_ERR        KERN_SOH "3"    /* error conditions */
      |                         ^~~~~~~~
include/linux/printk.h:489:16: note: in expansion of macro 'KERN_ERR'
  489 |         printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
      |                ^~~~~~~~
drivers/pinctrl/renesas/core.c:767:17: note: in expansion of macro 'pr_err'
  767 |                 pr_err("%s: " fmt, drvname, ##__VA_ARGS__);     \
      |                 ^~~~~~
drivers/pinctrl/renesas/core.c:1206:33: note: in expansion of macro 'sh_pfc_err'
 1206 |                                 sh_pfc_err("bias_reg 0x%x:%u/0x%x:%u: pin conflict\n",
      |                                 ^~~~~~~~~~
include/linux/kern_levels.h:5:25: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long unsigned int' [-Werror=format=]
    5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
      |                         ^~~~~~
include/linux/printk.h:418:25: note: in definition of macro 'printk_index_wrap'
  418 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
      |                         ^~~~
include/linux/printk.h:489:9: note: in expansion of macro 'printk'
  489 |         printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
      |         ^~~~~~
include/linux/kern_levels.h:11:25: note: in expansion of macro 'KERN_SOH'
   11 | #define KERN_ERR        KERN_SOH "3"    /* error conditions */
      |                         ^~~~~~~~
include/linux/printk.h:489:16: note: in expansion of macro 'KERN_ERR'
  489 |         printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
      |                ^~~~~~~~
drivers/pinctrl/renesas/core.c:767:17: note: in expansion of macro 'pr_err'
  767 |                 pr_err("%s: " fmt, drvname, ##__VA_ARGS__);     \
      |                 ^~~~~~
drivers/pinctrl/renesas/core.c:1206:33: note: in expansion of macro 'sh_pfc_err'
 1206 |                                 sh_pfc_err("bias_reg 0x%x:%u/0x%x:%u: pin conflict\n",
      |                                 ^~~~~~~~~~
include/linux/kern_levels.h:5:25: error: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=]
    5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
      |                         ^~~~~~
include/linux/printk.h:418:25: note: in definition of macro 'printk_index_wrap'
  418 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
      |                         ^~~~
include/linux/printk.h:489:9: note: in expansion of macro 'printk'
  489 |         printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
      |         ^~~~~~
include/linux/kern_levels.h:11:25: note: in expansion of macro 'KERN_SOH'
   11 | #define KERN_ERR        KERN_SOH "3"    /* error conditions */
      |                         ^~~~~~~~
include/linux/printk.h:489:16: note: in expansion of macro 'KERN_ERR'
  489 |         printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
      |                ^~~~~~~~
drivers/pinctrl/renesas/core.c:767:17: note: in expansion of macro 'pr_err'
  767 |                 pr_err("%s: " fmt, drvname, ##__VA_ARGS__);     \
      |                 ^~~~~~
drivers/pinctrl/renesas/core.c:1210:33: note: in expansion of macro 'sh_pfc_err'
 1210 |                                 sh_pfc_err("bias_reg 0x%x:%u/0x%x:%u: pin conflict\n",
      |                                 ^~~~~~~~~~
include/linux/kern_levels.h:5:25: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long unsigned int' [-Werror=format=]
    5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
      |                         ^~~~~~
include/linux/printk.h:418:25: note: in definition of macro 'printk_index_wrap'
  418 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
      |                         ^~~~
include/linux/printk.h:489:9: note: in expansion of macro 'printk'
  489 |         printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
      |         ^~~~~~
include/linux/kern_levels.h:11:25: note: in expansion of macro 'KERN_SOH'
   11 | #define KERN_ERR        KERN_SOH "3"    /* error conditions */
      |                         ^~~~~~~~
include/linux/printk.h:489:16: note: in expansion of macro 'KERN_ERR'
  489 |         printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
      |                ^~~~~~~~
drivers/pinctrl/renesas/core.c:767:17: note: in expansion of macro 'pr_err'
  767 |                 pr_err("%s: " fmt, drvname, ##__VA_ARGS__);     \
      |                 ^~~~~~
drivers/pinctrl/renesas/core.c:1210:33: note: in expansion of macro 'sh_pfc_err'
 1210 |                                 sh_pfc_err("bias_reg 0x%x:%u/0x%x:%u: pin conflict\n",
      |                                 ^~~~~~~~~~
cc1: all warnings being treated as errors

Caused by commit

  be1a0d45cdd5 ("pinctrl: renesas: checker: Rework drive and bias pin iteration")

I have used the pinctrl-renesas tree from next-20220419 for today.

-- 
Cheers,
Stephen Rothwell