Skip to content

Commit 4d44a39

Browse files
ardbiesheuvelRussell King
authored andcommitted
ARM: 8994/1: mm: drop kimage_voffset which was only used by KVM
Now that KVM support has been removed from the 32-bit ARM port, drop the export kimage_voffset symbol, which no longer has any users. Acked-by: Marc Zyngier <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent 2350ebe commit 4d44a39

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

arch/arm/mm/mmu.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ struct cachepolicy {
7474
pteval_t pte;
7575
};
7676

77-
unsigned long kimage_voffset __ro_after_init;
78-
7977
static struct cachepolicy cache_policies[] __initdata = {
8078
{
8179
.policy = "uncached",
@@ -1654,9 +1652,6 @@ void __init paging_init(const struct machine_desc *mdesc)
16541652

16551653
empty_zero_page = virt_to_page(zero_page);
16561654
__flush_dcache_page(NULL, empty_zero_page);
1657-
1658-
/* Compute the virt/idmap offset, mostly for the sake of KVM */
1659-
kimage_voffset = (unsigned long)&kimage_voffset - virt_to_idmap(&kimage_voffset);
16601655
}
16611656

16621657
void __init early_mm_init(const struct machine_desc *mdesc)

0 commit comments

Comments
 (0)