Skip to contentSkip to conversation

ARM: mm: drop kimage_voffset which was only used by KVM

PATCH In review Ard Biesheuvel 2 participants 2 messages Apr 13, 2020 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: 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.

---
 arch/arm/mm/mmu.c | 5 -----
 1 file changed, 5 deletions(-)
arch/arm/mm/mmu.c +0 -5
index ec8d0008bfa1..36660bb031d1 100644
@@ -74,8 +74,6 @@ struct cachepolicy {
 	pteval_t	pte;
 };
 
-unsigned long kimage_voffset __ro_after_init;
-
 static struct cachepolicy cache_policies[] __initdata = {
 	{
 		.policy		= "uncached",
@@ -1636,9 +1634,6 @@ void __init paging_init(const struct machine_desc *mdesc)
 
 	empty_zero_page = virt_to_page(zero_page);
 	__flush_dcache_page(NULL, empty_zero_page);
-
-	/* Compute the virt/idmap offset, mostly for the sake of KVM */
-	kimage_voffset = (unsigned long)&kimage_voffset - virt_to_idmap(&kimage_voffset);
 }
 
 void __init early_mm_init(const struct machine_desc *mdesc)
Signature · 7 lines
2.17.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Acked-by on v1 1/1
#1 lore raw
Quoted 33 lines · Ard Biesheuvel

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.

---
 arch/arm/mm/mmu.c | 5 -----
 1 file changed, 5 deletions(-)
arch/arm/mm/mmu.c +0 -5
index ec8d0008bfa1..36660bb031d1 100644
@@ -74,8 +74,6 @@ struct cachepolicy {
 	pteval_t	pte;
 };
 
-unsigned long kimage_voffset __ro_after_init;
-
 static struct cachepolicy cache_policies[] __initdata = {
 	{
 		.policy		= "uncached",
@@ -1636,9 +1634,6 @@ void __init paging_init(const struct machine_desc 
 *mdesc)
 
 	empty_zero_page = virt_to_page(zero_page);
 	__flush_dcache_page(NULL, empty_zero_page);
-
-	/* Compute the virt/idmap offset, mostly for the sake of KVM */
-	kimage_voffset = (unsigned long)&kimage_voffset -
 virt_to_idmap(&kimage_voffset);
 }
Quoted 1 line

void __init early_mm_init(const struct machine_desc *mdesc)

Thanks,

        M.
Signature · 6 lines
Jazz is not dead. It just smells funny...

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel