From: Pratyush Yadav <pratyush@kernel.org>
To: Sasha Levin <sashal@kernel.org>
Cc: Mike Rapoport <rppt@kernel.org>,
Pasha Tatashin <pasha.tatashin@soleen.com>,
Pratyush Yadav <pratyush@kernel.org>,
Chris Down <chris@chrisdown.name>,
Shuah Khan <shuah@kernel.org>,
kexec@lists.infradead.org, linux-kselftest@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] selftests/liveupdate: include <termios.h> for TCGETS
Date: Fri, 04 Dec 2026 15:10:43 +0000 [thread overview]
Message-ID: <2vxzik19t72k.fsf@kernel.org> (raw)
In-Reply-To: <20261204123303.3067471-1-sashal@kernel.org> (Sasha Levin's message of "Fri, 4 Dec 2026 07:33:03 -0500")
On Fri, Dec 04 2026, Sasha Levin wrote:
> The unknown_ioctl_number test passes TCGETS to a session fd. On powerpc
> TCGETS is _IOR('t', 19, struct termios), and nothing that liveupdate.c
> includes declares struct termios, so the test does not build there:
>
> liveupdate.c:560:37: error: invalid application of 'sizeof' to
> incomplete type 'struct termios'
>
> Include <termios.h>. The test only needs a command that is not a
> liveupdate ioctl, so it does not matter that glibc's struct termios is
> larger than the kernel's on powerpc.
>
> Fixes: 6f8be8fa8e6f ("selftests/liveupdate: Test ENOTTY for unknown ioctl numbers")
> Signed-off-by: Sasha Levin <sashal@kernel.org>
Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
[...]
--
Regards,
Pratyush Yadav
prev parent reply other threads:[~2026-12-04 15:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 12:33 [PATCH] selftests/liveupdate: include <termios.h> for TCGETS Sasha Levin
2026-12-04 15:10 ` Pratyush Yadav [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=2vxzik19t72k.fsf@kernel.org \
--to=pratyush@kernel.org \
--cc=chris@chrisdown.name \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=pasha.tatashin@soleen.com \
--cc=rppt@kernel.org \
--cc=sashal@kernel.org \
--cc=shuah@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