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 C4A584A13A1; Sat, 28 Feb 2026 17:34:35 +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=1772300075; cv=none; b=FolTesQ91FLm/NeWBUAAPe6XvkdA2on6aXvx/zmjb5oPfXJIm4kUJGG92arionJVj/A/yETxZXXfnXnnKBiPuI2zq+ycWrLwC8jjWeB8RlA6PkuAJgLgBV2yIqpYUDhwkoUQF6SYS0n4driYiKM7XtSd4IEy6ERSQKy4Fx6/OOI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772300075; c=relaxed/simple; bh=y120UP/A72i4KPCXXzfD+Gijbl0GECCbaubnP5MiEKM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oG0UaecktPOlutr3ypE8tTUxyOKAgLg8ZIZe1y6JGIw2fYuaW4ucvxweXl8VX83uCTz5PhXP55v5PkdBZYYYCmZ57ORv+CGYiFERaCJOQVP/tjNL6o/XQIHtavZknGgaLdMDdL+di2Wa+do5+ofu6IKM19pDyzuK86COTM7l1vc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rHnTbfuP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rHnTbfuP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19863C116D0; Sat, 28 Feb 2026 17:34:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772300075; bh=y120UP/A72i4KPCXXzfD+Gijbl0GECCbaubnP5MiEKM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rHnTbfuPu+HJoWF+fNx6Y0gOpAG7he3n8F3CYLeOIpRegQaEmZw8DQF4zRfCG+Lfa i0EgO5kG8V6ltlgG+3Gb7eflTTzrckLoCoCO7jvu8gAy/qf/PQg7vAFFFppeLtza/y c4dsFhh6w0jq8oihUXiSxVXKJ7W50wE7DWbfvSP5iNE2WIByWESp5nXVoyKSMAD9l2 dZU2Tj4sN9+ew4AvyiNP5B3dPH1+/K6Fnr/jWbcnA8kilXdyQgt7ZIuumtpxWTi+hz zfyvr6f5RjQ9EUpp8BB/uUTeIOQsWnlhGnCWt4dY0EN+eLmnJLtTisJ8hmCWi/Feld DSqTkVqTlSjOQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Sam James , Andreas Larsson , Sasha Levin Subject: [PATCH 6.19 090/844] sparc: don't reference obsolete termio struct for TC* constants Date: Sat, 28 Feb 2026 12:20:03 -0500 Message-ID: <20260228173244.1509663-91-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260228173244.1509663-1-sashal@kernel.org> References: <20260228173244.1509663-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Sam James [ Upstream commit be0bccffcde3308150d2a90e55fc10e249098909 ] Similar in nature to commit ab107276607a ("powerpc: Fix struct termio related ioctl macros"). 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: Andreas Larsson Signed-off-by: Andreas Larsson Signed-off-by: Sasha Levin --- arch/sparc/include/uapi/asm/ioctls.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/sparc/include/uapi/asm/ioctls.h b/arch/sparc/include/uapi/asm/ioctls.h index 7fd2f5873c9e7..a8bbdf9877a41 100644 --- a/arch/sparc/include/uapi/asm/ioctls.h +++ b/arch/sparc/include/uapi/asm/ioctls.h @@ -5,10 +5,10 @@ #include /* Big T */ -#define TCGETA _IOR('T', 1, struct termio) -#define TCSETA _IOW('T', 2, struct termio) -#define TCSETAW _IOW('T', 3, struct termio) -#define TCSETAF _IOW('T', 4, struct termio) +#define TCGETA 0x40125401 /* _IOR('T', 1, struct termio) */ +#define TCSETA 0x80125402 /* _IOW('T', 2, struct termio) */ +#define TCSETAW 0x80125403 /* _IOW('T', 3, struct termio) */ +#define TCSETAF 0x80125404 /* _IOW('T', 4, struct termio) */ #define TCSBRK _IO('T', 5) #define TCXONC _IO('T', 6) #define TCFLSH _IO('T', 7) -- 2.51.0