From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 98F78606A32C for ; Fri, 4 Dec 2026 12:33:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=V5xyDIXc; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PzV0VUhx DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=PobrF/QRw5PPWUKK8/ryXoauLdfRYgVuY2F7OQcngIE=; b=V5xyDIXc6l0p3fmgvZcLWUHPtU VFAPAr7fsmG3L73Mzwg6a5GwEHlAqlPF3UtqdD9mK2rQx5BbpeIj/M+PHGDElNlj8WAyu6FJlzfjG AyF2g0kqD4kXRCqTnC//HKrNK+B7WaB8t+5HFJEkfeEI1vbAsq0qjTNMLuq6Dbz2hROM6tTPLyOjQ xfN5QMigAVZTkVpfIsZfdWCS8uJohMsd8UAuCo0HQkQR983kBqSW6m57zF+eXhjXk57t1JLMakxwD AFvedJEwePVYfFmM8NbMQPfPMy7lWvxRSRAuDLU0nQw4npa+9a/hupr8BBO2YRr3ux7PtbEuxrGsT jKbcZzDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZSTe-00000000I1u-0NlP; Fri, 04 Dec 2026 12:33:26 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZSTK-00000000I1U-2LcB for kexec@lists.infradead.org; Fri, 04 Dec 2026 12:33:06 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id BC87E63273; Fri, 4 Dec 2026 12:33:05 +0000 (UTC) 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-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: kexec@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "kexec" X-Spam-Status: No, score=-19.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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