OSDN Git Service

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:05:52 +0000 (11:05 +0100)
commit2e44ee5fc97657ef53b79118814f787449fbd6b8
treea1979a1880b69cfec72cdf8f0678de5c71a38a39
parent9f47b68eabcf126cd1caec7fcbbb16e1ecc0f09c
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