From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6D66310E02A for ; Tue, 14 Feb 2023 21:00:13 +0000 (UTC) From: Umesh Nerlige Ramappa To: igt-dev@lists.freedesktop.org Date: Tue, 14 Feb 2023 12:59:42 -0800 Message-Id: <20230214210007.2026033-6-umesh.nerlige.ramappa@intel.com> In-Reply-To: <20230214210007.2026033-1-umesh.nerlige.ramappa@intel.com> References: <20230214210007.2026033-1-umesh.nerlige.ramappa@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH 05/30] i915/perf: Use ARRAY_SIZE for buffer-fill test List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lionel G Landwerlin Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: A prior patch changed the way size of properties is calculated. It missed one test. Replace the sizeof with ARRAY_SIZE for buffer-fill test. Signed-off-by: Umesh Nerlige Ramappa --- tests/i915/perf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/i915/perf.c b/tests/i915/perf.c index 02414e06..77bda442 100644 --- a/tests/i915/perf.c +++ b/tests/i915/perf.c @@ -2573,7 +2573,7 @@ test_buffer_fill(void) }; struct drm_i915_perf_open_param param = { .flags = I915_PERF_FLAG_FD_CLOEXEC, - .num_properties = sizeof(properties) / 16, + .num_properties = ARRAY_SIZE(properties) / 2, .properties_ptr = to_user_pointer(properties), }; struct drm_i915_perf_record_header *header; -- 2.36.1