From: Jan Kiszka <[email protected]> This gives
warning: listing the stack pointer register ‘sp’ in a clobber list is deprecated note: the value of the stack pointer after an ‘asm’ statement must be the same as it was before the statement with gcc 9. Obviously, this cannot be fulfilled in the given case as it is one of the purposes of the assembly block. But as there is no code after it anyway, it's safe to drop sp from the clobbering list. Signed-off-by: Jan Kiszka <[email protected]> --- hypervisor/arch/arm/mmu_hyp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/arch/arm/mmu_hyp.c b/hypervisor/arch/arm/mmu_hyp.c index 1fcebef5..8a897f2b 100644 --- a/hypervisor/arch/arm/mmu_hyp.c +++ b/hypervisor/arch/arm/mmu_hyp.c @@ -199,7 +199,7 @@ setup_mmu_el2(unsigned long phys_cpu_data, phys2virt_t phys2virt, u64 ttbr) "bx r0\n\t" : : "r" (LOCAL_CPU_BASE - phys_cpu_data), "r" (phys2virt) - : "cc", "r0", "r1", "r2", "r3", "lr", "sp"); + : "cc", "r0", "r1", "r2", "r3", "lr"); } /* -- 2.26.2 -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/53235704-e0d1-3cc8-d29d-a993a3c5995d%40siemens.com.
