[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] xen/arm: Drop frametable_virt_end
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Michal Orzel <michal.orzel@xxxxxxx>
- Date: Fri, 27 Jun 2025 10:43:34 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- 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=HvzwjcgI+OoKbZkotdZvDHqSs82Pxp1+1cTFe6ddl2E=; b=D7SHMn6WF5bnZFlx4RzzFM7NV2ZOT7+vCIZvM723rqJ8UvVUuyd7rsqFuebWDdytO4FciSXgDrAvBiv+o4ocBHCzlbI72eXrASjm3h5P4ikqoIhZsc09B7daci9Zn5J6HiFX8eYlm2iWPBheACW6oSircYgyXfYUFIbOG2uW/hReJmY+7zSK970oSe81ojYZmmBoiU32fXGpGF8gzDoe9j96jQ6UobVVixGD2Zi5ZmgBm80XueQlqX2NKbUZFXnBAMpdCjjswdy0h5ERyF6I78zSzkxKwNAAYXKo4dwwtqevdi4tUExXRrYKpdedD6Oli4OVf+/HK79B1M/RPp15GQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hU2b6NNXLcwKbaDHf/jdMFm/MjGzQ49yQNJ8oDILkIqee8ZwmXUUf4Fr0I5OqWX1Ma31lII8mIf7XnyLwyfIpJy5TBS+nkgl5nbFJ0yt8aKzmtBl6uiD1NHh/RPWBOsKVbje3icf8g0yBmMA9+iQXwbKrYnId4BOrvk1Yj0rbIw+C5Zjl+DmDMujQeMfN1vjWEom3tQVEvgmazWQqUB0cNCdl0eT4z1mXwtTdxuT/dd4leK1Jvazlc9hFlOB9FrfFbOuGazCsjWcVrbNuG81j2ZrZyngch+1MgnRmACtgeRthQ+FvYMxT7XrL7JcyOcnXZyHOeXDJhF4K/oRYHOaQA==
- Cc: Michal Orzel <michal.orzel@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Fri, 27 Jun 2025 08:43:51 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
It has never been used since the introduction and is technically a dead
code violating MISRA C.
Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
---
xen/arch/arm/include/asm/config.h | 4 ----
xen/arch/arm/mmu/mm.c | 5 -----
2 files changed, 9 deletions(-)
diff --git a/xen/arch/arm/include/asm/config.h
b/xen/arch/arm/include/asm/config.h
index 272e4565e592..f18825bc2d50 100644
--- a/xen/arch/arm/include/asm/config.h
+++ b/xen/arch/arm/include/asm/config.h
@@ -66,10 +66,6 @@
#define STACK_ORDER 3
#define STACK_SIZE (PAGE_SIZE << STACK_ORDER)
-#ifndef __ASSEMBLY__
-extern unsigned long frametable_virt_end;
-#endif
-
#define watchdog_disable() ((void)0)
#define watchdog_enable() ((void)0)
diff --git a/xen/arch/arm/mmu/mm.c b/xen/arch/arm/mmu/mm.c
index 9c50479c6373..6604f3bf4e6a 100644
--- a/xen/arch/arm/mmu/mm.c
+++ b/xen/arch/arm/mmu/mm.c
@@ -8,8 +8,6 @@
#include <xen/pdx.h>
#include <xen/string.h>
-unsigned long frametable_virt_end __read_mostly;
-
/* Map a frame table to cover physical addresses ps through pe */
void __init setup_frametable_mappings(paddr_t ps, paddr_t pe)
{
@@ -46,9 +44,6 @@ void __init setup_frametable_mappings(paddr_t ps, paddr_t pe)
memset(&frame_table[0], 0, nr_pdxs * sizeof(struct page_info));
memset(&frame_table[nr_pdxs], -1,
frametable_size - (nr_pdxs * sizeof(struct page_info)));
-
- frametable_virt_end = FRAMETABLE_VIRT_START + (nr_pdxs *
- sizeof(struct page_info));
}
/*
--
2.25.1
|