All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux Next Mailing List <linux-next@vger.kernel.org>
Subject: linux-next: build failure after merge of the mm tree
Date: Tue, 18 Jul 2023 10:02:57 +1000	[thread overview]
Message-ID: <20230718100257.1ed9290e@canb.auug.org.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 33424 bytes --]

Hi all,

After merging the mm tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:

In file included from include/linux/arm-smccc.h:8,
                 from arch/arm/mm/proc-v7-bugs.c:2:
arch/arm/mm/proc-v7-bugs.c: In function 'spectre_v2_get_cpu_fw_mitigation_state':
include/linux/arm-smccc.h:485:29: error: '__declare_arg_3' undeclared (first use in this function)
  485 |                 CONCATENATE(__declare_arg_, COUNT_ARGS(__VA_ARGS__));   \
      |                             ^~~~~~~~~~~~~~
include/linux/args.h:25:24: note: in definition of macro '__CONCAT'
   25 | #define __CONCAT(a, b) a ## b
      |                        ^
include/linux/arm-smccc.h:485:17: note: in expansion of macro 'CONCATENATE'
  485 |                 CONCATENATE(__declare_arg_, COUNT_ARGS(__VA_ARGS__));   \
      |                 ^~~~~~~~~~~
include/linux/arm-smccc.h:526:33: note: in expansion of macro '__arm_smccc_1_1'
  526 | #define arm_smccc_1_1_hvc(...)  __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
include/linux/arm-smccc.h:563:25: note: in expansion of macro 'arm_smccc_1_1_hvc'
  563 |                         arm_smccc_1_1_hvc(__VA_ARGS__);                 \
      |                         ^~~~~~~~~~~~~~~~~
arch/arm/mm/proc-v7-bugs.c:17:9: note: in expansion of macro 'arm_smccc_1_1_invoke'
   17 |         arm_smccc_1_1_invoke(ARM_SMCCC_ARCH_FEATURES_FUNC_ID,
      |         ^~~~~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:485:29: note: each undeclared identifier is reported only once for each function it appears in
  485 |                 CONCATENATE(__declare_arg_, COUNT_ARGS(__VA_ARGS__));   \
      |                             ^~~~~~~~~~~~~~
include/linux/args.h:25:24: note: in definition of macro '__CONCAT'
   25 | #define __CONCAT(a, b) a ## b
      |                        ^
include/linux/arm-smccc.h:485:17: note: in expansion of macro 'CONCATENATE'
  485 |                 CONCATENATE(__declare_arg_, COUNT_ARGS(__VA_ARGS__));   \
      |                 ^~~~~~~~~~~
include/linux/arm-smccc.h:526:33: note: in expansion of macro '__arm_smccc_1_1'
  526 | #define arm_smccc_1_1_hvc(...)  __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
include/linux/arm-smccc.h:563:25: note: in expansion of macro 'arm_smccc_1_1_hvc'
  563 |                         arm_smccc_1_1_hvc(__VA_ARGS__);                 \
      |                         ^~~~~~~~~~~~~~~~~
arch/arm/mm/proc-v7-bugs.c:17:9: note: in expansion of macro 'arm_smccc_1_1_invoke'
   17 |         arm_smccc_1_1_invoke(ARM_SMCCC_ARCH_FEATURES_FUNC_ID,
      |         ^~~~~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:417:38: error: 'arg0' undeclared (first use in this function); did you mean 'r0'?
  417 | #define __constraint_read_0     "r" (arg0)
      |                                      ^~~~
include/linux/arm-smccc.h:418:33: note: in expansion of macro '__constraint_read_0'
  418 | #define __constraint_read_1     __constraint_read_0, "r" (arg1)
      |                                 ^~~~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:419:33: note: in expansion of macro '__constraint_read_1'
  419 | #define __constraint_read_2     __constraint_read_1, "r" (arg2)
      |                                 ^~~~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:420:33: note: in expansion of macro '__constraint_read_2'
  420 | #define __constraint_read_3     __constraint_read_2, "r" (arg3)
      |                                 ^~~~~~~~~~~~~~~~~~~
include/linux/args.h:25:24: note: in expansion of macro '__constraint_read_3'
   25 | #define __CONCAT(a, b) a ## b
      |                        ^
include/linux/args.h:26:27: note: in expansion of macro '__CONCAT'
   26 | #define CONCATENATE(a, b) __CONCAT(a, b)
      |                           ^~~~~~~~
include/linux/arm-smccc.h:489:32: note: in expansion of macro 'CONCATENATE'
  489 |                              : CONCATENATE(__constraint_read_,          \
      |                                ^~~~~~~~~~~
include/linux/arm-smccc.h:526:33: note: in expansion of macro '__arm_smccc_1_1'
  526 | #define arm_smccc_1_1_hvc(...)  __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
include/linux/arm-smccc.h:563:25: note: in expansion of macro 'arm_smccc_1_1_hvc'
  563 |                         arm_smccc_1_1_hvc(__VA_ARGS__);                 \
      |                         ^~~~~~~~~~~~~~~~~
arch/arm/mm/proc-v7-bugs.c:17:9: note: in expansion of macro 'arm_smccc_1_1_invoke'
   17 |         arm_smccc_1_1_invoke(ARM_SMCCC_ARCH_FEATURES_FUNC_ID,
      |         ^~~~~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:418:59: error: 'arg1' undeclared (first use in this function); did you mean 'r1'?
  418 | #define __constraint_read_1     __constraint_read_0, "r" (arg1)
      |                                                           ^~~~
include/linux/arm-smccc.h:419:33: note: in expansion of macro '__constraint_read_1'
  419 | #define __constraint_read_2     __constraint_read_1, "r" (arg2)
      |                                 ^~~~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:420:33: note: in expansion of macro '__constraint_read_2'
  420 | #define __constraint_read_3     __constraint_read_2, "r" (arg3)
      |                                 ^~~~~~~~~~~~~~~~~~~
include/linux/args.h:25:24: note: in expansion of macro '__constraint_read_3'
   25 | #define __CONCAT(a, b) a ## b
      |                        ^
include/linux/args.h:26:27: note: in expansion of macro '__CONCAT'
   26 | #define CONCATENATE(a, b) __CONCAT(a, b)
      |                           ^~~~~~~~
include/linux/arm-smccc.h:489:32: note: in expansion of macro 'CONCATENATE'
  489 |                              : CONCATENATE(__constraint_read_,          \
      |                                ^~~~~~~~~~~
include/linux/arm-smccc.h:526:33: note: in expansion of macro '__arm_smccc_1_1'
  526 | #define arm_smccc_1_1_hvc(...)  __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
include/linux/arm-smccc.h:563:25: note: in expansion of macro 'arm_smccc_1_1_hvc'
  563 |                         arm_smccc_1_1_hvc(__VA_ARGS__);                 \
      |                         ^~~~~~~~~~~~~~~~~
arch/arm/mm/proc-v7-bugs.c:17:9: note: in expansion of macro 'arm_smccc_1_1_invoke'
   17 |         arm_smccc_1_1_invoke(ARM_SMCCC_ARCH_FEATURES_FUNC_ID,
      |         ^~~~~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:419:59: error: 'arg2' undeclared (first use in this function); did you mean 'r2'?
  419 | #define __constraint_read_2     __constraint_read_1, "r" (arg2)
      |                                                           ^~~~
include/linux/arm-smccc.h:420:33: note: in expansion of macro '__constraint_read_2'
  420 | #define __constraint_read_3     __constraint_read_2, "r" (arg3)
      |                                 ^~~~~~~~~~~~~~~~~~~
include/linux/args.h:25:24: note: in expansion of macro '__constraint_read_3'
   25 | #define __CONCAT(a, b) a ## b
      |                        ^
include/linux/args.h:26:27: note: in expansion of macro '__CONCAT'
   26 | #define CONCATENATE(a, b) __CONCAT(a, b)
      |                           ^~~~~~~~
include/linux/arm-smccc.h:489:32: note: in expansion of macro 'CONCATENATE'
  489 |                              : CONCATENATE(__constraint_read_,          \
      |                                ^~~~~~~~~~~
include/linux/arm-smccc.h:526:33: note: in expansion of macro '__arm_smccc_1_1'
  526 | #define arm_smccc_1_1_hvc(...)  __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
include/linux/arm-smccc.h:563:25: note: in expansion of macro 'arm_smccc_1_1_hvc'
  563 |                         arm_smccc_1_1_hvc(__VA_ARGS__);                 \
      |                         ^~~~~~~~~~~~~~~~~
arch/arm/mm/proc-v7-bugs.c:17:9: note: in expansion of macro 'arm_smccc_1_1_invoke'
   17 |         arm_smccc_1_1_invoke(ARM_SMCCC_ARCH_FEATURES_FUNC_ID,
      |         ^~~~~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:420:59: error: 'arg3' undeclared (first use in this function); did you mean 'r3'?
  420 | #define __constraint_read_3     __constraint_read_2, "r" (arg3)
      |                                                           ^~~~
include/linux/args.h:25:24: note: in expansion of macro '__constraint_read_3'
   25 | #define __CONCAT(a, b) a ## b
      |                        ^
include/linux/args.h:26:27: note: in expansion of macro '__CONCAT'
   26 | #define CONCATENATE(a, b) __CONCAT(a, b)
      |                           ^~~~~~~~
include/linux/arm-smccc.h:489:32: note: in expansion of macro 'CONCATENATE'
  489 |                              : CONCATENATE(__constraint_read_,          \
      |                                ^~~~~~~~~~~
include/linux/arm-smccc.h:526:33: note: in expansion of macro '__arm_smccc_1_1'
  526 | #define arm_smccc_1_1_hvc(...)  __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
include/linux/arm-smccc.h:563:25: note: in expansion of macro 'arm_smccc_1_1_hvc'
  563 |                         arm_smccc_1_1_hvc(__VA_ARGS__);                 \
      |                         ^~~~~~~~~~~~~~~~~
arch/arm/mm/proc-v7-bugs.c:17:9: note: in expansion of macro 'arm_smccc_1_1_invoke'
   17 |         arm_smccc_1_1_invoke(ARM_SMCCC_ARCH_FEATURES_FUNC_ID,
      |         ^~~~~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:492:21: error: '___res' undeclared (first use in this function)
  492 |                 if (___res)                                             \
      |                     ^~~~~~
include/linux/arm-smccc.h:526:33: note: in expansion of macro '__arm_smccc_1_1'
  526 | #define arm_smccc_1_1_hvc(...)  __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
include/linux/arm-smccc.h:563:25: note: in expansion of macro 'arm_smccc_1_1_hvc'
  563 |                         arm_smccc_1_1_hvc(__VA_ARGS__);                 \
      |                         ^~~~~~~~~~~~~~~~~
arch/arm/mm/proc-v7-bugs.c:17:9: note: in expansion of macro 'arm_smccc_1_1_invoke'
   17 |         arm_smccc_1_1_invoke(ARM_SMCCC_ARCH_FEATURES_FUNC_ID,
      |         ^~~~~~~~~~~~~~~~~~~~
arch/arm/mm/proc-v7-bugs.c: In function 'call_smc_arch_workaround_1':
include/linux/arm-smccc.h:485:29: error: '__declare_arg_2' undeclared (first use in this function)
  485 |                 CONCATENATE(__declare_arg_, COUNT_ARGS(__VA_ARGS__));   \
      |                             ^~~~~~~~~~~~~~
include/linux/args.h:25:24: note: in definition of macro '__CONCAT'
   25 | #define __CONCAT(a, b) a ## b
      |                        ^
include/linux/arm-smccc.h:485:17: note: in expansion of macro 'CONCATENATE'
  485 |                 CONCATENATE(__declare_arg_, COUNT_ARGS(__VA_ARGS__));   \
      |                 ^~~~~~~~~~~
include/linux/arm-smccc.h:510:33: note: in expansion of macro '__arm_smccc_1_1'
  510 | #define arm_smccc_1_1_smc(...)  __arm_smccc_1_1(SMCCC_SMC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
arch/arm/mm/proc-v7-bugs.c:58:9: note: in expansion of macro 'arm_smccc_1_1_smc'
   58 |         arm_smccc_1_1_smc(ARM_SMCCC_ARCH_WORKAROUND_1, NULL);
      |         ^~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:417:38: error: 'arg0' undeclared (first use in this function); did you mean 'r0'?
  417 | #define __constraint_read_0     "r" (arg0)
      |                                      ^~~~
include/linux/arm-smccc.h:418:33: note: in expansion of macro '__constraint_read_0'
  418 | #define __constraint_read_1     __constraint_read_0, "r" (arg1)
      |                                 ^~~~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:419:33: note: in expansion of macro '__constraint_read_1'
  419 | #define __constraint_read_2     __constraint_read_1, "r" (arg2)
      |                                 ^~~~~~~~~~~~~~~~~~~
include/linux/args.h:25:24: note: in expansion of macro '__constraint_read_2'
   25 | #define __CONCAT(a, b) a ## b
      |                        ^
include/linux/args.h:26:27: note: in expansion of macro '__CONCAT'
   26 | #define CONCATENATE(a, b) __CONCAT(a, b)
      |                           ^~~~~~~~
include/linux/arm-smccc.h:489:32: note: in expansion of macro 'CONCATENATE'
  489 |                              : CONCATENATE(__constraint_read_,          \
      |                                ^~~~~~~~~~~
include/linux/arm-smccc.h:510:33: note: in expansion of macro '__arm_smccc_1_1'
  510 | #define arm_smccc_1_1_smc(...)  __arm_smccc_1_1(SMCCC_SMC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
arch/arm/mm/proc-v7-bugs.c:58:9: note: in expansion of macro 'arm_smccc_1_1_smc'
   58 |         arm_smccc_1_1_smc(ARM_SMCCC_ARCH_WORKAROUND_1, NULL);
      |         ^~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:418:59: error: 'arg1' undeclared (first use in this function); did you mean 'r1'?
  418 | #define __constraint_read_1     __constraint_read_0, "r" (arg1)
      |                                                           ^~~~
include/linux/arm-smccc.h:419:33: note: in expansion of macro '__constraint_read_1'
  419 | #define __constraint_read_2     __constraint_read_1, "r" (arg2)
      |                                 ^~~~~~~~~~~~~~~~~~~
include/linux/args.h:25:24: note: in expansion of macro '__constraint_read_2'
   25 | #define __CONCAT(a, b) a ## b
      |                        ^
include/linux/args.h:26:27: note: in expansion of macro '__CONCAT'
   26 | #define CONCATENATE(a, b) __CONCAT(a, b)
      |                           ^~~~~~~~
include/linux/arm-smccc.h:489:32: note: in expansion of macro 'CONCATENATE'
  489 |                              : CONCATENATE(__constraint_read_,          \
      |                                ^~~~~~~~~~~
include/linux/arm-smccc.h:510:33: note: in expansion of macro '__arm_smccc_1_1'
  510 | #define arm_smccc_1_1_smc(...)  __arm_smccc_1_1(SMCCC_SMC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
arch/arm/mm/proc-v7-bugs.c:58:9: note: in expansion of macro 'arm_smccc_1_1_smc'
   58 |         arm_smccc_1_1_smc(ARM_SMCCC_ARCH_WORKAROUND_1, NULL);
      |         ^~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:419:59: error: 'arg2' undeclared (first use in this function); did you mean 'r2'?
  419 | #define __constraint_read_2     __constraint_read_1, "r" (arg2)
      |                                                           ^~~~
include/linux/args.h:25:24: note: in expansion of macro '__constraint_read_2'
   25 | #define __CONCAT(a, b) a ## b
      |                        ^
include/linux/args.h:26:27: note: in expansion of macro '__CONCAT'
   26 | #define CONCATENATE(a, b) __CONCAT(a, b)
      |                           ^~~~~~~~
include/linux/arm-smccc.h:489:32: note: in expansion of macro 'CONCATENATE'
  489 |                              : CONCATENATE(__constraint_read_,          \
      |                                ^~~~~~~~~~~
include/linux/arm-smccc.h:510:33: note: in expansion of macro '__arm_smccc_1_1'
  510 | #define arm_smccc_1_1_smc(...)  __arm_smccc_1_1(SMCCC_SMC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
arch/arm/mm/proc-v7-bugs.c:58:9: note: in expansion of macro 'arm_smccc_1_1_smc'
   58 |         arm_smccc_1_1_smc(ARM_SMCCC_ARCH_WORKAROUND_1, NULL);
      |         ^~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:492:21: error: '___res' undeclared (first use in this function)
  492 |                 if (___res)                                             \
      |                     ^~~~~~
include/linux/arm-smccc.h:510:33: note: in expansion of macro '__arm_smccc_1_1'
  510 | #define arm_smccc_1_1_smc(...)  __arm_smccc_1_1(SMCCC_SMC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
arch/arm/mm/proc-v7-bugs.c:58:9: note: in expansion of macro 'arm_smccc_1_1_smc'
   58 |         arm_smccc_1_1_smc(ARM_SMCCC_ARCH_WORKAROUND_1, NULL);
      |         ^~~~~~~~~~~~~~~~~
arch/arm/mm/proc-v7-bugs.c: In function 'call_hvc_arch_workaround_1':
include/linux/arm-smccc.h:485:29: error: '__declare_arg_2' undeclared (first use in this function)
  485 |                 CONCATENATE(__declare_arg_, COUNT_ARGS(__VA_ARGS__));   \
      |                             ^~~~~~~~~~~~~~
include/linux/args.h:25:24: note: in definition of macro '__CONCAT'
   25 | #define __CONCAT(a, b) a ## b
      |                        ^
include/linux/arm-smccc.h:485:17: note: in expansion of macro 'CONCATENATE'
  485 |                 CONCATENATE(__declare_arg_, COUNT_ARGS(__VA_ARGS__));   \
      |                 ^~~~~~~~~~~
include/linux/arm-smccc.h:526:33: note: in expansion of macro '__arm_smccc_1_1'
  526 | #define arm_smccc_1_1_hvc(...)  __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
arch/arm/mm/proc-v7-bugs.c:63:9: note: in expansion of macro 'arm_smccc_1_1_hvc'
   63 |         arm_smccc_1_1_hvc(ARM_SMCCC_ARCH_WORKAROUND_1, NULL);
      |         ^~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:417:38: error: 'arg0' undeclared (first use in this function); did you mean 'r0'?
  417 | #define __constraint_read_0     "r" (arg0)
      |                                      ^~~~
include/linux/arm-smccc.h:418:33: note: in expansion of macro '__constraint_read_0'
  418 | #define __constraint_read_1     __constraint_read_0, "r" (arg1)
      |                                 ^~~~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:419:33: note: in expansion of macro '__constraint_read_1'
  419 | #define __constraint_read_2     __constraint_read_1, "r" (arg2)
      |                                 ^~~~~~~~~~~~~~~~~~~
include/linux/args.h:25:24: note: in expansion of macro '__constraint_read_2'
   25 | #define __CONCAT(a, b) a ## b
      |                        ^
include/linux/args.h:26:27: note: in expansion of macro '__CONCAT'
   26 | #define CONCATENATE(a, b) __CONCAT(a, b)
      |                           ^~~~~~~~
include/linux/arm-smccc.h:489:32: note: in expansion of macro 'CONCATENATE'
  489 |                              : CONCATENATE(__constraint_read_,          \
      |                                ^~~~~~~~~~~
include/linux/arm-smccc.h:526:33: note: in expansion of macro '__arm_smccc_1_1'
  526 | #define arm_smccc_1_1_hvc(...)  __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
arch/arm/mm/proc-v7-bugs.c:63:9: note: in expansion of macro 'arm_smccc_1_1_hvc'
   63 |         arm_smccc_1_1_hvc(ARM_SMCCC_ARCH_WORKAROUND_1, NULL);
      |         ^~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:418:59: error: 'arg1' undeclared (first use in this function); did you mean 'r1'?
  418 | #define __constraint_read_1     __constraint_read_0, "r" (arg1)
      |                                                           ^~~~
include/linux/arm-smccc.h:419:33: note: in expansion of macro '__constraint_read_1'
  419 | #define __constraint_read_2     __constraint_read_1, "r" (arg2)
      |                                 ^~~~~~~~~~~~~~~~~~~
include/linux/args.h:25:24: note: in expansion of macro '__constraint_read_2'
   25 | #define __CONCAT(a, b) a ## b
      |                        ^
include/linux/args.h:26:27: note: in expansion of macro '__CONCAT'
   26 | #define CONCATENATE(a, b) __CONCAT(a, b)
      |                           ^~~~~~~~
include/linux/arm-smccc.h:489:32: note: in expansion of macro 'CONCATENATE'
  489 |                              : CONCATENATE(__constraint_read_,          \
      |                                ^~~~~~~~~~~
include/linux/arm-smccc.h:526:33: note: in expansion of macro '__arm_smccc_1_1'
  526 | #define arm_smccc_1_1_hvc(...)  __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
arch/arm/mm/proc-v7-bugs.c:63:9: note: in expansion of macro 'arm_smccc_1_1_hvc'
   63 |         arm_smccc_1_1_hvc(ARM_SMCCC_ARCH_WORKAROUND_1, NULL);
      |         ^~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:419:59: error: 'arg2' undeclared (first use in this function); did you mean 'r2'?
  419 | #define __constraint_read_2     __constraint_read_1, "r" (arg2)
      |                                                           ^~~~
include/linux/args.h:25:24: note: in expansion of macro '__constraint_read_2'
   25 | #define __CONCAT(a, b) a ## b
      |                        ^
include/linux/args.h:26:27: note: in expansion of macro '__CONCAT'
   26 | #define CONCATENATE(a, b) __CONCAT(a, b)
      |                           ^~~~~~~~
include/linux/arm-smccc.h:489:32: note: in expansion of macro 'CONCATENATE'
  489 |                              : CONCATENATE(__constraint_read_,          \
      |                                ^~~~~~~~~~~
include/linux/arm-smccc.h:526:33: note: in expansion of macro '__arm_smccc_1_1'
  526 | #define arm_smccc_1_1_hvc(...)  __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
arch/arm/mm/proc-v7-bugs.c:63:9: note: in expansion of macro 'arm_smccc_1_1_hvc'
   63 |         arm_smccc_1_1_hvc(ARM_SMCCC_ARCH_WORKAROUND_1, NULL);
      |         ^~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:492:21: error: '___res' undeclared (first use in this function)
  492 |                 if (___res)                                             \
      |                     ^~~~~~
include/linux/arm-smccc.h:526:33: note: in expansion of macro '__arm_smccc_1_1'
  526 | #define arm_smccc_1_1_hvc(...)  __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
arch/arm/mm/proc-v7-bugs.c:63:9: note: in expansion of macro 'arm_smccc_1_1_hvc'
   63 |         arm_smccc_1_1_hvc(ARM_SMCCC_ARCH_WORKAROUND_1, NULL);
      |         ^~~~~~~~~~~~~~~~~
make[5]: *** [scripts/Makefile.build:243: arch/arm/mm/proc-v7-bugs.o] Error 1
make[4]: *** [scripts/Makefile.build:477: arch/arm/mm] Error 2
make[3]: *** [scripts/Makefile.build:477: arch/arm] Error 2
make[3]: *** Waiting for unfinished jobs....
In file included from include/linux/arm-smccc.h:8,
                 from drivers/char/hw_random/arm_smccc_trng.c:20:
drivers/char/hw_random/arm_smccc_trng.c: In function 'smccc_trng_read':
include/linux/arm-smccc.h:485:29: error: '__declare_arg_3' undeclared (first use in this function)
  485 |                 CONCATENATE(__declare_arg_, COUNT_ARGS(__VA_ARGS__));   \
      |                             ^~~~~~~~~~~~~~
include/linux/args.h:25:24: note: in definition of macro '__CONCAT'
   25 | #define __CONCAT(a, b) a ## b
      |                        ^
include/linux/arm-smccc.h:485:17: note: in expansion of macro 'CONCATENATE'
  485 |                 CONCATENATE(__declare_arg_, COUNT_ARGS(__VA_ARGS__));   \
      |                 ^~~~~~~~~~~
include/linux/arm-smccc.h:526:33: note: in expansion of macro '__arm_smccc_1_1'
  526 | #define arm_smccc_1_1_hvc(...)  __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
include/linux/arm-smccc.h:563:25: note: in expansion of macro 'arm_smccc_1_1_hvc'
  563 |                         arm_smccc_1_1_hvc(__VA_ARGS__);                 \
      |                         ^~~~~~~~~~~~~~~~~
drivers/char/hw_random/arm_smccc_trng.c:73:17: note: in expansion of macro 'arm_smccc_1_1_invoke'
   73 |                 arm_smccc_1_1_invoke(ARM_SMCCC_TRNG_RND, bits, &res);
      |                 ^~~~~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:485:29: note: each undeclared identifier is reported only once for each function it appears in
  485 |                 CONCATENATE(__declare_arg_, COUNT_ARGS(__VA_ARGS__));   \
      |                             ^~~~~~~~~~~~~~
include/linux/args.h:25:24: note: in definition of macro '__CONCAT'
   25 | #define __CONCAT(a, b) a ## b
      |                        ^
include/linux/arm-smccc.h:485:17: note: in expansion of macro 'CONCATENATE'
  485 |                 CONCATENATE(__declare_arg_, COUNT_ARGS(__VA_ARGS__));   \
      |                 ^~~~~~~~~~~
include/linux/arm-smccc.h:526:33: note: in expansion of macro '__arm_smccc_1_1'
  526 | #define arm_smccc_1_1_hvc(...)  __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
include/linux/arm-smccc.h:563:25: note: in expansion of macro 'arm_smccc_1_1_hvc'
  563 |                         arm_smccc_1_1_hvc(__VA_ARGS__);                 \
      |                         ^~~~~~~~~~~~~~~~~
drivers/char/hw_random/arm_smccc_trng.c:73:17: note: in expansion of macro 'arm_smccc_1_1_invoke'
   73 |                 arm_smccc_1_1_invoke(ARM_SMCCC_TRNG_RND, bits, &res);
      |                 ^~~~~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:417:38: error: 'arg0' undeclared (first use in this function); did you mean 'r0'?
  417 | #define __constraint_read_0     "r" (arg0)
      |                                      ^~~~
include/linux/arm-smccc.h:418:33: note: in expansion of macro '__constraint_read_0'
  418 | #define __constraint_read_1     __constraint_read_0, "r" (arg1)
      |                                 ^~~~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:419:33: note: in expansion of macro '__constraint_read_1'
  419 | #define __constraint_read_2     __constraint_read_1, "r" (arg2)
      |                                 ^~~~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:420:33: note: in expansion of macro '__constraint_read_2'
  420 | #define __constraint_read_3     __constraint_read_2, "r" (arg3)
      |                                 ^~~~~~~~~~~~~~~~~~~
include/linux/args.h:25:24: note: in expansion of macro '__constraint_read_3'
   25 | #define __CONCAT(a, b) a ## b
      |                        ^
include/linux/args.h:26:27: note: in expansion of macro '__CONCAT'
   26 | #define CONCATENATE(a, b) __CONCAT(a, b)
      |                           ^~~~~~~~
include/linux/arm-smccc.h:489:32: note: in expansion of macro 'CONCATENATE'
  489 |                              : CONCATENATE(__constraint_read_,          \
      |                                ^~~~~~~~~~~
include/linux/arm-smccc.h:526:33: note: in expansion of macro '__arm_smccc_1_1'
  526 | #define arm_smccc_1_1_hvc(...)  __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
include/linux/arm-smccc.h:563:25: note: in expansion of macro 'arm_smccc_1_1_hvc'
  563 |                         arm_smccc_1_1_hvc(__VA_ARGS__);                 \
      |                         ^~~~~~~~~~~~~~~~~
drivers/char/hw_random/arm_smccc_trng.c:73:17: note: in expansion of macro 'arm_smccc_1_1_invoke'
   73 |                 arm_smccc_1_1_invoke(ARM_SMCCC_TRNG_RND, bits, &res);
      |                 ^~~~~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:418:59: error: 'arg1' undeclared (first use in this function); did you mean 'r1'?
  418 | #define __constraint_read_1     __constraint_read_0, "r" (arg1)
      |                                                           ^~~~
include/linux/arm-smccc.h:419:33: note: in expansion of macro '__constraint_read_1'
  419 | #define __constraint_read_2     __constraint_read_1, "r" (arg2)
      |                                 ^~~~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:420:33: note: in expansion of macro '__constraint_read_2'
  420 | #define __constraint_read_3     __constraint_read_2, "r" (arg3)
      |                                 ^~~~~~~~~~~~~~~~~~~
include/linux/args.h:25:24: note: in expansion of macro '__constraint_read_3'
   25 | #define __CONCAT(a, b) a ## b
      |                        ^
include/linux/args.h:26:27: note: in expansion of macro '__CONCAT'
   26 | #define CONCATENATE(a, b) __CONCAT(a, b)
      |                           ^~~~~~~~
include/linux/arm-smccc.h:489:32: note: in expansion of macro 'CONCATENATE'
  489 |                              : CONCATENATE(__constraint_read_,          \
      |                                ^~~~~~~~~~~
include/linux/arm-smccc.h:526:33: note: in expansion of macro '__arm_smccc_1_1'
  526 | #define arm_smccc_1_1_hvc(...)  __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
include/linux/arm-smccc.h:563:25: note: in expansion of macro 'arm_smccc_1_1_hvc'
  563 |                         arm_smccc_1_1_hvc(__VA_ARGS__);                 \
      |                         ^~~~~~~~~~~~~~~~~
drivers/char/hw_random/arm_smccc_trng.c:73:17: note: in expansion of macro 'arm_smccc_1_1_invoke'
   73 |                 arm_smccc_1_1_invoke(ARM_SMCCC_TRNG_RND, bits, &res);
      |                 ^~~~~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:419:59: error: 'arg2' undeclared (first use in this function); did you mean 'r2'?
  419 | #define __constraint_read_2     __constraint_read_1, "r" (arg2)
      |                                                           ^~~~
include/linux/arm-smccc.h:420:33: note: in expansion of macro '__constraint_read_2'
  420 | #define __constraint_read_3     __constraint_read_2, "r" (arg3)
      |                                 ^~~~~~~~~~~~~~~~~~~
include/linux/args.h:25:24: note: in expansion of macro '__constraint_read_3'
   25 | #define __CONCAT(a, b) a ## b
      |                        ^
include/linux/args.h:26:27: note: in expansion of macro '__CONCAT'
   26 | #define CONCATENATE(a, b) __CONCAT(a, b)
      |                           ^~~~~~~~
include/linux/arm-smccc.h:489:32: note: in expansion of macro 'CONCATENATE'
  489 |                              : CONCATENATE(__constraint_read_,          \
      |                                ^~~~~~~~~~~
include/linux/arm-smccc.h:526:33: note: in expansion of macro '__arm_smccc_1_1'
  526 | #define arm_smccc_1_1_hvc(...)  __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
include/linux/arm-smccc.h:563:25: note: in expansion of macro 'arm_smccc_1_1_hvc'
  563 |                         arm_smccc_1_1_hvc(__VA_ARGS__);                 \
      |                         ^~~~~~~~~~~~~~~~~
drivers/char/hw_random/arm_smccc_trng.c:73:17: note: in expansion of macro 'arm_smccc_1_1_invoke'
   73 |                 arm_smccc_1_1_invoke(ARM_SMCCC_TRNG_RND, bits, &res);
      |                 ^~~~~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:420:59: error: 'arg3' undeclared (first use in this function); did you mean 'r3'?
  420 | #define __constraint_read_3     __constraint_read_2, "r" (arg3)
      |                                                           ^~~~
include/linux/args.h:25:24: note: in expansion of macro '__constraint_read_3'
   25 | #define __CONCAT(a, b) a ## b
      |                        ^
include/linux/args.h:26:27: note: in expansion of macro '__CONCAT'
   26 | #define CONCATENATE(a, b) __CONCAT(a, b)
      |                           ^~~~~~~~
include/linux/arm-smccc.h:489:32: note: in expansion of macro 'CONCATENATE'
  489 |                              : CONCATENATE(__constraint_read_,          \
      |                                ^~~~~~~~~~~
include/linux/arm-smccc.h:526:33: note: in expansion of macro '__arm_smccc_1_1'
  526 | #define arm_smccc_1_1_hvc(...)  __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
include/linux/arm-smccc.h:563:25: note: in expansion of macro 'arm_smccc_1_1_hvc'
  563 |                         arm_smccc_1_1_hvc(__VA_ARGS__);                 \
      |                         ^~~~~~~~~~~~~~~~~
drivers/char/hw_random/arm_smccc_trng.c:73:17: note: in expansion of macro 'arm_smccc_1_1_invoke'
   73 |                 arm_smccc_1_1_invoke(ARM_SMCCC_TRNG_RND, bits, &res);
      |                 ^~~~~~~~~~~~~~~~~~~~
include/linux/arm-smccc.h:492:21: error: '___res' undeclared (first use in this function)
  492 |                 if (___res)                                             \
      |                     ^~~~~~
include/linux/arm-smccc.h:526:33: note: in expansion of macro '__arm_smccc_1_1'
  526 | #define arm_smccc_1_1_hvc(...)  __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~
include/linux/arm-smccc.h:563:25: note: in expansion of macro 'arm_smccc_1_1_hvc'
  563 |                         arm_smccc_1_1_hvc(__VA_ARGS__);                 \
      |                         ^~~~~~~~~~~~~~~~~
drivers/char/hw_random/arm_smccc_trng.c:73:17: note: in expansion of macro 'arm_smccc_1_1_invoke'
   73 |                 arm_smccc_1_1_invoke(ARM_SMCCC_TRNG_RND, bits, &res);
      |                 ^~~~~~~~~~~~~~~~~~~~

Presumably caused by commits

  93e9856955f8 ("kernel.h: split out COUNT_ARGS() and CONCATENATE() to args.h")
  fceebffabbb6 ("arm64: smccc: replace custom COUNT_ARGS() & CONCATENATE() implementations")

I have used the mm tree from next-20230717 for today.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

             reply	other threads:[~2023-07-18  0:03 UTC|newest]

Thread overview: 156+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-18  0:02 Stephen Rothwell [this message]
2023-07-18 13:43 ` linux-next: build failure after merge of the mm tree Andy Shevchenko
2023-07-18 17:34   ` Andrew Morton
2023-07-18 21:07     ` Andy Shevchenko
  -- strict thread matches above, loose matches on Subject: below --
2024-04-30  0:38 Stephen Rothwell
2024-04-30  2:23 ` Lance Yang
2024-04-23  0:22 Stephen Rothwell
2024-04-12  6:39 Stephen Rothwell
2024-04-11 23:14 Stephen Rothwell
2024-04-07 23:15 Stephen Rothwell
2024-04-08  1:44 ` Barry Song
2024-04-05  2:55 Stephen Rothwell
2024-03-28  4:34 Stephen Rothwell
2024-03-05  4:26 Stephen Rothwell
2024-03-05  6:39 ` Qi Zheng
2024-02-14  3:57 Stephen Rothwell
2024-02-14 15:19 ` Andrew Morton
2024-02-15  3:47   ` Stephen Rothwell
2024-02-07  6:17 Stephen Rothwell
2024-02-01  2:57 Stephen Rothwell
2024-02-01  8:35 ` Marco Elver
2024-01-25  3:29 Stephen Rothwell
2024-01-25 14:29 ` Baoquan He
2024-01-25 18:03   ` Stephen Rothwell
2024-01-24 23:23 Stephen Rothwell
2024-01-24 23:52 ` Suren Baghdasaryan
2024-01-25  2:40   ` Baoquan He
2024-01-23 23:05 Stephen Rothwell
2024-01-23 23:14 ` Suren Baghdasaryan
2023-12-21  7:38 Stephen Rothwell
2023-12-21  7:45 ` Changbin Du
2023-11-28 21:45 Stephen Rothwell
2023-11-28 22:45 ` Andrew Morton
2023-11-29  8:17   ` Dmitry Rokosov
2023-11-30 22:12     ` Stephen Rothwell
2023-11-27  3:44 Stephen Rothwell
2023-12-22  0:16 ` Stephen Rothwell
2023-12-22  6:26   ` Andrew Morton
2023-11-27  2:28 Stephen Rothwell
2023-11-27  3:48 ` Stephen Rothwell
2023-11-27  3:48   ` Stephen Rothwell
2023-11-30 22:04   ` Stephen Rothwell
2023-11-30 22:04     ` Stephen Rothwell
2023-11-30 22:32     ` Andrew Morton
2023-11-30 22:32       ` Andrew Morton
2023-11-30 22:39     ` Michael Ellerman
2023-11-30 22:39       ` Michael Ellerman
2023-11-30 22:52       ` Andrew Morton
2023-11-30 22:52         ` Andrew Morton
2023-12-01  3:12         ` Michael Ellerman
2023-12-01  3:12           ` Michael Ellerman
2023-12-07 12:38 ` Michael Ellerman
2023-10-03 22:50 Stephen Rothwell
2023-09-27 23:22 Stephen Rothwell
2023-09-28  6:47 ` Arnd Bergmann
2023-09-25 23:18 Stephen Rothwell
2023-08-22 22:52 Stephen Rothwell
2023-08-21 23:55 Stephen Rothwell
2023-08-22  1:11 ` Matthew Wilcox
2023-08-22  1:11   ` Matthew Wilcox
2023-08-22  1:22   ` Stephen Rothwell
2023-08-22  1:22     ` Stephen Rothwell
2023-08-22  1:34     ` Matthew Wilcox
2023-08-22  1:34       ` Matthew Wilcox
2023-08-22  4:00       ` Darrick J. Wong
2023-08-22  4:00         ` Darrick J. Wong
2023-08-22 20:20         ` Matthew Wilcox
2023-08-22 20:20           ` Matthew Wilcox
2023-08-22  7:12   ` Michael Ellerman
2023-08-22  7:12     ` Michael Ellerman
2023-08-08  4:40 Stephen Rothwell
2023-08-08 15:20 ` Eric DeVolder
2023-08-11 17:16 ` Eric DeVolder
2023-07-26  5:14 Stephen Rothwell
2023-07-26 13:22 ` Kuan-Ying Lee (李冠穎)
2023-07-26  4:53 Stephen Rothwell
2023-07-26  5:22 ` Aneesh Kumar K.V
2023-07-26  6:51   ` Stephen Rothwell
2023-07-19  4:32 Stephen Rothwell
2023-07-19  5:55 ` Alistair Popple
2023-07-17 23:40 Stephen Rothwell
2023-07-04  2:23 Stephen Rothwell
2023-07-04  2:32 ` Linus Torvalds
2023-07-04  5:51   ` Suren Baghdasaryan
2023-06-13  6:21 Stephen Rothwell
2023-06-13  6:21 ` Stephen Rothwell
2023-06-13 15:58 ` Catalin Marinas
2023-06-13 15:58   ` Catalin Marinas
2023-05-19  2:43 Stephen Rothwell
2023-05-19  8:19 ` Arnd Bergmann
2023-05-17 23:59 Stephen Rothwell
2023-03-06  2:54 Stephen Rothwell
2023-03-06  3:13 ` Andrew Morton
2023-03-06  0:52 Stephen Rothwell
2023-03-06 21:58 ` Stephen Rothwell
2023-02-07  4:37 Stephen Rothwell
2023-02-07 12:17 ` Jason Gunthorpe
2023-02-08  2:41   ` Stephen Rothwell
2023-02-07 14:25 ` David Howells
2023-01-30  5:14 Stephen Rothwell
2023-01-30  8:09 ` Christian Brauner
2023-02-26 22:18   ` Stephen Rothwell
2023-02-27 10:36     ` Christian Brauner
2023-01-27  6:36 Stephen Rothwell
2023-01-27  6:16 Stephen Rothwell
2023-01-27  6:16 ` Stephen Rothwell
2023-01-27  5:59 Stephen Rothwell
2023-01-27 13:11 ` Jan Kara
2023-01-31 21:47   ` Stephen Rothwell
2023-02-24  4:40     ` Stephen Rothwell
2023-02-24  6:01       ` Linus Torvalds
2023-02-24 20:36         ` Stephen Rothwell
2023-01-25  3:05 Stephen Rothwell
2022-12-16  1:26 Stephen Rothwell
2022-12-16  3:04 ` Andrew Morton
2022-12-16  0:21 Stephen Rothwell
2022-12-16  0:35 ` Andrew Morton
2022-12-16  1:03   ` Masami Hiramatsu
2022-11-22  6:53 Stephen Rothwell
2022-11-22 10:31 ` David Hildenbrand
2022-11-03  5:02 Stephen Rothwell
2022-11-02  3:55 Stephen Rothwell
2022-11-02 21:26 ` Andrew Morton
2022-10-18  1:24 Stephen Rothwell
2022-09-23  8:12 Stephen Rothwell
2022-09-23  8:15 ` David Hildenbrand
2022-09-23  7:55 Stephen Rothwell
2022-09-23  9:50 ` Michael Walle
2022-09-23 11:01   ` Naoya Horiguchi
2022-09-15  7:07 Stephen Rothwell
2022-09-15 16:37 ` Mike Kravetz
2022-09-15 20:06   ` Andrew Morton
2022-09-06 11:03 Stephen Rothwell
2022-09-06 12:05 ` Rob Clark
2022-09-06 18:05   ` Stephen Rothwell
2022-08-26  7:10 Stephen Rothwell
2022-08-26  7:32 ` Michal Hocko
2022-07-08  9:44 Stephen Rothwell
2022-07-08 15:17 ` Darrick J. Wong
2022-07-10 22:28   ` Stephen Rothwell
2022-05-12  9:38 Stephen Rothwell
2022-05-12 10:13 ` Baolin Wang
2022-05-12 11:07 ` Catalin Marinas
2022-05-12 11:13   ` Baolin Wang
2022-05-12 13:28     ` Catalin Marinas
2022-05-12 19:10       ` Andrew Morton
2022-05-13  7:18   ` Stephen Rothwell
2022-05-11  8:15 Stephen Rothwell
2022-05-11  8:27 ` Baolin Wang
2022-05-11  8:42 ` Baolin Wang
2022-05-11 23:28   ` Stephen Rothwell
2022-05-10 11:25 Stephen Rothwell
2022-05-05 21:37 Stephen Rothwell
2022-05-02 10:49 Stephen Rothwell
2022-05-02 11:19 ` Matthew Wilcox
2022-05-03  6:45   ` Stephen Rothwell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230718100257.1ed9290e@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=akpm@linux-foundation.org \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.