[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20161216105634.235457-9-arnd@arndb.de>
Date: Fri, 16 Dec 2016 11:56:29 +0100
From: Arnd Bergmann <arnd@...db.de>
To: linux-arch@...r.kernel.org
Cc: linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...r.kernel.org,
Russell King <rmk+kernel@...linux.org.uk>,
Andrew Morton <akpm@...ux-foundation.org>,
kernel-build-reports@...ts.linaro.org,
kvmarm@...ts.cs.columbia.edu, Arnd Bergmann <arnd@...db.de>
Subject: [PATCH 08/13] arm/arm64: xen: avoid gcc-4.4 warning
Ancient gcc doesn't know about __builtin_unreachable(), causing
lots of instances of a harmless warning:
include/xen/arm/page.h: In function 'arbitrary_virt_to_machine':
include/xen/arm/page.h:85: warning: no return statement in function returning non-void
Adding a return statement doesn't change the behavior here, but
shuts up that warning.
Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
include/xen/arm/page.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/xen/arm/page.h b/include/xen/arm/page.h
index 415dbc6e43fd..2485013e3c6f 100644
--- a/include/xen/arm/page.h
+++ b/include/xen/arm/page.h
@@ -82,6 +82,7 @@ static inline unsigned long bfn_to_pfn(unsigned long bfn)
static inline xmaddr_t arbitrary_virt_to_machine(void *vaddr)
{
BUG();
+ return XMADDR(0);
}
/* TODO: this shouldn't be here but it is because the frontend drivers
--
2.9.0
Powered by blists - more mailing lists