]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: define BUG() instruction without CONFIG_BUG
authorArnd Bergmann <arnd@arndb.de>
Tue, 14 Mar 2017 21:39:21 +0000 (22:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Feb 2018 10:03:42 +0000 (11:03 +0100)
commit93e482ea8557e91d5944142091193f79e6dfcee8
treeb69e6efdcad4de2a32efb3d73642572124e0df41
parente2ac5159c5c126f90490305e8de128a5384aef43
arm64: define BUG() instruction without CONFIG_BUG

commit f13d52cb3fad03c237572be2ee691e1fe2d1d7bb upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/bug.h