From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 5DBE5C4332F for ; Mon, 13 Dec 2021 15:34:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B83BA6B0073; Mon, 13 Dec 2021 10:34:37 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B328A6B0074; Mon, 13 Dec 2021 10:34:37 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A21126B0075; Mon, 13 Dec 2021 10:34:37 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay026.a.hostedemail.com [64.99.140.26]) by kanga.kvack.org (Postfix) with ESMTP id 9254B6B0073 for ; Mon, 13 Dec 2021 10:34:37 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 5CDEE21E23 for ; Mon, 13 Dec 2021 15:34:27 +0000 (UTC) X-FDA: 78913167774.05.B8EE8C4 Received: from smtp-42a9.mail.infomaniak.ch (smtp-42a9.mail.infomaniak.ch [84.16.66.169]) by imf22.hostedemail.com (Postfix) with ESMTP id D7508C001A for ; Mon, 13 Dec 2021 15:34:25 +0000 (UTC) Received: from smtp-2-0001.mail.infomaniak.ch (unknown [10.5.36.108]) by smtp-2-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4JCQXw17gBzMqH2b; Mon, 13 Dec 2021 16:34:24 +0100 (CET) Received: from ns3096276.ip-94-23-54.eu (unknown [23.97.221.149]) by smtp-2-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4JCQXt3Z4tzlj3w5; Mon, 13 Dec 2021 16:34:22 +0100 (CET) Message-ID: <7ab490d6-ac17-8383-4c84-e4cbcbd7fab0@digikod.net> Date: Mon, 13 Dec 2021 16:36:27 +0100 MIME-Version: 1.0 User-Agent: Subject: Re: [PATCH 06/12] selftests/landlock: remove ARRAY_SIZE define from common.h Content-Language: en-US To: Shuah Khan , catalin.marinas@arm.com, will@kernel.org, shuah@kernel.org, keescook@chromium.org, davem@davemloft.net, kuba@kernel.org, peterz@infradead.org, paulmck@kernel.org, boqun.feng@gmail.com, akpm@linux-foundation.org Cc: linux-kselftest@vger.kernel.org, linux-security-module@vger.kernel.org, netdev@vger.kernel.org, linux-mm@kvack.org References: From: =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: D7508C001A X-Stat-Signature: orp48ahp61ej8kmk6ko85974oyzc6kei Authentication-Results: imf22.hostedemail.com; dkim=none; spf=pass (imf22.hostedemail.com: domain of mic@digikod.net designates 84.16.66.169 as permitted sender) smtp.mailfrom=mic@digikod.net; dmarc=none X-HE-Tag: 1639409665-553826 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000006, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 10/12/2021 18:33, Shuah Khan wrote: > 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 common.h and pickup the one defined in > kselftest.h. > > Signed-off-by: Shuah Khan Acked-by: Mickaël Salaün > --- > tools/testing/selftests/landlock/common.h | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/tools/testing/selftests/landlock/common.h b/tools/testing/selftests/landlock/common.h > index 20e2a9286d71..183b7e8e1b95 100644 > --- a/tools/testing/selftests/landlock/common.h > +++ b/tools/testing/selftests/landlock/common.h > @@ -17,10 +17,6 @@ > > #include "../kselftest_harness.h" > > -#ifndef ARRAY_SIZE > -#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) > -#endif > - > /* > * TEST_F_FORK() is useful when a test drop privileges but the corresponding > * FIXTURE_TEARDOWN() requires them (e.g. to remove files from a directory >