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

[PATCH v2 1/3] arm/ppc/riscv: drop unused domain_set_alloc_bitsize() macro


  • To: Grygorii Strashko <grygorii_strashko@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Grygorii Strashko <grygorii_strashko@xxxxxxxx>
  • Date: Thu, 27 Nov 2025 22:12:45 +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=lQRm3HxkVTSyhxJQFpEPpXyTrghOA5eViQECT6vFLDI=; b=YM7EHLiyAf40J5y8LRG8LPj+32kDJNOkTLXpTcF49hSugZP74L3VMBoza2pW95F6aUwzSeaNDIJh8LNceDCu5sIaHhJEneGy2JB8QAn1egWyKPZmoQ6GhwX2yGdx4cxHLvhGlMpPSGEssuIli8ho5ujffWMQxul7IuIP5aOFDT09CrgHJ3iSuBtHWZhL4Z1Iy6VoSZn4uPi41ZrZr/My0Z3Py0ogk5Jp5CDLcWsaYFqyxk7jC5CUWrupGNUqu5OPq26rZiCklEfovR+WBz+Y/CVGrP72hh62brv961wbLU7A2rN+s+UE3R6AJqiH4wzbjq8AgpaQlDvd8wFtOPgtSA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=FLzjzjfADEmMRV8KCcSEIq0wPiJGwLmNsfh7QBjk05ObWNuNKE7tt3TDF7XhaDLuzwg8UIH/JqHxJeg+ERqw7O0JvCJUz0laTWdbrKNzSy4J+6Nxuce5osv/o8sbWr36qGZe0NuJm33GQY3rMhEtiTwgGeW7AU7YwKZ+0Vmnfa+freIdYglAtkzrj0eOAyW8vpl/ESx6gk1Fmb8hC4AbMIymEfwZRs1d+JuFeB75BFXUFWzwjffXGTn3YB6boIgXnDA4c9E14m4XZFSBhDkXW1CqdWlTq22rcPZcN/4t8uyVoNg+gWBMyAf81kdZhPgOLBO1Qu3Fe3XsuoKnlBOlog==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Delivery-date: Thu, 27 Nov 2025 22:12:50 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHcX+r1c6Bx9R94PEqg6lQrbZuXBw==
  • Thread-topic: [PATCH v2 1/3] arm/ppc/riscv: drop unused domain_set_alloc_bitsize() macro

From: Grygorii Strashko <grygorii_strashko@xxxxxxxx>

The domain_set_alloc_bitsize() is x86 PV32 specific and not used by other
arch or common code, so remove it.

Signed-off-by: Grygorii Strashko <grygorii_strashko@xxxxxxxx>
---
 xen/arch/arm/include/asm/mm.h   | 1 -
 xen/arch/ppc/include/asm/mm.h   | 1 -
 xen/arch/riscv/include/asm/mm.h | 1 -
 3 files changed, 3 deletions(-)

diff --git a/xen/arch/arm/include/asm/mm.h b/xen/arch/arm/include/asm/mm.h
index f702f4a0d676..4c6cc64aa7ba 100644
--- a/xen/arch/arm/include/asm/mm.h
+++ b/xen/arch/arm/include/asm/mm.h
@@ -313,7 +313,6 @@ struct page_info *get_page_from_gva(struct vcpu *v, vaddr_t 
va,
 /* Arch-specific portion of memory_op hypercall. */
 long arch_memory_op(int op, XEN_GUEST_HANDLE_PARAM(void) arg);
 
-#define domain_set_alloc_bitsize(d) ((void)0)
 #define domain_clamp_alloc_bitsize(d, b) (b)
 
 unsigned long domain_get_maximum_gpfn(struct domain *d);
diff --git a/xen/arch/ppc/include/asm/mm.h b/xen/arch/ppc/include/asm/mm.h
index a33eeec43bd6..e478291fdf55 100644
--- a/xen/arch/ppc/include/asm/mm.h
+++ b/xen/arch/ppc/include/asm/mm.h
@@ -96,7 +96,6 @@ static inline struct page_info *virt_to_page(const void *v)
 /* TODO: implement */
 #define mfn_valid(mfn) ({ (void) (mfn); 0; })
 
-#define domain_set_alloc_bitsize(d) ((void)(d))
 #define domain_clamp_alloc_bitsize(d, b) (b)
 
 #define PFN_ORDER(pfn_) ((pfn_)->v.free.order)
diff --git a/xen/arch/riscv/include/asm/mm.h b/xen/arch/riscv/include/asm/mm.h
index 9283616c0224..11e9f26bf0a5 100644
--- a/xen/arch/riscv/include/asm/mm.h
+++ b/xen/arch/riscv/include/asm/mm.h
@@ -292,7 +292,6 @@ static inline bool arch_mfns_in_directmap(unsigned long 
mfn, unsigned long nr)
 /* TODO: implement */
 #define mfn_valid(mfn) ({ (void)(mfn); 0; })
 
-#define domain_set_alloc_bitsize(d) ((void)(d))
 #define domain_clamp_alloc_bitsize(d, b) ((void)(d), (b))
 
 #define PFN_ORDER(pg) ((pg)->v.free.order)
-- 
2.34.1



 


Rackspace

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