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 A737F32E15E; Fri, 17 Oct 2025 15:09: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=1760713745; cv=none; b=j+JCok01YsKVE3tTp6GQpnuOV01pbtI8ReK9nXbqVqSaJTeE8TB2YeAWsPxi/hIW0z0CyExpUXjfKYfXJTYZ5MtwKYDn2vPd4Gko7in5erbW98QvYM5k32a+9d1qNYz+McIA1vz5A9Gd/T6aTvtFV8OslF8XsWW+Zs0aObYC8mA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760713745; c=relaxed/simple; bh=fwWD9w2JS+74C/A+moWvJdVDMyChbYxPRget7N7pS6o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gUikystXv3u5vg+FZvmuv+/tK5Sqh5CJQVSwJlWQePjFDZEfLM+D4Mkr6zE/DumMhYGqGXUeEIbuOeSZT1BPBZDq7rOJ4ii7rKxNwetCLQTTo7hZQa46sW8/PEkLG9SwxxCSYUyPeROLPxr/hReGMlkZOjP54KUtN2Sm9l8sLXA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=izYT9fb6; 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="izYT9fb6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3B1FC4CEE7; Fri, 17 Oct 2025 15:09:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760713744; bh=fwWD9w2JS+74C/A+moWvJdVDMyChbYxPRget7N7pS6o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=izYT9fb6yqtZo3sOXGF2PlhiUgy1AvSdLMsfKEURgATMQx218+PtoWViDmBkOn7iF kxwomnpHqwlasZ99kJ/oR85cgWJprF3kIOqDYyEVO0cHcZcDBUjlxw5IVBjYMcZTsH b/BJGjmVKs2arBbles+z/nNkHwMDg+olI+XPU4Zk= 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.6 104/201] parisc: dont reference obsolete termio struct for TC* constants Date: Fri, 17 Oct 2025 16:52:45 +0200 Message-ID: <20251017145138.566769432@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251017145134.710337454@linuxfoundation.org> References: <20251017145134.710337454@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.6-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)