[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[XEN][PATCH] xen/arm: restrict cpu_up_send_sgi() to arm32


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Grygorii Strashko <grygorii_strashko@xxxxxxxx>
  • Date: Thu, 11 Sep 2025 08:12:13 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OMls4gkKxWS+SJIDk0QbaAmAryuXbYrLGkm4mbE1DTI=; b=wtiKJMnqGzyHCVVO8X53wpF6ztScirqFjbqaG1RupYJKA7i/iSUAwX8L221VfbL1Xmhb3RKVRvgO9IJtgX1qnsSQsKDtW82S8IZZyBMkQV14/QnEDBcrYRKV4wa8uHXiu7ncK9Rx3d0RqSYq9niLiYHGcalQPN4ynmil4r0Ti3hG7HLV13PmQK9j7TihfzHkGC9XLL5By3qOKEX4wRdk5WxO0pfNP4QetYfnFcbQfmZ2mBPdh1o21NRiOahDqrkZcSSh4AtOR/CgJcF0HbpW6VmPRsyW68y9lbSlDSG4JLtcT1OSgvJqNsN2LdH5ta+MWOyn84xrqbcasTyO8TXtnw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xlgT2S7DKXfvgsYHxvmdH86OrSpmiqr28ADLVC6fWuwTK0+rZ4kmnLdpdLXvTBxp+cOGsqJuWLTXF9wLEXmp0jF8b9OOii2T+qj258UYgQHhql5U46y5Ul8qGim7I3OHjb27IpyUn8yU9Q4+/daVNxHJnIoaXTJteJww88kBQ4GwSPYbv47rR1jT9F82jpmavRJ/nWNY8juBdANnno6OWZiAmv1mjMoI3G8kc42c+FSZNPAprambIBJKInQmgRZ1mC5+iMKFKc17gQL8gg914JRiV+wSJlJjEnfKoen+0bj22tkPL8YdSEgDmDrBGVs/Dz78jgyXvqUmhUwxCcA7tg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Grygorii Strashko <grygorii_strashko@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Thu, 11 Sep 2025 08:12:20 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHcIvPHEqUOcNKJLk6tvD5PLd0SYw==
  • Thread-topic: [XEN][PATCH] xen/arm: restrict cpu_up_send_sgi() to arm32

From: Grygorii Strashko <grygorii_strashko@xxxxxxxx>

Restrict cpu_up_send_sgi() function to arm32 code as it's used by arm32
platforms only and unreachable on arm64 (Misra rule 2.1).

Signed-off-by: Grygorii Strashko <grygorii_strashko@xxxxxxxx>
---
Logically cpu_up_send_sgi() should be moved in arm32, but source is
"GPL-2.0-or-later" while possible destination is "GPL-2.0-only", so put it
under ifdef for now.

 xen/arch/arm/smpboot.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c
index 7f3cfa812edb..45f3be323687 100644
--- a/xen/arch/arm/smpboot.c
+++ b/xen/arch/arm/smpboot.c
@@ -464,6 +464,7 @@ static void set_smp_up_cpu(unsigned long mpidr)
 
 }
 
+#ifdef CONFIG_ARM_32
 int __init cpu_up_send_sgi(int cpu)
 {
     /* We don't know the GIC ID of the CPU until it has woken up, so just
@@ -473,6 +474,7 @@ int __init cpu_up_send_sgi(int cpu)
 
     return 0;
 }
+#endif
 
 /* Bring up a remote CPU */
 int __cpu_up(unsigned int cpu)
-- 
2.34.1



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.