arm64: define BUG() instruction without CONFIG_BUG
authorArnd Bergmann <arnd@arndb.de>
Tue, 14 Mar 2017 21:39:21 +0000 (22:39 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 22 Mar 2017 17:21:37 +0000 (17:21 +0000)
commitf13d52cb3fad03c237572be2ee691e1fe2d1d7bb
tree5ab6ea7adaa1e5bd40ab2c747290108fe3232514
parentc651aae5a7732287c1c9bc974ece4ed798780544
arm64: define BUG() instruction without CONFIG_BUG

This mirrors commit e9c38ceba8d9 ("ARM: 8455/1: define __BUG as
asm(BUG_INSTR) without CONFIG_BUG") to make the behavior of
arm64 consistent with arm and x86, and avoids lots of warnings in
randconfig builds, such as:

kernel/seccomp.c: In function '__seccomp_filter':
kernel/seccomp.c:666:1: error: no return statement in function returning non-void [-Werror=return-type]

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/bug.h