From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id CAFA1EB64DC for ; Tue, 18 Jul 2023 00:38:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2E8A26B0071; Mon, 17 Jul 2023 20:38:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 298976B0074; Mon, 17 Jul 2023 20:38:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 13A288D0001; Mon, 17 Jul 2023 20:38:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id F3C326B0071 for ; Mon, 17 Jul 2023 20:38:21 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id AFDD0B0EAA for ; Tue, 18 Jul 2023 00:38:21 +0000 (UTC) X-FDA: 81022871202.06.714675C Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by imf30.hostedemail.com (Postfix) with ESMTP id D83E68000C for ; Tue, 18 Jul 2023 00:38:17 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=R7LrIuGN; spf=pass (imf30.hostedemail.com: domain of lkp@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689640698; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=JFpxzmIEjT9ZoG3FppQq7DdeoBM5/pnKKn6l5zlbp7w=; b=plV4W+V4R835ynp8EXjNSSmgVLamkyrXmGVHa92dfSnZ3+mk8kb0Lzn2JSUrRyUW+t3Wgx IkaRDJyUDZSM/DnzkHLwdyzAox6oeCaPxR77d3epvn6WOlb0G885M8gm7nZiCDynM/VTqs YdcJOZQjXdrsTC0gXS1S4rj9/w3tJh0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689640698; a=rsa-sha256; cv=none; b=jldR9VwnbMF6V+dilhnXvqoANK4z4hbgNYypblk57r7Eae5W0oN+pkJqDbpzvVow7El60J 2Br2cyftnJ89C1npn5ByFkzsgxMP5pcl/3PonbSfDXANqM/g/izQeqHw8xHNyn+1iIjFKF pRorjZ9ssxHvkX29XZby3eBc69ADzeA= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=R7LrIuGN; spf=pass (imf30.hostedemail.com: domain of lkp@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689640697; x=1721176697; h=date:from:to:cc:subject:message-id:mime-version; bh=yE+Wj2JRc1fv0sNvLfKeqNtN+AVqjrMgulykj0q0Kv0=; b=R7LrIuGNxTe9UD8TxbY6h4md3V4Wae6R/tVLnTYZY1NdFi6jjFw5ue32 w7jxJLZVmtjR8acbk3ofsUNfcD4zm9XkaQ669Pnrn1tTKzaNAy/DnxkAs i2d94o+ZCHZR2+ZQkaljh3bsl3k7cwzHprGFpLtBWDjniGD/4ZuFlR5Yw iGddXiSraTV84hlr1qYKeKmYUuI26N4l3IdO+HbAMZNTF3mX1mPJKNDM4 bPN8q9rzagkrS1rZvEwxBIaIs6mlvw8HIIIfUsg0bWItceDV8tgPXX9Mx ZnO4twCnZ5zsbEerxIetQOIvHe34zkHZFAUaOmr45q11Zw2H69wpD9vpy g==; X-IronPort-AV: E=McAfee;i="6600,9927,10774"; a="452450723" X-IronPort-AV: E=Sophos;i="6.01,211,1684825200"; d="scan'208";a="452450723" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2023 17:38:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10774"; a="788851652" X-IronPort-AV: E=Sophos;i="6.01,211,1684825200"; d="scan'208";a="788851652" Received: from lkp-server01.sh.intel.com (HELO c544d7fc5005) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 17 Jul 2023 17:38:13 -0700 Received: from kbuild by c544d7fc5005 with local (Exim 4.96) (envelope-from ) id 1qLYjF-000A1g-0o; Tue, 18 Jul 2023 00:38:13 +0000 Date: Tue, 18 Jul 2023 08:37:31 +0800 From: kernel test robot To: Andy Shevchenko Cc: oe-kbuild-all@lists.linux.dev, Andrew Morton , Linux Memory Management List Subject: [akpm-mm:mm-nonmm-unstable 35/36] include/linux/arm-smccc.h:485:29: error: '__declare_arg_3' undeclared Message-ID: <202307180837.RceV83eP-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: D83E68000C X-Rspam-User: X-Stat-Signature: q75ufyzybthnx8dwcrbonaxkby1ruidq X-Rspamd-Server: rspam03 X-HE-Tag: 1689640697-291384 X-HE-Meta: U2FsdGVkX19Z21PvHh//y4H4RD829vSMSe2mkYgjJYiXvmVb6fFm3lSnPH+XwKk7q7FfyScADidjItpRrrU/FjJ46voZYjejpbA9AZCpghx4bRfTrJ/Lb8li9aw2dhnHGCTFWHNV30IL4cyw0UgIHSBBkZ2XlpvE9Dnu2sjtwduQtJQdIOFkRfquUpUUAuUGUd11nTf5KEfGRaKMGFTrHbYXQ5fbiYamnw1G6FMZyhMx/7/+ny2GFXU4yYTCfCywAuZYViccPSh8oDIEWtaCyup3Viyp5jgreR0uQ/w3xoAg3pGQBiS19+xWeOBifVkuW4XURAF34w4J0MczuFWeXUSGzF4ciJi6bgaYMUQirgMOldUQVmHgxLmxe9QqsyK4g960G1xfWlLnWo0b3JzRnGKYCMuIKJOJsHRKCuBb844LNXaMeH87Rs2Cm0xJoemW8ohadej3cJ11rTvxDqOTmta3/lXWM8rzAOx/LiDc+xdS4cxXPvGEpy0j27o6dMh06sCJ3j4yV45wwMNc7Ok3PZJXy0OLVmj1towYKJ/0rw1svHH5U9vi7VUFNy6LRDesVfQPGt8pPiN73zpSjRyUffQNOWZAIN6WY0Et28zax9hfdfimf+beCEZrxQeA/UIHXymia/PmCLhHdxkni9H3465a0Wye8HsHdnUGktB21W/s00paU+qtxV6ZW1/6+79rMSqxC0wco3s+2JWgsxrcRjlqK249K+cKV5Y0VqxYZHOQvJ4joettJo3Pg+6Hsci63gAPR4HiB+Me+xPY3lZ2IyAFAj4d+REw6jAK6NRflitAyCHZ1m1LxXX+d17Xn4eLIUAjNUymU4ax/rczFm2Sd9XLcD8ETCOxMS5G2Il3o6Hk+y8tlA+oBA8IawJv3Vy2Ivkbwvlm5ZidRfOPr4cpHBkNNyBW1ZsMMQwQ9FVv1eMdY2TZ6TrDC7ioQ78GyN6tIU3xBxcWlDbPjhYtJgv Z/CPBJd6 u3tPhE8v0vCsTgTCwMGLLg5x3znIzf4i2DTYff58FZGW74FtDBCpS2qnNcyPEcv94R633jbCP+kUW7SumxS0vyo6l5defjEgEiUGHzdam12goxm17usUQHn8G3MRDO/UcXlBp0FZ3yI3b2DiZBOVYDSyIL9HTqex5B7sCdLiuKMNRZSsW0Fupd+Kn7PJtGHw5Xp1159dfcH+SxUdPZ6ybdl2A7XxE5dVAz6uJFu3wNFPm7KLWtA8BOXeLkGg7jV7a1Xn3XsauoLYconxhvHja/rfLV+qhmzIfiKs4uOpcUSazqGOssHbRR6WGEyXwA8Gkls1rM9E4H0iJkEgJzwdGmB5SvOsac9WypB7p X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-nonmm-unstable head: 643039cbab79355ceb1ce9a91e2a7483a44bec05 commit: fceebffabbb6a664115469aac95d243048b09d22 [35/36] arm64: smccc: replace custom COUNT_ARGS() & CONCATENATE() implementations config: arm64-randconfig-r016-20230717 (https://download.01.org/0day-ci/archive/20230718/202307180837.RceV83eP-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230718/202307180837.RceV83eP-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202307180837.RceV83eP-lkp@intel.com/ All error/warnings (new ones prefixed by >>): In file included from include/linux/arm-smccc.h:8, from drivers/clocksource/arm_arch_timer.c:29: drivers/clocksource/arm_arch_timer.c: In function 'kvm_arch_ptp_get_crosststamp': >> 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/clocksource/arm_arch_timer.c:1795:9: note: in expansion of macro 'arm_smccc_1_1_invoke' 1795 | arm_smccc_1_1_invoke(ARM_SMCCC_VENDOR_HYP_KVM_PTP_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__); \ | ^~~~~~~~~~~~~~~~~ drivers/clocksource/arm_arch_timer.c:1795:9: note: in expansion of macro 'arm_smccc_1_1_invoke' 1795 | arm_smccc_1_1_invoke(ARM_SMCCC_VENDOR_HYP_KVM_PTP_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__); \ | ^~~~~~~~~~~~~~~~~ drivers/clocksource/arm_arch_timer.c:1795:9: note: in expansion of macro 'arm_smccc_1_1_invoke' 1795 | arm_smccc_1_1_invoke(ARM_SMCCC_VENDOR_HYP_KVM_PTP_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__); \ | ^~~~~~~~~~~~~~~~~ drivers/clocksource/arm_arch_timer.c:1795:9: note: in expansion of macro 'arm_smccc_1_1_invoke' 1795 | arm_smccc_1_1_invoke(ARM_SMCCC_VENDOR_HYP_KVM_PTP_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__); \ | ^~~~~~~~~~~~~~~~~ drivers/clocksource/arm_arch_timer.c:1795:9: note: in expansion of macro 'arm_smccc_1_1_invoke' 1795 | arm_smccc_1_1_invoke(ARM_SMCCC_VENDOR_HYP_KVM_PTP_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__); \ | ^~~~~~~~~~~~~~~~~ drivers/clocksource/arm_arch_timer.c:1795:9: note: in expansion of macro 'arm_smccc_1_1_invoke' 1795 | arm_smccc_1_1_invoke(ARM_SMCCC_VENDOR_HYP_KVM_PTP_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__); \ | ^~~~~~~~~~~~~~~~~ drivers/clocksource/arm_arch_timer.c:1795:9: note: in expansion of macro 'arm_smccc_1_1_invoke' 1795 | arm_smccc_1_1_invoke(ARM_SMCCC_VENDOR_HYP_KVM_PTP_FUNC_ID, | ^~~~~~~~~~~~~~~~~~~~ >> drivers/clocksource/arm_arch_timer.c:1784:13: warning: variable 'ptp_counter' set but not used [-Wunused-but-set-variable] 1784 | u32 ptp_counter; | ^~~~~~~~~~~ -- In file included from include/linux/arm-smccc.h:8, from arch/arm64/kernel/proton-pack.c:20: arch/arm64/kernel/proton-pack.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/arm64/kernel/proton-pack.c:186:9: note: in expansion of macro 'arm_smccc_1_1_invoke' 186 | 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/arm64/kernel/proton-pack.c:186:9: note: in expansion of macro 'arm_smccc_1_1_invoke' 186 | 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/arm64/kernel/proton-pack.c:186:9: note: in expansion of macro 'arm_smccc_1_1_invoke' 186 | 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/arm64/kernel/proton-pack.c:186:9: note: in expansion of macro 'arm_smccc_1_1_invoke' 186 | 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/arm64/kernel/proton-pack.c:186:9: note: in expansion of macro 'arm_smccc_1_1_invoke' 186 | 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/arm64/kernel/proton-pack.c:186:9: note: in expansion of macro 'arm_smccc_1_1_invoke' 186 | 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/arm64/kernel/proton-pack.c:186:9: note: in expansion of macro 'arm_smccc_1_1_invoke' 186 | arm_smccc_1_1_invoke(ARM_SMCCC_ARCH_FEATURES_FUNC_ID, | ^~~~~~~~~~~~~~~~~~~~ arch/arm64/kernel/proton-pack.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/arm64/kernel/proton-pack.c:239:9: note: in expansion of macro 'arm_smccc_1_1_smc' 239 | 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/arm64/kernel/proton-pack.c:239:9: note: in expansion of macro 'arm_smccc_1_1_smc' 239 | 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/arm64/kernel/proton-pack.c:239:9: note: in expansion of macro 'arm_smccc_1_1_smc' 239 | 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/arm64/kernel/proton-pack.c:239:9: note: in expansion of macro 'arm_smccc_1_1_smc' 239 | 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/arm64/kernel/proton-pack.c:239:9: note: in expansion of macro 'arm_smccc_1_1_smc' 239 | arm_smccc_1_1_smc(ARM_SMCCC_ARCH_WORKAROUND_1, NULL); | ^~~~~~~~~~~~~~~~~ arch/arm64/kernel/proton-pack.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/arm64/kernel/proton-pack.c:245:9: note: in expansion of macro 'arm_smccc_1_1_hvc' 245 | 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/arm64/kernel/proton-pack.c:245:9: note: in expansion of macro 'arm_smccc_1_1_hvc' 245 | 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/arm64/kernel/proton-pack.c:245:9: note: in expansion of macro 'arm_smccc_1_1_hvc' 245 | 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/arm64/kernel/proton-pack.c:245:9: note: in expansion of macro 'arm_smccc_1_1_hvc' 245 | 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/arm64/kernel/proton-pack.c:245:9: note: in expansion of macro 'arm_smccc_1_1_hvc' 245 | arm_smccc_1_1_hvc(ARM_SMCCC_ARCH_WORKAROUND_1, NULL); | ^~~~~~~~~~~~~~~~~ arch/arm64/kernel/proton-pack.c: In function 'spectre_v4_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/arm64/kernel/proton-pack.c:493:9: note: in expansion of macro 'arm_smccc_1_1_invoke' 493 | 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/arm64/kernel/proton-pack.c:493:9: note: in expansion of macro 'arm_smccc_1_1_invoke' 493 | 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/arm64/kernel/proton-pack.c:493:9: note: in expansion of macro 'arm_smccc_1_1_invoke' 493 | 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/arm64/kernel/proton-pack.c:493:9: note: in expansion of macro 'arm_smccc_1_1_invoke' 493 | 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/arm64/kernel/proton-pack.c:493:9: note: in expansion of macro 'arm_smccc_1_1_invoke' 493 | 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/arm64/kernel/proton-pack.c:493:9: note: in expansion of macro 'arm_smccc_1_1_invoke' 493 | arm_smccc_1_1_invoke(ARM_SMCCC_ARCH_FEATURES_FUNC_ID, | ^~~~~~~~~~~~~~~~~~~~ arch/arm64/kernel/proton-pack.c: In function 'spectre_v4_enable_fw_mitigation': 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/arm64/kernel/proton-pack.c:619:17: note: in expansion of macro 'arm_smccc_1_1_invoke' 619 | arm_smccc_1_1_invoke(ARM_SMCCC_ARCH_WORKAROUND_2, false, 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/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' .. vim +/__declare_arg_3 +485 include/linux/arm-smccc.h 416 > 417 #define __constraint_read_0 "r" (arg0) > 418 #define __constraint_read_1 __constraint_read_0, "r" (arg1) > 419 #define __constraint_read_2 __constraint_read_1, "r" (arg2) > 420 #define __constraint_read_3 __constraint_read_2, "r" (arg3) > 421 #define __constraint_read_4 __constraint_read_3, "r" (arg4) > 422 #define __constraint_read_5 __constraint_read_4, "r" (arg5) > 423 #define __constraint_read_6 __constraint_read_5, "r" (arg6) > 424 #define __constraint_read_7 __constraint_read_6, "r" (arg7) 425 426 #define __declare_arg_0(a0, res) \ 427 struct arm_smccc_res *___res = res; \ 428 register unsigned long arg0 asm("r0") = (u32)a0 429 430 #define __declare_arg_1(a0, a1, res) \ 431 typeof(a1) __a1 = a1; \ 432 struct arm_smccc_res *___res = res; \ 433 register unsigned long arg0 asm("r0") = (u32)a0; \ 434 register typeof(a1) arg1 asm("r1") = __a1 435 436 #define __declare_arg_2(a0, a1, a2, res) \ 437 typeof(a1) __a1 = a1; \ 438 typeof(a2) __a2 = a2; \ 439 struct arm_smccc_res *___res = res; \ 440 register unsigned long arg0 asm("r0") = (u32)a0; \ 441 register typeof(a1) arg1 asm("r1") = __a1; \ 442 register typeof(a2) arg2 asm("r2") = __a2 443 444 #define __declare_arg_3(a0, a1, a2, a3, res) \ 445 typeof(a1) __a1 = a1; \ 446 typeof(a2) __a2 = a2; \ 447 typeof(a3) __a3 = a3; \ 448 struct arm_smccc_res *___res = res; \ 449 register unsigned long arg0 asm("r0") = (u32)a0; \ 450 register typeof(a1) arg1 asm("r1") = __a1; \ 451 register typeof(a2) arg2 asm("r2") = __a2; \ 452 register typeof(a3) arg3 asm("r3") = __a3 453 454 #define __declare_arg_4(a0, a1, a2, a3, a4, res) \ 455 typeof(a4) __a4 = a4; \ 456 __declare_arg_3(a0, a1, a2, a3, res); \ 457 register typeof(a4) arg4 asm("r4") = __a4 458 459 #define __declare_arg_5(a0, a1, a2, a3, a4, a5, res) \ 460 typeof(a5) __a5 = a5; \ 461 __declare_arg_4(a0, a1, a2, a3, a4, res); \ 462 register typeof(a5) arg5 asm("r5") = __a5 463 464 #define __declare_arg_6(a0, a1, a2, a3, a4, a5, a6, res) \ 465 typeof(a6) __a6 = a6; \ 466 __declare_arg_5(a0, a1, a2, a3, a4, a5, res); \ 467 register typeof(a6) arg6 asm("r6") = __a6 468 469 #define __declare_arg_7(a0, a1, a2, a3, a4, a5, a6, a7, res) \ 470 typeof(a7) __a7 = a7; \ 471 __declare_arg_6(a0, a1, a2, a3, a4, a5, a6, res); \ 472 register typeof(a7) arg7 asm("r7") = __a7 473 474 /* 475 * We have an output list that is not necessarily used, and GCC feels 476 * entitled to optimise the whole sequence away. "volatile" is what 477 * makes it stick. 478 */ 479 #define __arm_smccc_1_1(inst, ...) \ 480 do { \ 481 register unsigned long r0 asm("r0"); \ 482 register unsigned long r1 asm("r1"); \ 483 register unsigned long r2 asm("r2"); \ 484 register unsigned long r3 asm("r3"); \ > 485 CONCATENATE(__declare_arg_, COUNT_ARGS(__VA_ARGS__)); \ 486 asm volatile(SMCCC_SVE_CHECK \ 487 inst "\n" : \ 488 "=r" (r0), "=r" (r1), "=r" (r2), "=r" (r3) \ > 489 : CONCATENATE(__constraint_read_, \ 490 COUNT_ARGS(__VA_ARGS__)) \ 491 : smccc_sve_clobbers "memory"); \ > 492 if (___res) \ 493 *___res = (typeof(*___res)){r0, r1, r2, r3}; \ 494 } while (0) 495 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki