Message ID | 019379a12759bf5b3f14cf66c5e8742cc71bced3.1639156389.git.skhan@linuxfoundation.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F1F7C433F5 for <linux-mm@archiver.kernel.org>; Fri, 10 Dec 2021 17:35:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 45BB46B0074; Fri, 10 Dec 2021 12:33:42 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 399186B0080; Fri, 10 Dec 2021 12:33:42 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 05F6D6B0078; Fri, 10 Dec 2021 12:33:42 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0060.hostedemail.com [216.40.44.60]) by kanga.kvack.org (Postfix) with ESMTP id E4ABA6B0075 for <linux-mm@kvack.org>; Fri, 10 Dec 2021 12:33:41 -0500 (EST) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 9C4A682DB2 for <linux-mm@kvack.org>; Fri, 10 Dec 2021 17:33:31 +0000 (UTC) X-FDA: 78902581422.25.906FD4A Received: from mail-ot1-f42.google.com (mail-ot1-f42.google.com [209.85.210.42]) by imf21.hostedemail.com (Postfix) with ESMTP id 0C0471C0009 for <linux-mm@kvack.org>; Fri, 10 Dec 2021 17:33:29 +0000 (UTC) Received: by mail-ot1-f42.google.com with SMTP id a23-20020a9d4717000000b0056c15d6d0caso10280456otf.12 for <linux-mm@kvack.org>; Fri, 10 Dec 2021 09:33:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uh/Z9FDGr3qAAzEx+UXrnnj7QMHTF1v60adwa/WDWsE=; b=QvxE5B8BPn73UwnQSq14JPyQUVNaNUdzJIk09czGGhqGyoNq67Gtxk3CzYxR01hbht xtbSOHY32W87o9On8opuVK6zWIF+ANh7V/TPVN/bXzmOht/nwv8Fe+7n2kGi6lBbGAX0 4aIaRtWSG8tsp1iF8NMv6Vq3Ozl9ooZRMar7o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uh/Z9FDGr3qAAzEx+UXrnnj7QMHTF1v60adwa/WDWsE=; b=uJ2OZYojlq4dUmYjCO4kZ4vPxnBJIv6Q2JcjnrDLlxlOJJxLb+BVagEjwv9xdzrgnf LTk+vF2gjSqx4nsa3s/vIsfVanLYhhVrJRYDcJDJgkjqliJgxQc/P8TLi49bPrUzxcWQ j9DHIcNykO/wv605f5E6EghqUruj+qrL78px7EXKLkRNFjJiXWuGCpe26+sfmrXt2EDY EyMeZWvE4QkjXLuo4+Hm0HFZVmswSMd89eP6qQzqtQJ+95XxZ5EnLp3ShVVGxukpMk7K u9db3NpQCmRFro8CGpKqvpKtiyuO5ebwOfnBMivcsrc8qF8Ge5P0v/1sEsvAzYc14N6L gYyQ== X-Gm-Message-State: AOAM531R2plrrC52FTcG/zYTR9D2FLlnTwDpsCGUsvHFZ2SAT1kmxgAI 3M2UcAI3jteFYaQRIm1HE6gADV3sxmAEhQ== X-Google-Smtp-Source: ABdhPJx4YSaRrvZVxbri/pWyy+QD/g1KBhe+XS0kuK/s8ZRC/VWuwyewAD6/3CwmIMT4Ovj4Oe4jIQ== X-Received: by 2002:a9d:8c2:: with SMTP id 60mr12177010otf.174.1639157610565; Fri, 10 Dec 2021 09:33:30 -0800 (PST) Received: from shuah-t480s.internal (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id x4sm892224oiv.35.2021.12.10.09.33.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Dec 2021 09:33:30 -0800 (PST) From: Shuah Khan <skhan@linuxfoundation.org> To: catalin.marinas@arm.com, will@kernel.org, shuah@kernel.org, keescook@chromium.org, mic@digikod.net, davem@davemloft.net, kuba@kernel.org, peterz@infradead.org, paulmck@kernel.org, boqun.feng@gmail.com, akpm@linux-foundation.org Cc: Shuah Khan <skhan@linuxfoundation.org>, linux-kselftest@vger.kernel.org, linux-security-module@vger.kernel.org, netdev@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 05/12] selftests/ir: remove ARRAY_SIZE define from ir_loopback.c Date: Fri, 10 Dec 2021 10:33:15 -0700 Message-Id: <019379a12759bf5b3f14cf66c5e8742cc71bced3.1639156389.git.skhan@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <cover.1639156389.git.skhan@linuxfoundation.org> References: <cover.1639156389.git.skhan@linuxfoundation.org> MIME-Version: 1.0 X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 0C0471C0009 X-Stat-Signature: q3hfpxpu4a9d9ouztdcmrsryyfptdh6y Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=linuxfoundation.org header.s=google header.b=QvxE5B8B; dmarc=pass (policy=none) header.from=linuxfoundation.org; spf=pass (imf21.hostedemail.com: domain of skhan@linuxfoundation.org designates 209.85.210.42 as permitted sender) smtp.mailfrom=skhan@linuxfoundation.org X-HE-Tag: 1639157609-380493 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000078, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
selftests: Remove ARRAY_SIZE duplicate defines
|
expand
|
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
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@linuxfoundation.org> --- tools/testing/selftests/ir/ir_loopback.c | 1 - 1 file changed, 1 deletion(-)