From patchwork Fri May 2 12:03:50 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 887331 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2E5F22D4DB; Fri, 2 May 2025 12:03:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746187439; cv=none; b=e+v/XfpssIqmblavT/VtwkEnivD/PwVJEwUKtBe4x/KMAWcZz8DZv/pTsynOCqCydW7SiFRSSoKNJN8Y9WSjXeVuhdXYOI9fp36RaZvEpslT6yeNRJ9imWTMOrN39VhyI1SojQh354caYurQhJl+pVEhkVY3wIn4U5B/wvC3DIE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746187439; c=relaxed/simple; bh=E3AueClkwR2N+GQSYCxK6LEoGj4sOArLMp5wfE67WKQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZlhSBuaaghjqq4EK0BMzAD1iGAcLxxxPFC0rGWuC9csor0fwn8YkzUxWHAN0pj2Q0Kbe6GR3fsTZaYV4iL6Ki8Y3XOdXcVTrWIBC3bwaKoGP+JbCS10+QJEZ1kGVcBRBNX20POsFiBTT5iBa8BMHBdyKi/tJ1+YR9QyZnvdFZaA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=io6Wbuwn; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=f7d2yuh5; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="io6Wbuwn"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="f7d2yuh5" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1746187435; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mabMKuekHMCjBzOW268flwwbg7jhcHcFTug4i1NeKhA=; b=io6WbuwnsyX3pWhy+Rt5zFTBefvCctPqE308jeIiShSqn5DnYObSopAmIDYrfOXP51HM5P fuhD+e70ikbritpq156jLHKsDsKpNl8iU73q3/BYc8lhHs1Gun076wWThGazcS8/1fW0y0 mJsdA25qMUJ/yPREcVt49+TP8WpcTjuvc0CUqoL02rsZvJA1mV3lmYGbafbIRokFGnkxN6 QKzkH91CTumaj6+gLFsOWZjn/WuXpq80FDxiiK+mLTXIsPMBBRX1BaIddebopwRD7dDtBl sBg2+V5sVtr0f8oN1l/o2XxSN1mo6OHBPC39V6XGanEgdoQR4A76U1rKB2BaVg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1746187435; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mabMKuekHMCjBzOW268flwwbg7jhcHcFTug4i1NeKhA=; b=f7d2yuh5bAWYZZ4xQlh3gm0Kl9BN5DM9+0vojIv/vVTZyuk9N/OuPr3aqGAxhVVf2yWycC WnLOcOjhTzLPElDg== Date: Fri, 02 May 2025 14:03:50 +0200 Subject: [PATCH 1/3] selftests/timens: Print TAP headers Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250502-selftests-timens-fixes-v1-1-fb517c76f04d@linutronix.de> References: <20250502-selftests-timens-fixes-v1-0-fb517c76f04d@linutronix.de> In-Reply-To: <20250502-selftests-timens-fixes-v1-0-fb517c76f04d@linutronix.de> To: Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1746187432; l=4907; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=E3AueClkwR2N+GQSYCxK6LEoGj4sOArLMp5wfE67WKQ=; b=mTdVCIciiLP7jSpIlh1fngftlcPTtZMdXYMnrSeUeaa706IgUMDYjmxdGXeybgBUBnCyvyyYZ vQmqm85IWp0CDaoc7DDDYoQKMKKtUgEx1mH6V9X7O2cdYDPW99ILjva X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The TAP specification requires that the output begins with a header line. These headers lines are missing in the timens tests. Print such a line. Signed-off-by: Thomas Weißschuh --- tools/testing/selftests/timens/clock_nanosleep.c | 2 ++ tools/testing/selftests/timens/exec.c | 2 ++ tools/testing/selftests/timens/futex.c | 2 ++ tools/testing/selftests/timens/gettime_perf.c | 2 ++ tools/testing/selftests/timens/procfs.c | 2 ++ tools/testing/selftests/timens/timens.c | 2 ++ tools/testing/selftests/timens/timer.c | 2 ++ tools/testing/selftests/timens/timerfd.c | 2 ++ tools/testing/selftests/timens/vfork_exec.c | 2 ++ 9 files changed, 18 insertions(+) diff --git a/tools/testing/selftests/timens/clock_nanosleep.c b/tools/testing/selftests/timens/clock_nanosleep.c index 72d41b955fb2263ae74c34b446fb322d1bd50c6a..346bff3d128dfa8c8c743cc2eba74917994bb2f7 100644 --- a/tools/testing/selftests/timens/clock_nanosleep.c +++ b/tools/testing/selftests/timens/clock_nanosleep.c @@ -115,6 +115,8 @@ int main(int argc, char *argv[]) { int ret, nsfd; + ksft_print_header(); + nscheck(); ksft_set_plan(4); diff --git a/tools/testing/selftests/timens/exec.c b/tools/testing/selftests/timens/exec.c index d12ff955de0d8f6665fa957e81438e373af9f92c..a644162d56fdc86827b83a45f83c2597c253aa6a 100644 --- a/tools/testing/selftests/timens/exec.c +++ b/tools/testing/selftests/timens/exec.c @@ -36,6 +36,8 @@ int main(int argc, char *argv[]) return 0; } + ksft_print_header(); + nscheck(); ksft_set_plan(1); diff --git a/tools/testing/selftests/timens/futex.c b/tools/testing/selftests/timens/futex.c index 6b2b9264e851caed06a628589eda0bf81ff33f16..339633ae037a74d2026ca835ac8600cd0394ae01 100644 --- a/tools/testing/selftests/timens/futex.c +++ b/tools/testing/selftests/timens/futex.c @@ -66,6 +66,8 @@ int main(int argc, char *argv[]) pid_t pid; struct timespec mtime_now; + ksft_print_header(); + nscheck(); ksft_set_plan(2); diff --git a/tools/testing/selftests/timens/gettime_perf.c b/tools/testing/selftests/timens/gettime_perf.c index 6b13dc277724126a9d2d5e17c805217760df72ad..d6658b7b754877fbf67237d6c22787a2a89066ce 100644 --- a/tools/testing/selftests/timens/gettime_perf.c +++ b/tools/testing/selftests/timens/gettime_perf.c @@ -67,6 +67,8 @@ int main(int argc, char *argv[]) time_t offset = 10; int nsfd; + ksft_print_header(); + ksft_set_plan(8); fill_function_pointers(); diff --git a/tools/testing/selftests/timens/procfs.c b/tools/testing/selftests/timens/procfs.c index 1833ca97eb247b1b45b7a86f0ca800d4a6e58c74..0a9ff90ee69a9327ed905428f1462fa189ffd830 100644 --- a/tools/testing/selftests/timens/procfs.c +++ b/tools/testing/selftests/timens/procfs.c @@ -180,6 +180,8 @@ int main(int argc, char *argv[]) { int ret = 0; + ksft_print_header(); + nscheck(); ksft_set_plan(2); diff --git a/tools/testing/selftests/timens/timens.c b/tools/testing/selftests/timens/timens.c index 387220791a052e6013bd0fb4162f123d85152183..a9c0534ef8f67184c34882ae163472c179f593e4 100644 --- a/tools/testing/selftests/timens/timens.c +++ b/tools/testing/selftests/timens/timens.c @@ -151,6 +151,8 @@ int main(int argc, char *argv[]) time_t offset; int ret = 0; + ksft_print_header(); + nscheck(); check_supported_timers(); diff --git a/tools/testing/selftests/timens/timer.c b/tools/testing/selftests/timens/timer.c index 5b939f59dfa4d64e4c2e4dc8eb6a644d44211f13..51babe63e233bdaaef35c1cafbcb5b5cc91c021e 100644 --- a/tools/testing/selftests/timens/timer.c +++ b/tools/testing/selftests/timens/timer.c @@ -75,6 +75,8 @@ int main(int argc, char *argv[]) pid_t pid; struct timespec btime_now, mtime_now; + ksft_print_header(); + nscheck(); check_supported_timers(); diff --git a/tools/testing/selftests/timens/timerfd.c b/tools/testing/selftests/timens/timerfd.c index a4196bbd6e33f41b6a3ae346070037aff1cf4087..e58bc8b64ce2738dccb8c2a2c88e592c237b55d5 100644 --- a/tools/testing/selftests/timens/timerfd.c +++ b/tools/testing/selftests/timens/timerfd.c @@ -82,6 +82,8 @@ int main(int argc, char *argv[]) pid_t pid; struct timespec btime_now, mtime_now; + ksft_print_header(); + nscheck(); check_supported_timers(); diff --git a/tools/testing/selftests/timens/vfork_exec.c b/tools/testing/selftests/timens/vfork_exec.c index 5b8907bf451dde3f3e2699f87797c155b9115aab..b957e1a651243adde41ec5cd57bbd12a7cac9eeb 100644 --- a/tools/testing/selftests/timens/vfork_exec.c +++ b/tools/testing/selftests/timens/vfork_exec.c @@ -91,6 +91,8 @@ int main(int argc, char *argv[]) return check("child after exec", &now); } + ksft_print_header(); + nscheck(); ksft_set_plan(4); From patchwork Fri May 2 12:03:51 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 887330 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 87A2A23E34D; Fri, 2 May 2025 12:03:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746187440; cv=none; b=Nq2I5wvKKRXp8EJfDqIi2BOsFWl5+W2AvFGAbMHwKVvH21a51rb35AhXlSndDGLB1Arf8uDE3Jwpv3kn1QiowKkl+FwnGvbbmTsrmHWc4MfOoCXKYqYtZMDXqcFURhVmHcNGWDL0pIfzbfl+6n7EQZYbSLHqLPPj9CdbzkrcgLQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746187440; c=relaxed/simple; bh=bKYg1D2ylPp8HO3cA0WaB8pof/yiIbtfXjk7xmZzDzc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ryn6MRpWe17sirRK4VPB3twMBIUTAVceenhHrUuBlr8/eUwJVSPzK7XrVSmkaAWjMqQ7F9BzHPlNDUd4uzkUsEiKT33Wxg6cK0sCqvfyUEycKXvTwe4s5yog2ij1M9qpwftpWIrJyr1bJzm/bRLLu+jqma7GbaeiVbrX3gQSD7w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=t8A29vJL; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=04+ZMncK; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="t8A29vJL"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="04+ZMncK" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1746187436; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=edZd0kV0+koCw8lYbVPKuVCGx2sjEO4QeAvt2CTLOrU=; b=t8A29vJLeAWrPpm9+cfpaWTxuj2SLMXDJ7Murig9t8TeUBbaD6oshjELh0ZYmNBcsL53mj QwA6lPkzuHhZqjL1lZQhthON+jWdTeB0LolIXsjibl+5ZNpF7xa4hJtLCc0vzf2l3ell59 LHaMQWNzCsRRAZrleQvC1MfmpOqO/rjUN9leLUTQlzUGETHEEbuVYcaCiTEnDtbr+3/G6c Vji6yKHaSwId3VZTrIFkhAbtFTLZJz89CNdgXqJiQq+/D7QhrzXz52sLwrJ+hQ1kT6HErr VZFiwQiqff54x+rpkEdnoG7qPfB4quoCbJ8eLUFtvwUIPMoBXzN7eVC0Kd03cA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1746187436; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=edZd0kV0+koCw8lYbVPKuVCGx2sjEO4QeAvt2CTLOrU=; b=04+ZMncK9KnkTzlHbZheAQFHNfvK5VBdEoaUd1v2MiA3C8ozyupeT8+R5raT1MzGQG8pPi dKaX5n6SLEh7fNDg== Date: Fri, 02 May 2025 14:03:51 +0200 Subject: [PATCH 2/3] selftests/timens: Make run_tests() functions static Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250502-selftests-timens-fixes-v1-2-fb517c76f04d@linutronix.de> References: <20250502-selftests-timens-fixes-v1-0-fb517c76f04d@linutronix.de> In-Reply-To: <20250502-selftests-timens-fixes-v1-0-fb517c76f04d@linutronix.de> To: Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1746187432; l=2103; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=bKYg1D2ylPp8HO3cA0WaB8pof/yiIbtfXjk7xmZzDzc=; b=acb0eMtHrGWKZdR0oM4H8sgxr9Z4EI2aRm0mDmSEvKjsc1Mp7EKSbnWDGaaePhGz/FJjcDwIF s4OpwNiEjKyAJL1JGLaK1OQNQJCRHi12Pmmw9LgNqhEXAXlkDvTYdX6 X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= These functions are never used outside their defining compilation unit and can be made static. Signed-off-by: Thomas Weißschuh --- tools/testing/selftests/timens/clock_nanosleep.c | 2 +- tools/testing/selftests/timens/timer.c | 2 +- tools/testing/selftests/timens/timerfd.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/timens/clock_nanosleep.c b/tools/testing/selftests/timens/clock_nanosleep.c index 346bff3d128dfa8c8c743cc2eba74917994bb2f7..5cc0010e85ff00e00c89940a82268994a1769873 100644 --- a/tools/testing/selftests/timens/clock_nanosleep.c +++ b/tools/testing/selftests/timens/clock_nanosleep.c @@ -38,7 +38,7 @@ void *call_nanosleep(void *_args) return NULL; } -int run_test(int clockid, int abs) +static int run_test(int clockid, int abs) { struct timespec now = {}, rem; struct thread_args args = { .now = &now, .rem = &rem, .clockid = clockid}; diff --git a/tools/testing/selftests/timens/timer.c b/tools/testing/selftests/timens/timer.c index 51babe63e233bdaaef35c1cafbcb5b5cc91c021e..79543ceb2c0f97fdd638271a762c97a8b19d9a4a 100644 --- a/tools/testing/selftests/timens/timer.c +++ b/tools/testing/selftests/timens/timer.c @@ -15,7 +15,7 @@ #include "log.h" #include "timens.h" -int run_test(int clockid, struct timespec now) +static int run_test(int clockid, struct timespec now) { struct itimerspec new_value; long long elapsed; diff --git a/tools/testing/selftests/timens/timerfd.c b/tools/testing/selftests/timens/timerfd.c index e58bc8b64ce2738dccb8c2a2c88e592c237b55d5..d6adf66bd8df064f5b76ccc265c13217d7a53f5b 100644 --- a/tools/testing/selftests/timens/timerfd.c +++ b/tools/testing/selftests/timens/timerfd.c @@ -22,7 +22,7 @@ static int tclock_gettime(clock_t clockid, struct timespec *now) return clock_gettime(clockid, now); } -int run_test(int clockid, struct timespec now) +static int run_test(int clockid, struct timespec now) { struct itimerspec new_value; long long elapsed; From patchwork Fri May 2 12:03:52 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 886784 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 879C922A7E2; Fri, 2 May 2025 12:03:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746187440; cv=none; b=nZ5jwBWqrlyqsw4Fx+Jl/yvTSuMObf+Iq7CvRZoRKbjMt+PYIAEOv5ny99Dtqk/DWTb4njbZu/gpihrZIsqjxgJlFaoZMgsfm3FGkybdYBcFpS7nKzhOPHIN8ei37ot42IDdAJhLJ/lo2VK5zJ9Yr2wuoYei0XwKnM43LVxPLu4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746187440; c=relaxed/simple; bh=Le/SWYfSH/kGVW6ptZ6Ul3m1kirAQHpQ9706grwfzos=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CiDqswUTZSx7tBeQ1bLKs/OLUSyaqhCYIrpwuNKv8njrvNLuwmLrImMQAG+fnr5KKSgt3XWGrqiubI6YKPuknR12uyzuUmdJrL/PZGgFWX+ih5Mq7KFx1Vq38p0dpz4FEpjtpL8HhqBmUYb1c9GPbQBIVf+eSTnn2dCxf8R/FZ8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=jQGaOsIs; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=vPaNF++h; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="jQGaOsIs"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="vPaNF++h" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1746187436; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jYTGSftcl8LW2JMow7gIBVI+Bpm0vOk2cjj2v4azH3g=; b=jQGaOsIsiBOkcRg4UG6HX9UnWzqQIrfbc/z4jMp6IqTLuFxnDKoGp7O0zcb4Wc3Hk14uI1 kyHOC/rDYpEbWZsNh/Svx9SpQIYYbMuQuJygh9/fVBjKDxHrwxQktseUlrWSmBUzIo97Qx EEia77oIV1loKcWRlWvmOiSmvclR2EdCi4DTNJ4ZuncJgWMFc4Qt2RKpLOimg2vCoaXwXP RNzJwMhFnbuVZWIMcqflFjz2gLrkVp65hnLH0Hj6c7xAibWAZt43oIzvcpM/iuflQzoyuk gONr+3vs6cjJqk0PAKVau15GV5i+gRQfgxBarRcNeJGO5CuhAE2NMqkY0SorYw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1746187436; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jYTGSftcl8LW2JMow7gIBVI+Bpm0vOk2cjj2v4azH3g=; b=vPaNF++hoS1PuCiadUgbmSt2EYIuBu9S9ohJXSsWjSWvVL6l0AuSFZJbh32qdpayiUz0y4 pD27Xcu6sJX5RHBQ== Date: Fri, 02 May 2025 14:03:52 +0200 Subject: [PATCH 3/3] selftests/timens: timerfd: Use correct clockid type in tclock_gettime() Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250502-selftests-timens-fixes-v1-3-fb517c76f04d@linutronix.de> References: <20250502-selftests-timens-fixes-v1-0-fb517c76f04d@linutronix.de> In-Reply-To: <20250502-selftests-timens-fixes-v1-0-fb517c76f04d@linutronix.de> To: Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1746187432; l=922; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=Le/SWYfSH/kGVW6ptZ6Ul3m1kirAQHpQ9706grwfzos=; b=HRwQibpE+GRGuZVKtTBA0HC7+AxCAVTQ7kv7CeLNC77gyUXxmcCtj7RHXJJE8QGlva9X+afVV UyAS3nh7wIHBW+M0ZL5IRcDBfvQl5iComI373j4grX/4OfouLu45L9R X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= tclock_gettime() is a wrapper around clock_gettime(). The first parameter of clock_gettime() is of type "clockid_t", not "clock_t". Use the correct type instead. Signed-off-by: Thomas Weißschuh --- tools/testing/selftests/timens/timerfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/timens/timerfd.c b/tools/testing/selftests/timens/timerfd.c index d6adf66bd8df064f5b76ccc265c13217d7a53f5b..402e2e4155450d946796b8297a8be85f93cea16f 100644 --- a/tools/testing/selftests/timens/timerfd.c +++ b/tools/testing/selftests/timens/timerfd.c @@ -15,7 +15,7 @@ #include "log.h" #include "timens.h" -static int tclock_gettime(clock_t clockid, struct timespec *now) +static int tclock_gettime(clockid_t clockid, struct timespec *now) { if (clockid == CLOCK_BOOTTIME_ALARM) clockid = CLOCK_BOOTTIME;