Message ID | 093209c9eb91462a6d9d0080112379c78d18a33c.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 8BB3DC433EF for <linux-mm@archiver.kernel.org>; Fri, 10 Dec 2021 17:34:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 14D046B0075; Fri, 10 Dec 2021 12:33:42 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 0D4B06B0074; 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 E760C6B007B; Fri, 10 Dec 2021 12:33:41 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0095.hostedemail.com [216.40.44.95]) by kanga.kvack.org (Postfix) with ESMTP id DA9A86B0074 for <linux-mm@kvack.org>; Fri, 10 Dec 2021 12:33:41 -0500 (EST) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 9485982499B9 for <linux-mm@kvack.org>; Fri, 10 Dec 2021 17:33:31 +0000 (UTC) X-FDA: 78902581422.27.318B46C Received: from mail-ot1-f42.google.com (mail-ot1-f42.google.com [209.85.210.42]) by imf24.hostedemail.com (Postfix) with ESMTP id 44805180015 for <linux-mm@kvack.org>; Fri, 10 Dec 2021 17:33:28 +0000 (UTC) Received: by mail-ot1-f42.google.com with SMTP id 35-20020a9d08a6000000b00579cd5e605eso10394687otf.0 for <linux-mm@kvack.org>; Fri, 10 Dec 2021 09:33:29 -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=gk7892EwBeQtmWfsZIAYujFfNQTmGWtEjgsjRv69+2g=; b=cLDJy7RNXkPVErf7+3pf0+bZ3jiuNMCjfkw3gOiwUaBeQdzuD8ZZ1Uyk7KdyZ6E3xp RKmfI7bq+6mGVljth/QC8Cfr74lIcmqnuNiEg9nlkAeFPl9jwYm93xx09FxNLnzAS3md xU6p7pqzKYbFQQDoiFq/PwNxoFT6afSbfUla4= 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=gk7892EwBeQtmWfsZIAYujFfNQTmGWtEjgsjRv69+2g=; b=zOw0y7bYpKIts5fQgDmfernIm0h40oiLEqSgrcxzgAsaSnPPGGTcMgE5NjkluXc9Ko 8Bh4BfYmWOYjFcrWha5SC5/H6rIfIdooeTrCw3Y7mh/z830I4eP5m6htwS0+gX05GAtN fw5r2I6pwuEpSrvqedEbpwPMmGphuLFqVEAkprCTKm9Ob/jrIShYMhzKqZ6VnV9ubz5i yZpzL5BJ7JrUBa3tljuCDDuMvVEgptX2wS7ZjKJc1dY7q7PPPQxjS3W+DMZkLuF7PjYS fS4ubcTzPTH1oBSvLjQZoH1qnacr90n7S89hOfuWvSjAeG4Q10YkgUm6O9cEXnMK3h5/ NyPQ== X-Gm-Message-State: AOAM532OknTxZxm/Fh7Av4DJNhGN5RAUBIDZ5Md1hT3KBJMRo4gqcDdz SuiPtNMDKLsG/wG8type3aclFj2lsR5ojw== X-Google-Smtp-Source: ABdhPJy8XksdNtBxn0PbE6EqXjHVZ9t/h8g8/JvDVwy45IUv5fD/F1510mJLv+/gSB4O0/zZ2hb6RA== X-Received: by 2002:a05:6830:4391:: with SMTP id s17mr12125024otv.118.1639157608654; Fri, 10 Dec 2021 09:33:28 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Dec 2021 09:33:28 -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 03/12] selftests/cgroup: remove ARRAY_SIZE define from cgroup_util.h Date: Fri, 10 Dec 2021 10:33:13 -0700 Message-Id: <093209c9eb91462a6d9d0080112379c78d18a33c.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-Queue-Id: 44805180015 Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=linuxfoundation.org header.s=google header.b=cLDJy7RN; spf=pass (imf24.hostedemail.com: domain of skhan@linuxfoundation.org designates 209.85.210.42 as permitted sender) smtp.mailfrom=skhan@linuxfoundation.org; dmarc=pass (policy=none) header.from=linuxfoundation.org X-Rspamd-Server: rspam04 X-Stat-Signature: hxmeawc7ikmxdgpkfy7tffjfjw7ugue1 X-HE-Tag: 1639157608-922340 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000361, 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/cgroup/cgroup_util.h b/tools/testing/selftests/cgroup/cgroup_util.h index 82e59cdf16e7..4f66d10626d2 100644 --- a/tools/testing/selftests/cgroup/cgroup_util.h +++ b/tools/testing/selftests/cgroup/cgroup_util.h @@ -2,9 +2,9 @@ #include <stdbool.h> #include <stdlib.h> -#define PAGE_SIZE 4096 +#include "../kselftest.h" -#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) +#define PAGE_SIZE 4096 #define MB(x) (x << 20)
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 cgroup_util.h and pickup the one defined in kselftest.h. Signed-off-by: Shuah Khan <skhan@linuxfoundation.org> --- tools/testing/selftests/cgroup/cgroup_util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)