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 7B24B3BF2F7; Thu, 15 Jan 2026 17:12:32 +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=1768497152; cv=none; b=qypBmZhiC/2VYWhmu9TuvX26oZdDEPgxGZVHWTpkhjqGsbjhBnLho8Q+zP/H21GpxRA165Oh4DZgJ0qKJ23P2GSXHjTwD5fdD6h3ctxDjq8Zm2gk4Q5YW61Vjwn0S3se+L/2A2xzKl5y14Bjb1lxMykJk3wILck7W/1p+8aJfxY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768497152; c=relaxed/simple; bh=dTw27T6oUu9M9bxw31FJhyuH0my+b81Ip/u6IlTsvHQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=suYN985s2bKps97PBhQuwYQb43c1fNh//UXxPx2JCWc69XBrvGIWH6cW0lYXhzNy0Fc1a/7H2Jpehs3ZCRxvPuSx0kOr/XPVaSCm25zYrjZNdAqkMNS+NKFop54ixFF9atbYGHQBUBGCXCk1YT6mcUQKH98W9tFqQ7c1rpVWtgY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GEbLW68k; 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="GEbLW68k" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA0E6C19422; Thu, 15 Jan 2026 17:12:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768497152; bh=dTw27T6oUu9M9bxw31FJhyuH0my+b81Ip/u6IlTsvHQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GEbLW68kpW0Slxd3N3AdY8nEyFCbd91up6xysiER49goBWBpAFaxyntSE/DQPUHVN K8pzlrvYyExkZFpeEBrQNQ5XpsgIUEJ3WaC9bHkgUW+wmKDKqWtNyFn24jwyOJ4t9S AAcENx961knJa8nuytxTCyTn9dkoKZG6/e/ohCn0= 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.1 21/72] alpha: dont reference obsolete termio struct for TC* constants Date: Thu, 15 Jan 2026 17:48:31 +0100 Message-ID: <20260115164144.264853978@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260115164143.482647486@linuxfoundation.org> References: <20260115164143.482647486@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.1-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