From: "André Almeida" <andrealmeid@igalia.com>
To: Terry Tritton <terry.tritton@linaro.org>
Cc: ttritton@google.com, Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>,
linux-kselftest@vger.kernel.org,
Thomas Gleixner <tglx@linutronix.de>,
Darren Hart <dvhart@infradead.org>,
linux-kernel@vger.kernel.org, Wei Gao <wegao@suse.com>,
Davidlohr Bueso <dave@stgolabs.net>,
Shuah Khan <shuah@kernel.org>
Subject: Re: [PATCH v4] selftests/futex: Convert 32bit timespec struct to 64bit version for 32bit compatibility mode
Date: Fri, 4 Jul 2025 12:49:36 -0300 [thread overview]
Message-ID: <61f90ebf-3cb4-4e81-a7d7-cfffe41d9d47@igalia.com> (raw)
In-Reply-To: <20250704103521.10124-1-terry.tritton@linaro.org>
Hi Terry
Em 04/07/2025 07:35, Terry Tritton escreveu:
> sys_futex_wait() can not accept old_timespec32 struct, so userspace should
> convert it from 32bit to 64bit before syscall to support 32bit compatible mode.
>
> This fix is based off [1]
>
> Link: https://lore.kernel.org/all/20231203235117.29677-1-wegao@suse.com/ [1]
>
> Originally-by: Wei Gao <wegao@suse.com>
> Signed-off-by: Terry Tritton <terry.tritton@linaro.org>
> ---
Thanks! It fixes the test when compiling with -m32.
However, please check the results ./scripts/checkpatch.pl, there are a
lot of codestyle errors:
ERROR: trailing whitespace
#37: FILE: tools/testing/selftests/futex/include/futex2test.h:69:
+ struct __kernel_timespec ts = { $
ERROR: code indent should use tabs where possible
#37: FILE: tools/testing/selftests/futex/include/futex2test.h:69:
+ struct __kernel_timespec ts = { $
WARNING: please, no spaces at the start of a line
#37: FILE: tools/testing/selftests/futex/include/futex2test.h:69:
+ struct __kernel_timespec ts = { $
ERROR: trailing whitespace
#38: FILE: tools/testing/selftests/futex/include/futex2test.h:70:
+ .tv_sec = timo->tv_sec, $
ERROR: code indent should use tabs where possible
#38: FILE: tools/testing/selftests/futex/include/futex2test.h:70:
+ .tv_sec = timo->tv_sec, $
...
next prev parent reply other threads:[~2025-07-04 15:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-04 10:35 Terry Tritton
2025-07-04 15:49 ` André Almeida [this message]
2025-07-04 18:55 ` Terry Tritton
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=61f90ebf-3cb4-4e81-a7d7-cfffe41d9d47@igalia.com \
--to=andrealmeid@igalia.com \
--cc=dave@stgolabs.net \
--cc=dvhart@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=shuah@kernel.org \
--cc=terry.tritton@linaro.org \
--cc=tglx@linutronix.de \
--cc=ttritton@google.com \
--cc=wegao@suse.com \
/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®