xen/arm: Drop frametable_virt_end
PATCH 1/1 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 <[email protected]>
--- xen/arch/arm/include/asm/config.h | 4 ---- xen/arch/arm/mmu/mm.c | 5 ----- 2 files changed, 9 deletions(-)
xen/arch/arm/include/asm/config.h +0 -4
@@ -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)
xen/arch/arm/mmu/mm.c +0 -5
@@ -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 )); }/*
Signature · 1 line
2.25.1
Hi Michal,
Quoted 4 lines · Michal Orzel
It has never been used since the introduction and is technically a dead code violating MISRA C.
Signed-off-by Michal Orzel <[email protected]>
Reviewed-by Ayan Kumar Halder <[email protected]>
- Ayan
Quoted 4 lines · Michal Orzel
It has never been used since the introduction and is technically a dead code violating MISRA C.
Signed-off-by Michal Orzel <[email protected]>
Reviewed-by Stefano Stabellini <[email protected]>