From: kernel test robot <lkp@intel.com>
To: Paul Benoit <paul@os.amperecomputing.com>, linux-kernel@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Paul Benoit <paul@os.amperecomputing.com>,
Mark Rutland <mark.rutland@arm.com>,
Lorenzo Pieralisi <lpieralisi@kernel.org>,
Sudeep Holla <sudeep.holla@arm.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] firmware: smccc: Support optional Arm SMC SOC_ID name
Date: Sun, 17 Nov 2024 08:12:47 +0800 [thread overview]
Message-ID: <202411170820.t1xuMJVL-lkp@intel.com> (raw)
In-Reply-To: <20241114030452.10149-1-paul@os.amperecomputing.com>
Hi Paul,
kernel test robot noticed the following build errors:
[auto build test ERROR on soc/for-next]
[also build test ERROR on linus/master v6.12-rc7 next-20241115]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Paul-Benoit/firmware-smccc-Support-optional-Arm-SMC-SOC_ID-name/20241114-113039
base: https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git for-next
patch link: https://lore.kernel.org/r/20241114030452.10149-1-paul%40os.amperecomputing.com
patch subject: [PATCH] firmware: smccc: Support optional Arm SMC SOC_ID name
config: arm-randconfig-002-20241117 (https://download.01.org/0day-ci/archive/20241117/202411170820.t1xuMJVL-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 592c0fe55f6d9a811028b5f3507be91458ab2713)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241117/202411170820.t1xuMJVL-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411170820.t1xuMJVL-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/firmware/smccc/smccc.c:26:28: error: variable has incomplete type 'struct arm_smccc_1_2_regs'
26 | struct arm_smccc_1_2_regs regs_1_2;
| ^
drivers/firmware/smccc/smccc.c:26:9: note: forward declaration of 'struct arm_smccc_1_2_regs'
26 | struct arm_smccc_1_2_regs regs_1_2;
| ^
>> drivers/firmware/smccc/smccc.c:50:4: error: call to undeclared function 'arm_smccc_1_2_smc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
50 | arm_smccc_1_2_smc(
| ^
2 errors generated.
vim +26 drivers/firmware/smccc/smccc.c
22
23 void __init arm_smccc_version_init(u32 version, enum arm_smccc_conduit conduit)
24 {
25 struct arm_smccc_res res;
> 26 struct arm_smccc_1_2_regs regs_1_2;
27
28 smccc_version = version;
29 smccc_conduit = conduit;
30
31 smccc_trng_available = smccc_probe_trng();
32
33 if ((smccc_version >= ARM_SMCCC_VERSION_1_2) &&
34 (smccc_conduit != SMCCC_CONDUIT_NONE)) {
35 arm_smccc_1_1_invoke(ARM_SMCCC_ARCH_FEATURES_FUNC_ID,
36 ARM_SMCCC_ARCH_SOC_ID, &res);
37 if ((s32)res.a0 >= 0) {
38 arm_smccc_1_1_invoke(ARM_SMCCC_ARCH_SOC_ID, 0, &res);
39 smccc_soc_id_version = (s32)res.a0;
40 arm_smccc_1_1_invoke(ARM_SMCCC_ARCH_SOC_ID, 1, &res);
41 smccc_soc_id_revision = (s32)res.a0;
42
43 /* Issue Number 1.6 of the Arm SMC Calling Convention
44 * specification introduces an optional "name" string
45 * to the ARM_SMCCC_ARCH_SOC_ID function. Fetch it if
46 * available.
47 */
48 regs_1_2.a0 = ARM_SMCCC_ARCH_SOC_ID;
49 regs_1_2.a1 = 2; /* SOC_ID name */
> 50 arm_smccc_1_2_smc(
51 (const struct arm_smccc_1_2_regs *)®s_1_2,
52 (struct arm_smccc_1_2_regs *)®s_1_2);
53
54 if ((u32)regs_1_2.a0 == 0) {
55 unsigned long *destination =
56 (unsigned long *)smccc_soc_id_name;
57
58 /*
59 * Copy regs_1_2.a1..regs_1_2.a17 to the
60 * smccc_soc_id_name string with consideration
61 * to the endianness of the values in a1..a17.
62 * As per Issue 1.6 of the Arm SMC Calling
63 * Convention, the string will be NUL terminated
64 * and padded, from the end of the string to
65 * the end of the 136 byte buffer, with NULs.
66 */
67 *destination++ =
68 cpu_to_le64p((const __u64 *)®s_1_2.a1);
69 *destination++ =
70 cpu_to_le64p((const __u64 *)®s_1_2.a2);
71 *destination++ =
72 cpu_to_le64p((const __u64 *)®s_1_2.a3);
73 *destination++ =
74 cpu_to_le64p((const __u64 *)®s_1_2.a4);
75 *destination++ =
76 cpu_to_le64p((const __u64 *)®s_1_2.a5);
77 *destination++ =
78 cpu_to_le64p((const __u64 *)®s_1_2.a6);
79 *destination++ =
80 cpu_to_le64p((const __u64 *)®s_1_2.a7);
81 *destination++ =
82 cpu_to_le64p((const __u64 *)®s_1_2.a8);
83 *destination++ =
84 cpu_to_le64p((const __u64 *)®s_1_2.a9);
85 *destination++ =
86 cpu_to_le64p((const __u64 *)®s_1_2.a10);
87 *destination++ =
88 cpu_to_le64p((const __u64 *)®s_1_2.a11);
89 *destination++ =
90 cpu_to_le64p((const __u64 *)®s_1_2.a12);
91 *destination++ =
92 cpu_to_le64p((const __u64 *)®s_1_2.a13);
93 *destination++ =
94 cpu_to_le64p((const __u64 *)®s_1_2.a14);
95 *destination++ =
96 cpu_to_le64p((const __u64 *)®s_1_2.a15);
97 *destination++ =
98 cpu_to_le64p((const __u64 *)®s_1_2.a16);
99 *destination++ =
100 cpu_to_le64p((const __u64 *)®s_1_2.a17);
101 }
102 }
103 }
104 }
105
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-11-17 0:14 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-14 3:04 [PATCH] firmware: smccc: Support optional Arm SMC SOC_ID name Paul Benoit
2024-11-14 12:22 ` Mark Rutland
2024-11-25 22:52 ` Paul Benoit
2024-11-17 0:12 ` kernel test robot [this message]
2024-11-17 0:56 ` kernel test robot
2024-12-03 21:28 ` [PATCH v2] " Paul Benoit
2024-12-04 11:22 ` kernel test robot
2024-12-04 12:26 ` kernel test robot
2024-12-18 0:13 ` [PATCH v3] " Paul Benoit
2025-02-10 12:13 ` Sudeep Holla
2025-02-14 22:59 ` Paul Benoit
2025-02-19 0:59 ` [PATCH v4] " Paul Benoit
2025-03-03 14:18 ` Mark Rutland
2025-03-03 14:45 ` Sudeep Holla
2025-03-03 17:07 ` Paul Benoit
2025-03-04 10:58 ` Sudeep Holla
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=202411170820.t1xuMJVL-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=lpieralisi@kernel.org \
--cc=mark.rutland@arm.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=paul@os.amperecomputing.com \
--cc=sudeep.holla@arm.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).