xen/arm: Drop frametable_virt_end

It has never been used since the introduction and is technically a dead
code violating MISRA C.

Signed-off-by: Michal Orzel <michal.orzel@amd.com>
Reviewed-by: Ayan Kumar Halder <ayan.kumar.halder@amd.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
Michal Orzel committed 2025-06-30 11:50:50 +02:00
1 parent 71880d7ca4
commit fe6a12a083
2 files changed
-9

No files matched your search

-4
View File
@@ -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)
-5
View File
@@ -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));
}
/*
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.