lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 31 Aug 2018 01:34:10 +0300 From: Igor Stoppa <igor.stoppa@...il.com> To: linux-kernel@...r.kernel.org Cc: igor.stoppa@...il.com, Igor Stoppa <igor.stoppa@...wei.com>, David Daney <ddaney@...iumnetworks.com>, Ralf Baechle <ralf@...ux-mips.org>, Paul Burton <paul.burton@...s.com>, James Hogan <jhogan@...nel.org> Subject: [PATCH 04/23] mips: bug: add unlikely() to BUG_ON() Add a hint to the compiler that probably it won't be necessary to BUG() Signed-off-by: Igor Stoppa <igor.stoppa@...wei.com> Cc: David Daney <ddaney@...iumnetworks.com> Cc: Ralf Baechle <ralf@...ux-mips.org> Cc: Paul Burton <paul.burton@...s.com> Cc: James Hogan <jhogan@...nel.org> --- arch/mips/include/asm/bug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/include/asm/bug.h b/arch/mips/include/asm/bug.h index 745dc160a069..02101b54aec2 100644 --- a/arch/mips/include/asm/bug.h +++ b/arch/mips/include/asm/bug.h @@ -31,7 +31,7 @@ static inline void __BUG_ON(unsigned long condition) : : "r" (condition), "i" (BRK_BUG)); } -#define BUG_ON(C) __BUG_ON((unsigned long)(C)) +#define BUG_ON(C) __BUG_ON(unlikely((unsigned long)(C))) #define HAVE_ARCH_BUG_ON -- 2.17.1
Powered by blists - more mailing lists