From 10cca81401a046b06d32e551c1184d3f95e5e062 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Mon, 4 Mar 2019 10:51:25 +0900 Subject: [PATCH] arm64 vdso warning: fix non-void function not returning arch_setup_vdso() needs to return something even on panic to please gcc. In theory, flagging panic() with __attribute__((noreturn)) should work just the same and is a much better solution but for some reason on older gcc versions setting the flag leads to the weak memset() symbol not being found !? Change-Id: Ifed100df5440ca24bb495817db9afc79f0ba6751 --- arch/arm64/kernel/vdso.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c index a629a548..acf93447 100644 --- a/arch/arm64/kernel/vdso.c +++ b/arch/arm64/kernel/vdso.c @@ -87,6 +87,7 @@ int arch_setup_vdso(void) } panic("Only support host mapping vDSO"); + return -1; } static int get_free_area(struct process_vm *vm, size_t len, intptr_t hint,