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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D5FB9F557EC for ; Mon, 20 Apr 2026 08:57:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8A19D10F4A6; Mon, 20 Apr 2026 08:57:41 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="BbyUEip+"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id DB18510F4A6 for ; Mon, 20 Apr 2026 08:57:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1776675422; x=1808211422; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8lVw1dGDUi6oNUn6Q5SjDjBIaECMwNeA/Tojlg8sfw8=; b=BbyUEip+4EpA72gcA5Bn4xjPU8fISXP06MlwPXEx66pKVNYPvNo6Hwur MoFVpFRcdXmdZEwoJy8C3XWzZJa2mwE4AF1VftDV8No0honl3fyaTSC+p Q7JSzI2S1yKq5lXAmoMC+EH40vp5NNuD+Vvu9mGybC7SYLwzCylzmNFlt tB8tWL2m92sLHJIsexwPwZ+uA3gjZM4QlatYof7u7S5mWloEFnAuEuKN/ TC+mvUvnB08i11czLCIkYxLg0H6hiLBcu/rnwXWNcsjKy9c2WIrS+I84m 36ptrVpIlhfjnfqLhtox1rJaH2wCefpX77hi3BmD+h/9oNZp5Q2vmYfNo g==; X-CSE-ConnectionGUID: pO8ovUAqSgOXR2hncxDLfA== X-CSE-MsgGUID: 6ko/WJ3lSGqeUDWZLQrRpQ== X-IronPort-AV: E=McAfee;i="6800,10657,11762"; a="88659037" X-IronPort-AV: E=Sophos;i="6.23,189,1770624000"; d="scan'208";a="88659037" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2026 01:57:02 -0700 X-CSE-ConnectionGUID: a+Rza65jRvyFp66WGPbYfQ== X-CSE-MsgGUID: nzyyN3xhQ0agSwXkd3QHKg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,189,1770624000"; d="scan'208";a="269705458" Received: from klitkey1-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.244.56]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2026 01:57:01 -0700 From: =?UTF-8?q?Zbigniew=20Kempczy=C5=84ski?= To: igt-dev@lists.freedesktop.org Cc: =?UTF-8?q?Zbigniew=20Kempczy=C5=84ski?= , Kamil Konieczny , Ryszard Knop , Krzysztof Karas Subject: [PATCH i-g-t v4 1/4] runner: Rename dirfd to avoid clash with dirfd() Date: Mon, 20 Apr 2026 10:56:55 +0200 Message-ID: <20260420085653.2587750-7-zbigniew.kempczynski@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260420085653.2587750-6-zbigniew.kempczynski@intel.com> References: <20260420085653.2587750-6-zbigniew.kempczynski@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" Upcoming change within execute_next_entry() will call dirfd() so rename local dirfd variable is necessary. Signed-off-by: Zbigniew KempczyƄski Cc: Kamil Konieczny Cc: Ryszard Knop Reviewed-by: Kamil Konieczny Reviewed-by: Krzysztof Karas --- runner/executor.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/runner/executor.c b/runner/executor.c index 847abe481a..1485b59d1f 100644 --- a/runner/executor.c +++ b/runner/executor.c @@ -1772,7 +1772,7 @@ static int execute_next_entry(struct execute_state *state, char **abortreason, bool *abort_already_written) { - int dirfd; + int idirfd; int outputs[_F_LAST]; int kmsgfd; int outpipe[2] = { -1, -1 }; @@ -1786,19 +1786,19 @@ static int execute_next_entry(struct execute_state *state, snprintf(name, sizeof(name), "%zd", idx); mkdirat(resdirfd, name, 0777); - if ((dirfd = openat(resdirfd, name, O_DIRECTORY | O_RDONLY | O_CLOEXEC)) < 0) { + if ((idirfd = openat(resdirfd, name, O_DIRECTORY | O_RDONLY | O_CLOEXEC)) < 0) { errf("Error accessing individual test result directory\n"); return -1; } - if (!open_output_files(dirfd, outputs, true)) { + if (!open_output_files(idirfd, outputs, true)) { errf("Error opening output files\n"); result = -1; goto out_dirfd; } if (settings->sync) { - fsync(dirfd); + fsync(idirfd); fsync(resdirfd); } @@ -1900,8 +1900,8 @@ out_pipe: close_outputs(outputs); out_dirfd: if (settings->sync) - fsync(dirfd); - close(dirfd); + fsync(idirfd); + close(idirfd); if (settings->sync) fsync(resdirfd); -- 2.43.0