[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180830223429.30051-6-igor.stoppa@huawei.com>
Date: Fri, 31 Aug 2018 01:34:11 +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>,
Dmitry Safonov <dima@...sta.com>, Shuah Khan <shuah@...nel.org>
Subject: [PATCH 05/23] selftest: vm: add unlikely() to BUG_ON()
BUG_ON() is unlikely() to BUG()
Signed-off-by: Igor Stoppa <igor.stoppa@...wei.com>
Cc: Dmitry Safonov <dima@...sta.com>
Cc: Shuah Khan <shuah@...nel.org>
---
tools/testing/selftests/vm/map_populate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/vm/map_populate.c b/tools/testing/selftests/vm/map_populate.c
index 6b8aeaa0bf7a..ca3f54765897 100644
--- a/tools/testing/selftests/vm/map_populate.c
+++ b/tools/testing/selftests/vm/map_populate.c
@@ -23,7 +23,7 @@
#define BUG_ON(condition, description) \
do { \
- if (condition) { \
+ if (unlikely(condition)) { \
fprintf(stderr, "[FAIL]\t%s:%d\t%s:%s\n", __func__, \
__LINE__, (description), strerror(errno)); \
exit(1); \
--
2.17.1
Powered by blists - more mailing lists