From nobody Fri Dec 19 19:01:46 2025 Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C3D4B217F27; Thu, 4 Dec 2025 07:14:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764832446; cv=none; b=L0rsNnxc6mugnFPlMXgptyXFIVorfIbn8iu8eDtyMwcv66cBEJPrG3KJy0LfNn6SgNyHEm4WV3f3Lo16bg0DIo9Mlj6wz9679lCKR2JK2lcxkY1hZ0lY0ZA0o4cQCFE+1ReUcWVENqBLMaIK09DJGHwcOuQ3L6ZBFCk9k9tf/HE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764832446; c=relaxed/simple; bh=x35KsjX9zFQUidms2cjp89COg0VOfJ6r7GeT1Hg10t8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ht06emwWvJ/w1mDinzgd9QsugtwOmCwaokp2f97qac/GsArkYD3DDsgTvjDbQpZma/X1j6zyzmhpm0wW5GE4UhudkJwh9rlvI7Sl6v664YizgAc/+fZu+tI2ebwx5GgwYIuQXAStHGlRNGnXg/vCVlJs0zvG22ptaRMkROwBhLM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org Received: from localhost (2.8.3.0.0.0.0.0.0.0.0.0.0.0.0.0.a.5.c.d.c.d.9.1.0.b.8.0.1.0.0.2.ip6.arpa [IPv6:2001:8b0:19dc:dc5a::382]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sam@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id AB6A834198D; Thu, 04 Dec 2025 07:14:02 +0000 (UTC) From: Sam James To: Richard Henderson , Matt Turner , Magnus Lindholm Cc: Sam James , linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] alpha: don't reference obsolete termio struct for TC* constants Date: Thu, 4 Dec 2025 07:13:05 +0000 Message-ID: <31f92aa4627c71d5a4c5eb0a2a84c344bc7c86f0.1764832385.git.sam@gentoo.org> X-Mailer: git-send-email 2.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 in= complete type 'struct termio' Link: https://bugs.gentoo.org/961769 Link: https://bugs.gentoo.org/962600 Signed-off-by: Sam James --- v2: Fix trailers. 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..857e280f95d1e 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) =20 -#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 0x5405 +#define TCSETA 0x5406 +#define TCSETAW 0x5407 +#define TCSETAF 0x5408 =20 #define TCSBRK _IO('t', 29) #define TCXONC _IO('t', 30) --=20 2.52.0