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 EE48F335071; Fri, 17 Oct 2025 15:20:52 +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=1760714453; cv=none; b=BQ+eB0NUpVNF5lI8xd0b1EFk+y5pOULhxpcf+Tq7/0f3ltgkNWvAafP7wIGaKwxo7NgsJDtLRBNoUdnNBjNz8OeMkd/Itfu1HMDQ5yndw6xGKseY3qdT0u8Avf1otI69Njr3ZuVQAUDMEL5UExMIFIlthhehhb4/L5oUfWy2Ns0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760714453; c=relaxed/simple; bh=bUsv7tOELlYNq8WjUxJfuKlKB3GhTLa8ECMaHLMltxA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cI8WI2azb8Q5mOXhkOUOy84+9gLTOaFglWDxFb5yLaIfcIQTf9DqmElCJuOf4KqECdT4nD90APfiwyJQzp1kEKjeDkkkUxF2VU8iEG3z4vuE262M5x+QwpL8Vg0C+0SuJ3/WzbweWXd7L3MqZ5byRv6h9EC33dNXI1EOU4gYbFk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dWXkCJWm; 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="dWXkCJWm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6857DC4CEE7; Fri, 17 Oct 2025 15:20:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760714452; bh=bUsv7tOELlYNq8WjUxJfuKlKB3GhTLa8ECMaHLMltxA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dWXkCJWmKSuzs+hH3t/CJaZJQKU9lgxcADz6B7mrs+et7rcbms0a0ZZPpqRNweZDK d7T9JNu/72fEufWluJQn/79AQSfhykNqszqxIJ+epxFnvu8Y6YzVBO3a0CdrZca5m9 xM5nlciAoQXZN/tykBOffXyuQ3qv77lWn23/Ly8I= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sam James , Helge Deller , Stian Halseth Subject: [PATCH 6.12 151/277] parisc: dont reference obsolete termio struct for TC* constants Date: Fri, 17 Oct 2025 16:52:38 +0200 Message-ID: <20251017145152.637650326@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251017145147.138822285@linuxfoundation.org> References: <20251017145147.138822285@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev 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 commit 8ec5a066f88f89bd52094ba18792b34c49dcd55a upstream. 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 Co-authored-by: Stian Halseth Cc: stable@vger.kernel.org Signed-off-by: Sam James Signed-off-by: Helge Deller Signed-off-by: Greg Kroah-Hartman --- arch/parisc/include/uapi/asm/ioctls.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/arch/parisc/include/uapi/asm/ioctls.h +++ b/arch/parisc/include/uapi/asm/ioctls.h @@ -10,10 +10,10 @@ #define TCSETS _IOW('T', 17, struct termios) /* TCSETATTR */ #define TCSETSW _IOW('T', 18, struct termios) /* TCSETATTRD */ #define TCSETSF _IOW('T', 19, struct termios) /* TCSETATTRF */ -#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 +#define TCSETA 0x80125402 +#define TCSETAW 0x80125403 +#define TCSETAF 0x80125404 #define TCSBRK _IO('T', 5) #define TCXONC _IO('T', 6) #define TCFLSH _IO('T', 7)