]> git.baikalelectronics.ru Git - kernel.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)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 22 Mar 2017 17:21:37 +0000 (17:21 +0000)
commit97920f91fa3a5e54a904545df5f170a3eeb4bc77
tree5ab6ea7adaa1e5bd40ab2c747290108fe3232514
parentfa601df4300ea215ed5dd3fcb45310cf3763f757
arm64: define BUG() instruction without CONFIG_BUG

This mirrors commit dbae3ffd2486 ("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