From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796387585; b=EKsLDlqCwdqR3ZocCBivLj2wA89HMXXAnseHDDEWhsZphgwz+wIdgy6LY38AsnEA5Njv QePEtezwQ5nOrHEuWgaumzrUJlVvMYqBa4IaVMgACQgOWQZneRUjwAnlk98U0/LJP1O9p bNzx2sSjBfM1v3nL6+DnsiYh29phDhWobdxIe86OL5ppBkYHEmZB97iiKd2iRJAwcLJtF 3siay8oO5J1XA3+5ubT/q1YEl1+QUAxCAH5y3K4tKmOvsNcJhr6zMFwX7nk49GHxzqogb UaYtX8Ja7mCElLbbG5lfEYW/zT4Iz5xyObsS6oo/3egnUfj3MlDBKf98xnRnx6iFE2Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796387585; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Transfer-Encoding; bh=PobrF/QRw5PPWUKK8/ryXoauLdfRYgVuY2F7OQcngIE=; b=bXpaCj6yqu8Z6XdWcq/yMOSMV3KVzg9mceokJl1+XQWQ3UawQGiGBlYck0tXpuIVpq+c 0bwn3NsmGOtf2YnLA+8USv2nPtjrlobLe0n1SRv6OmvBmRSdElxgY9cKjweKi5FvU5y9A C03Z9S23ewlyKJbqsoDzmnGt1sMoDI6EmcCJIuw9AVaVhegBOGfJXx2AoI956iOpIXmCY XCOIq8b9agMaqzMoalfzRjY3dQfCzMTVdBBJDGLHQIHLvUL4DPhQSWWmLGuc9hTcbpsfi 09GwxGic7P2snMkJzlyYyDsSi9OAvBCF3HCqEjevjvmIdyEf30RzIXBrVSAo0+yY3FQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PzV0VUhx; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 96DD2606A322; Fri, 4 Dec 2026 12:33:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PzV0VUhx Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A7501F000C2; Fri, 4 Dec 2026 12:33:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796387585; bh=PobrF/QRw5PPWUKK8/ryXoauLdfRYgVuY2F7OQcngIE=; h=From:To:Cc:Subject:Date; b=PzV0VUhxZyJLutjPu3ZW3+czSt/C4v9bsHWUYO0OkBI0RP3ulIZQlxp3UK+RcBThf etLDYUQPelFoEbHUCQ7xgdFm79ZF2q0w4sOWbRrhg8xXJwuOWQzfWiBPRZIVeHHhdG pfsP4giX+wWzWFwYO65ZsypJWb5+ehLsyEawGapzTtCJIG0kolJhwmKTrWVxvfa7Fn 7DwsDOJ4ft90PhjK4Prj8yp7EpRmU3KzEnkPYnq+Vc49sk9Cr78LM8i3CDiNAjBXP6 1vBp1MPqBa8W3ctkKAZH5LbZHJJw9/voLBDhh5HafH3bdCwflMPwcvAJfl2XnkCNXm es/wtvf/0DZcQ== From: Sasha Levin To: Mike Rapoport , Pasha Tatashin , Pratyush Yadav Cc: Chris Down , Shuah Khan , kexec@lists.infradead.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selftests/liveupdate: include for TCGETS Date: Fri, 4 Dec 2026 07:33:03 -0500 Message-ID: <20261204123303.3067471-1-sashal@kernel.org> X-Mailer: git-send-email 2.53.0 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 . 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 --- Based on the liveupdate-7.5 branch (6f8be8fa8e6f). KernelCI hit this in the ppc64le_defconfig selftest builds of my all-next tree, with gcc 14 and gcc 15. next-20261203 does not have the commit yet. Tested by compiling liveupdate.c for powerpc64le with clang 21, the powerpc UAPI headers of this tree and the glibc 2.43 headers: it fails with the error above before the patch and compiles with it. On x86_64 "make -C tools/testing/selftests TARGETS=liveupdate" still builds. tools/testing/selftests/liveupdate/liveupdate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/liveupdate/liveupdate.c b/tools/testing/selftests/liveupdate/liveupdate.c index e6ed7a4142ff3..3e5a29b070f55 100644 --- a/tools/testing/selftests/liveupdate/liveupdate.c +++ b/tools/testing/selftests/liveupdate/liveupdate.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include base-commit: 6f8be8fa8e6f98d30949762d4e73cedad280dbdb -- 2.53.0