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 E678222D9F7; Thu, 15 Jan 2026 17:38:04 +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=1768498685; cv=none; b=nVqkRwoViwr2HO1Jbwi6OODQf0bB/ysN0gKU6wtWTFh6agXgwKaM3fy4ipkz3RXtCCU0P9fHpmo2hOfuU7C27TgevddK+JdiuPXaTL0fjNgCuLEd1RP0XQL47OOGYIwGQQnyhGYcsW+i+TlKpH3e3jrlG8RVyIg+onyXuC6O3qM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768498685; c=relaxed/simple; bh=cbcUC8fp9Iv2bq5tQdM1ZlYBeBVEx+4gYo1NRociiR8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TSZomQ/A+qJ3QAJQW8nktWuAg2Zev7XLRcAI8+14kjdj/Y40TrYi8o76nrjArj83pEX/xkFshrXZnd7rh1enrYfLfCNZ2MoyxPM2NzEjp+0g+adzgVjU/ZOJQUnjyWh37vjvCSDf5VXVS51+XK3sGFJeRfDetlURoDdPPFu98W4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wXWNi7nD; 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="wXWNi7nD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75457C116D0; Thu, 15 Jan 2026 17:38:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768498684; bh=cbcUC8fp9Iv2bq5tQdM1ZlYBeBVEx+4gYo1NRociiR8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wXWNi7nDdDLdsZQB+PtUwS3kv08OZmT7XGbH62EqaNk6YSCFNGK0C/D5JRJPiOXpw x1fnuZzzqkscvD197YV8CFyYJGjSC/tjfFUb6D3BQwmK0AlhO50bi2SU5cE7G5RIoQ 9ZRyvUGYotXxX38wrXhKG0svJjkeib0dt+iyyitc= 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 5.15 518/554] alpha: dont reference obsolete termio struct for TC* constants Date: Thu, 15 Jan 2026 17:49:44 +0100 Message-ID: <20260115164305.076738826@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260115164246.225995385@linuxfoundation.org> References: <20260115164246.225995385@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 5.15-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