From nobody Thu Apr 2 14:20:42 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 784793161BA for ; Tue, 10 Feb 2026 10:34:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770719673; cv=none; b=WHVjgCF8Gp7WdkB5M/frDnJ/Ra5rt5ye0PUEU/OhFZ6W5tyqnrRS7c8jHZYmK82LOdPrbUbml8AfRd7RaTi2YRMTH0qP3FfNZxuAYDm7e6St09shK1JgLk1hGYDZPB8wS4N6+e5ZKqT9rHrB6LKo9HpK0ytPWx2ebL+qRW3JEe0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770719673; c=relaxed/simple; bh=3hd8S0M74OZvthqRCMc538swKfykOv7/gb756HYhxq4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=gk2LeAq0NKBUlmTsDY675OdrtOGLH/FjZFPLpqDl01tlkNLN+O9oKDWnhw7c5vR6E9Gouodqc2QiO7EwbDQ1Ov4+WhIlqC37qEOTILS2hAVjhH6Bw/o4vUrf0Fo1D5yQy1QwOg5o7wfXgAB1JfijBCsxKOJP1tQVDWgQeQy2u80= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=h20tphdZ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="h20tphdZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B203BC116C6; Tue, 10 Feb 2026 10:34:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770719672; bh=3hd8S0M74OZvthqRCMc538swKfykOv7/gb756HYhxq4=; h=From:To:Cc:Subject:Date:From; b=h20tphdZ56p26q2xM3M0xh6pcmJK5rsPnKA3JaaqCyXAWjC1V/6c4s5pkuTTTVEqP BoEIOwQhDbH2ZpD5F9eDLfIEiiVKt8le6hpqd+lFhaCMfH6YQSgYxgT2bZrCSUk/6k xj3Sipi7hI7bIj8bC77FU/S4FuwvcGF/2frBUefJ4T2F3JMYDs2zNiX2RDlw0n9ovc Vg7kd6yFgEw2Yi3hZ3ZfUpRnlWToEsTZ9FQq8WTRP0p0LRrBVxkBfbQyq/KzanOHn+ 4F+nYgywMmq8+rVE3BJdkL+epgXKJb5iShNP/Phuavw7uje0D0NTirZQM62ljPGWyI SMp+CCSktFpCA== From: Arnd Bergmann To: Andrew Morton , Wang Yaxin , Fan Yu , Arnd Bergmann Cc: kernel test robot , xu xin , Kun Jiang , linux-kernel@vger.kernel.org Subject: [PATCH] delayacct: fix build regression on accounting tool Date: Tue, 10 Feb 2026 11:34:22 +0100 Message-Id: <20260210103427.2984963-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.5 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann The accounting tool was modified for the original ABI using a custom 'timespec64' type in linux/taskstats.h, which I changed to use the regular __kernel_timespec type, causing a build failure: getdelays.c:202:45: warning: 'struct timespec64' declared inside pa= rameter list will not be visible outside of this definition or declaration 202 | static const char *format_timespec64(struct timespec64 *ts) | ^~~~~~~~~~ Change the tool to match the updated header. Reported-by: kernel test robot Closes: https://lore.kernel.org/r/202602091611.lxgINqXp-lkp@intel.com/ Fixes: 503efe850c74 ("delayacct: add timestamp of delay max") Fixes: f06e31eef4c1 ("delayacct: fix uapi timespec64 definition") Signed-off-by: Arnd Bergmann --- tools/accounting/getdelays.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/accounting/getdelays.c b/tools/accounting/getdelays.c index 64796c0223be..50792df27707 100644 --- a/tools/accounting/getdelays.c +++ b/tools/accounting/getdelays.c @@ -196,20 +196,20 @@ static int get_family_id(int sd) #define delay_ms(t) (t / 1000000ULL) =20 /* - * Format timespec64 to human readable string (YYYY-MM-DD HH:MM:SS) + * Format __kernel_timespec to human readable string (YYYY-MM-DD HH:MM:SS) * Returns formatted string or "N/A" if timestamp is zero */ -static const char *format_timespec64(struct timespec64 *ts) +static const char *format_timespec(struct __kernel_timespec *ts) { static char buffer[32]; struct tm tm_info; - time_t time_sec; + __kernel_time_t time_sec; =20 /* Check if timestamp is zero (not set) */ if (ts->tv_sec =3D=3D 0 && ts->tv_nsec =3D=3D 0) return "N/A"; =20 - time_sec =3D (time_t)ts->tv_sec; + time_sec =3D ts->tv_sec; =20 /* Use thread-safe localtime_r */ if (localtime_r(&time_sec, &tm_info) =3D=3D NULL) @@ -257,7 +257,7 @@ static const char *format_timespec64(struct timespec64 = *ts) average_ms((double)(t)->cpu_delay_total, (t)->cpu_count), \ delay_ms((double)(t)->cpu_delay_max), \ delay_ms((double)(t)->cpu_delay_min), \ - format_timespec64(&(t)->cpu_delay_max_ts)); \ + format_timespec(&(t)->cpu_delay_max_ts)); \ } else if (version >=3D 16) { \ printf("%-10s%15s%15s%15s%15s%15s%15s%15s\n", \ "CPU", "count", "real total", "virtual total", \ @@ -316,7 +316,7 @@ static const char *format_timespec64(struct timespec64 = *ts) average_ms((double)(t)->total, (t)->count), \ delay_ms((double)(t)->max), \ delay_ms((double)(t)->min), \ - format_timespec64(&(t)->max_ts)); \ + format_timespec(&(t)->max_ts)); \ } else if (version >=3D 16) { \ printf("%-10s%15s%15s%15s%15s%15s\n", \ name, "count", "delay total", "delay average", \ --=20 2.39.5