mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "tip-bot2 for Sasha Levin" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: Sasha Levin <sashal@kernel.org>,
	Thomas Gleixner <tglx@kernel.org>,
	andrealmeid@igalia.com, x86@kernel.org,
	linux-kernel@vger.kernel.org
Subject: [tip: locking/futex] selftests/futex: Print tv_sec as long long
Date: Mon, 30 Nov 2026 21:06:59 -0000	[thread overview]
Message-ID: <179607281968.1190409.960733175330458673.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20261103155445.534229-1-sashal@kernel.org>

The following commit has been merged into the locking/futex branch of tip:

Commit-ID:     e2f325bc7f1e22fdd84a281fb600ee33e61724fd
Gitweb:        https://git.kernel.org/tip/e2f325bc7f1e22fdd84a281fb600ee33e61724fd
Author:        Sasha Levin <sashal@kernel.org>
AuthorDate:    Tue, 03 Nov 2026 10:54:45 -05:00
Committer:     Thomas Gleixner <tglx@kernel.org>
CommitterDate: Mon, 30 Nov 2026 22:03:34 +01:00

selftests/futex: Print tv_sec as long long

On 32-bit architectures with a 64-bit time_t, such as armhf in Debian
13, tv_sec is a long long, and printing it with %ld warns:

  futex_requeue_pi.c:351:30: warning: format specifies type 'long' but the argument has type '__time64_t' (aka 'long long') [-Wformat]

Cast it to long long and print it with %lld.

Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Reviewed-by: André Almeida <andrealmeid@igalia.com>
Link: https://patch.msgid.link/20261103155445.534229-1-sashal@kernel.org
---
 tools/testing/selftests/futex/functional/futex_requeue_pi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/futex/functional/futex_requeue_pi.c b/tools/testing/selftests/futex/functional/futex_requeue_pi.c
index 65326cb..2530e69 100644
--- a/tools/testing/selftests/futex/functional/futex_requeue_pi.c
+++ b/tools/testing/selftests/futex/functional/futex_requeue_pi.c
@@ -348,7 +348,7 @@ TEST_F(args, futex_requeue_pi)
 		secs = (ts.tv_nsec + timeout_ns) / 1000000000;
 		ts.tv_nsec = ((int64_t)ts.tv_nsec + timeout_ns) % 1000000000;
 		ts.tv_sec += secs;
-		TH_LOG("ts.tv_sec  = %ld", ts.tv_sec);
+		TH_LOG("ts.tv_sec  = %lld", (long long)ts.tv_sec);
 		TH_LOG("ts.tv_nsec = %ld", ts.tv_nsec);
 		tsp = &ts;
 	}

      parent reply	other threads:[~2026-11-30 21:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-03 15:54 [PATCH] selftests/futex: print " Sasha Levin
2026-11-09 19:28 ` André Almeida
2026-11-30 21:06 ` tip-bot2 for Sasha Levin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179607281968.1190409.960733175330458673.tip-bot2@tip-bot2 \
    --to=tip-bot2@linutronix.de \
    --cc=andrealmeid@igalia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=sashal@kernel.org \
    --cc=tglx@kernel.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®