* [PATCH] ARM: mm: drop kimage_voffset which was only used by KVM
@ 2020-04-13 10:36 Ard Biesheuvel
2020-04-13 11:15 ` Marc Zyngier
0 siblings, 1 reply; 2+ messages in thread
From: Ard Biesheuvel @ 2020-04-13 10:36 UTC (permalink / raw)
To: linux-arm-kernel; +Cc: maz, linux, 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.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
---
arch/arm/mm/mmu.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
index ec8d0008bfa1..36660bb031d1 100644
--- a/arch/arm/mm/mmu.c
+++ b/arch/arm/mm/mmu.c
@@ -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)
--
2.17.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: mm: drop kimage_voffset which was only used by KVM
2020-04-13 10:36 [PATCH] ARM: mm: drop kimage_voffset which was only used by KVM Ard Biesheuvel
@ 2020-04-13 11:15 ` Marc Zyngier
0 siblings, 0 replies; 2+ messages in thread
From: Marc Zyngier @ 2020-04-13 11:15 UTC (permalink / raw)
To: Ard Biesheuvel; +Cc: linux, linux-arm-kernel
On 2020-04-13 11:36, Ard Biesheuvel wrote:
> 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.
>
> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
> ---
> arch/arm/mm/mmu.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
> index ec8d0008bfa1..36660bb031d1 100644
> --- a/arch/arm/mm/mmu.c
> +++ b/arch/arm/mm/mmu.c
> @@ -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)
Acked-by: Marc Zyngier <maz@kernel.org>
Thanks,
M.
--
Jazz is not dead. It just smells funny...
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-13 11:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-13 10:36 [PATCH] ARM: mm: drop kimage_voffset which was only used by KVM Ard Biesheuvel
2020-04-13 11:15 ` Marc Zyngier
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.