From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 135403546F9 for ; Wed, 7 Oct 2026 06:59:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791356342; cv=none; b=sG4x2Dj2DbqaLLmJ3f39CElbb2Unx7yntZD95V9+Kp7rVC47kFpFYSbm4lYsysmYuUGP6zgIkK1eb6g8D/Va9Zy9xXND37hMYKYYzcfFPQs6laP/w64vctQA8BHbShwazPmCb/UOilDrCUNIGtSfl51P1ttHJ6z5YDDYa+kjxew= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791356342; c=relaxed/simple; bh=2Lds7/Ob1aThi8yOExNVwzE/NalfXr4GJo8n0o9uP4o=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=MvQoWHLFiBvLOY6oGTKONnxVwZo+u+G72uyPq+E8pO9YZs02dFsAAmwffXVVLcYnlkkLd4JRyZZFW3KvHO66cHahbiR6S4pNzoxR3zKTMMQt7gwtgdQOOlA7UhYq4kK+j5thLPRcKUq+Yna36/FeGMqQInpFPGzqBGuelIyYzhY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oo6biCPZ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oo6biCPZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C8011F0089B; Wed, 7 Oct 2026 06:58:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791356340; bh=Srp0V26oO6Yz6Z35THqqv3ibjlC1+VmBTfDNQHvGEAk=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=oo6biCPZFQCamWroflRaAgj7sPWmihwlqJGea7Az/UZ7jQnbRbop19DpXRueIeIgB tF8hKhXkV5X8FKAV6ZZ7LTONArPlQjloyhoLptm9vaiMHleT7V/fm4yqdSwlOueCNu RVCWHsM6xMBZh3OHKyJnLVU6J6cONfXy2HMqpE8qkibO2sNJlmW8Z0csBA/l5SKFq6 BoJNRcd/uAw74B81LyqqJ7sBsuRqXAgIsTsEzwJcd00hrypvslo4ETzH6XR6sLRB6X GyxoDhwTvTXCuUO1QHcSpv+miDcWwaK/W5w+3jIa7OGycivq3TFq1tfUqblTSqU+ot nHTRgXzFok2qg== X-Mailer: emacs 31.1 (via feedmail 11-beta-1 I) From: Aneesh Kumar K.V To: kernel test robot Cc: oe-kbuild-all@lists.linux.dev, Catalin Marinas , Jonathan Cameron , Jason Gunthorpe , Sudeep Holla Subject: Re: [linux-next:master 8264/14724] drivers/firmware/smccc/smccc.c:141:1: error: r7 cannot be used in asm here In-Reply-To: <202610070641.B8hxBJcf-lkp@intel.com> References: <202610070641.B8hxBJcf-lkp@intel.com> Date: Wed, 07 Oct 2026 12:28:54 +0530 Message-ID: Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain kernel test robot writes: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: eea3fef32a9cf36abcb5975a5a594e4135a6b026 > commit: d8263a131bb05398faa72ac32be54a03e48fa197 [8264/14724] firmware: hwrng: arm_smccc_trng: Register as an SMCCC device > config: arm-randconfig-1001-20261007 (https://download.01.org/0day-ci/archive/20261007/202610070641.B8hxBJcf-lkp@intel.com/config) > compiler: arm-linux-gnueabi-gcc (GCC) 8.5.0 > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261007/202610070641.B8hxBJcf-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/202610070641.B8hxBJcf-lkp@intel.com/ > > All errors (new ones prefixed by >>): > > drivers/firmware/smccc/smccc.c: In function 'smccc_devices_init': >>> drivers/firmware/smccc/smccc.c:141:1: error: r7 cannot be used in asm here > } > ^ >>> drivers/firmware/smccc/smccc.c:141:1: error: r7 cannot be used in asm here > > > vim +141 drivers/firmware/smccc/smccc.c > > d8263a131bb0539 Aneesh Kumar K.V (Arm 2026-09-23 122) > b83c2d92be719bf Andre Przywara 2021-07-31 123 static int __init smccc_devices_init(void) > b83c2d92be719bf Andre Przywara 2021-07-31 124 { > d8263a131bb0539 Aneesh Kumar K.V (Arm 2026-09-23 125) struct arm_smccc_device *sdev; > d8263a131bb0539 Aneesh Kumar K.V (Arm 2026-09-23 126) const struct smccc_device_info *smccc_dev; > d8263a131bb0539 Aneesh Kumar K.V (Arm 2026-09-23 127) > d8263a131bb0539 Aneesh Kumar K.V (Arm 2026-09-23 128) for (int i = 0; i < ARRAY_SIZE(smccc_devices); i++) { > d8263a131bb0539 Aneesh Kumar K.V (Arm 2026-09-23 129) smccc_dev = &smccc_devices[i]; > d8263a131bb0539 Aneesh Kumar K.V (Arm 2026-09-23 130) > d8263a131bb0539 Aneesh Kumar K.V (Arm 2026-09-23 131) if (!smccc_probe_smccc_device(smccc_dev)) > d8263a131bb0539 Aneesh Kumar K.V (Arm 2026-09-23 132) continue; > d8263a131bb0539 Aneesh Kumar K.V (Arm 2026-09-23 133) > d8263a131bb0539 Aneesh Kumar K.V (Arm 2026-09-23 134) sdev = arm_smccc_device_register(smccc_dev->device_name, smccc_dev->func_id); > d8263a131bb0539 Aneesh Kumar K.V (Arm 2026-09-23 135) if (IS_ERR(sdev)) > d8263a131bb0539 Aneesh Kumar K.V (Arm 2026-09-23 136) pr_err("%s: could not register device: %pe\n", > d8263a131bb0539 Aneesh Kumar K.V (Arm 2026-09-23 137) smccc_dev->device_name, sdev); > b83c2d92be719bf Andre Przywara 2021-07-31 138 } > b83c2d92be719bf Andre Przywara 2021-07-31 139 > b83c2d92be719bf Andre Przywara 2021-07-31 140 return 0; > b83c2d92be719bf Andre Przywara 2021-07-31 @141 } > This is with: CONFIG_ARM_THUMB=y CONFIG_ARM_THUMBEE=y where there are restrictions on the use of r7. IMHO, this needs to be addressed in the implementation of arm_smccc_1_1_invoke(), rather than worked around in this patch? -aneesh