From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 05ECD29C338; Thu, 15 Jan 2026 17:03:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768496592; cv=none; b=iGNyl3gqZbwDGR7UWZ2uUhP6/0rlFrpjcVE96LrtsKQNkHZkSSQDYhD7Bor1v50UEwLkCTRFXPdnclI/ai+KH39Rs9u43y4Qaq5oByvNSDzCrLDy4NtQh+wIgupNqWtGb0zKtqAhEWXcCJ45pIxEa9qWR6FAxkB8VtP5o8xhEcA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768496592; c=relaxed/simple; bh=T3tUchiAgq/FFmnSwPY451cRf+nLKjHBFnnCd2COfY0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QCglcSCf2AOrIXKUHt+nN/Zyi/+8/F/h35E/fEzLawij9Ue2PcddsO3XBZ8ZJ3TWQcze2de2HDNZKFmiWCVe+J8bzhpbJ60izBpK/i26ehHQ+SaNH+kOxRubOnUS/u3T88fMQy71WqGHrg5/16uN7BSA4aozaY0iAQWw2kIoHuU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Kdd/u218; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Kdd/u218" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DB0DC116D0; Thu, 15 Jan 2026 17:03:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768496591; bh=T3tUchiAgq/FFmnSwPY451cRf+nLKjHBFnnCd2COfY0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kdd/u218Jpw8PerilYPvLsNBGoyDNtY6iB5skEQ0wXwaEUwYxiosUU/t5+7tB86sV uUYFNaDWJSGowqg9z/YCaJntZhyVUyw0PLG7frWY+cyKWLEzzl93tm7psLq+LEfqep WAOT+aP9BiRAsH02s/AAyTyhadQQzYsA5eRTwuWk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sam James , Magnus Lindholm , Sasha Levin Subject: [PATCH 6.12 033/119] alpha: dont reference obsolete termio struct for TC* constants Date: Thu, 15 Jan 2026 17:47:28 +0100 Message-ID: <20260115164153.156951101@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260115164151.948839306@linuxfoundation.org> References: <20260115164151.948839306@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sam James [ Upstream commit 9aeed9041929812a10a6d693af050846942a1d16 ] Similar in nature to ab107276607af90b13a5994997e19b7b9731e251. glibc-2.42 drops the legacy termio struct, but the ioctls.h header still defines some TC* constants in terms of termio (via sizeof). Hardcode the values instead. This fixes building Python for example, which falls over like: ./Modules/termios.c:1119:16: error: invalid application of 'sizeof' to incomplete type 'struct termio' Link: https://bugs.gentoo.org/961769 Link: https://bugs.gentoo.org/962600 Signed-off-by: Sam James Reviewed-by: Magnus Lindholm Link: https://lore.kernel.org/r/6ebd3451908785cad53b50ca6bc46cfe9d6bc03c.1764922497.git.sam@gentoo.org Signed-off-by: Magnus Lindholm Signed-off-by: Sasha Levin --- arch/alpha/include/uapi/asm/ioctls.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/alpha/include/uapi/asm/ioctls.h b/arch/alpha/include/uapi/asm/ioctls.h index 971311605288f..a09d04b49cc65 100644 --- a/arch/alpha/include/uapi/asm/ioctls.h +++ b/arch/alpha/include/uapi/asm/ioctls.h @@ -23,10 +23,10 @@ #define TCSETSW _IOW('t', 21, struct termios) #define TCSETSF _IOW('t', 22, struct termios) -#define TCGETA _IOR('t', 23, struct termio) -#define TCSETA _IOW('t', 24, struct termio) -#define TCSETAW _IOW('t', 25, struct termio) -#define TCSETAF _IOW('t', 28, struct termio) +#define TCGETA 0x40127417 +#define TCSETA 0x80127418 +#define TCSETAW 0x80127419 +#define TCSETAF 0x8012741c #define TCSBRK _IO('t', 29) #define TCXONC _IO('t', 30) -- 2.51.0