[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <019379a12759bf5b3f14cf66c5e8742cc71bced3.1639156389.git.skhan@linuxfoundation.org>
Date: Fri, 10 Dec 2021 10:33:15 -0700
From: Shuah Khan <skhan@...uxfoundation.org>
To: catalin.marinas@....com, will@...nel.org, shuah@...nel.org,
keescook@...omium.org, mic@...ikod.net, davem@...emloft.net,
kuba@...nel.org, peterz@...radead.org, paulmck@...nel.org,
boqun.feng@...il.com, akpm@...ux-foundation.org
Cc: Shuah Khan <skhan@...uxfoundation.org>,
linux-kselftest@...r.kernel.org,
linux-security-module@...r.kernel.org, netdev@...r.kernel.org,
linux-mm@...ck.org
Subject: [PATCH 05/12] selftests/ir: remove ARRAY_SIZE define from ir_loopback.c
ARRAY_SIZE is defined in several selftests. Remove definitions from
individual test files and include header file for the define instead.
ARRAY_SIZE define is added in a separate patch to prepare for this
change.
Remove ARRAY_SIZE from ir_loopback.c and pickup the one defined
in kselftest.h.
Signed-off-by: Shuah Khan <skhan@...uxfoundation.org>
---
tools/testing/selftests/ir/ir_loopback.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/tools/testing/selftests/ir/ir_loopback.c b/tools/testing/selftests/ir/ir_loopback.c
index af7f9c7d59bc..06256c96df12 100644
--- a/tools/testing/selftests/ir/ir_loopback.c
+++ b/tools/testing/selftests/ir/ir_loopback.c
@@ -26,7 +26,6 @@
#include "../kselftest.h"
#define TEST_SCANCODES 10
-#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
#define SYSFS_PATH_MAX 256
#define DNAME_PATH_MAX 256
--
2.32.0
Powered by blists - more mailing lists