Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2917733lqz; Wed, 3 Apr 2024 12:16:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQb0coYvxEO2vvoBxqKwHsAgWBjKDsHLn13qxJas6nUyczIGt6P8wlJQIs0z1/TD9Sfcb9fqKRjS/GhmpNMBaHCzFSfwc2U0VCkMHq7A== X-Google-Smtp-Source: AGHT+IGQSfKQtxrcNT08QWPitgO9PCwVUQWiEDBWdXgXMaLikrgG10pvnOfeoTLTP5A3518mssYU X-Received: by 2002:a05:6214:ca1:b0:699:c93:6752 with SMTP id s1-20020a0562140ca100b006990c936752mr942655qvs.11.1712171775682; Wed, 03 Apr 2024 12:16:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712171775; cv=pass; d=google.com; s=arc-20160816; b=EtbnR5yLXAcgS6HJ0mAZCZUXMWD53OWmUCBf7LOqnvVwokyGb+CCtXVQLzaF2VFw6v JCOigDTwejP5t/N3LDnCfp4srVlq0t6Ce9tJubzzdbKb784uQATPz0RRjbr2n5GerYWt uaIR87LuD+Zx5H/T4yWdK79gTOUTLRRavgZCwHmLbv+tvM3F9Eij8YAlCBGPI8XCuKWN xiwhs32+DN6N+xQEEWhY4p7+tubpwpIo9FfClSmqX7uYCx/Gym+n58EVOe6gQXvUFtjG 6ehww44MqGWjIyXschqFLS0ygILuiEvK4SUJh5nS4OcRZaOvMzrq2lwj2y0exkuWo5fZ PNsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=dyr9AEyiYYXDf42nX6O/EB6zAEnPsOR0vMNkFFo8irk=; fh=GWEIzVKm8mDHIouNewIA1o9S0/Wc1U3bjtRDXf9P+ag=; b=xIQW9M1G4OtSskKo3vz5yhkjP8oMq+Fpuuph7U3bpgyqPnVVuMQ5uSVBdp1amNMZEE 53PgbnAGiyh/yRbCuzDkA27+SozhesgagSQvFwV3Xk5qe58Fg0lTH8GSwZGVXdcZ/SCd GRh7soy0SZ7oB53xeCt4oj+hnD8wV7m7wUmaYPqdpVnQ9YIRz//YJYDD6ppHfTZqJrzp qwKXgfHcyogPqmoVlfzHY2Gx3/+JJSTsjgRkEaXuf/RMJNxn5PoxKSEAPUo81Ql6PVfy sQHWq9zUJ7ZP7gY7SCGf+0StbiNvchf/kibktH+9Qi7BNB0qBU51gkp8If80fXcuDLOU o0jQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gentoo.org dmarc=pass fromdomain=gentoo.org); spf=pass (google.com: domain of linux-kernel+bounces-130491-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130491-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u15-20020a0ced2f000000b006992cbe6efesi1041607qvq.543.2024.04.03.12.16.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 12:16:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130491-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gentoo.org dmarc=pass fromdomain=gentoo.org); spf=pass (google.com: domain of linux-kernel+bounces-130491-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130491-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 67B6A1C2408F for ; Wed, 3 Apr 2024 19:16:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08EA3153BF0; Wed, 3 Apr 2024 19:16:10 +0000 (UTC) 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 E4CDA153BED; Wed, 3 Apr 2024 19:16:07 +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=1712171769; cv=none; b=ncM8RjiSNmYWeVYyw6WY8DN3ft+uGeD69JOCtJ4MYtswBqExQcoBaustagX2qV7o04AdGc+Rh6pUI+qGrFBkX7jjTFcFvS7+Kwb+TVDv4Q/GL5grj6gam7ALDcXLesJs666Y3phzJisL5AvRSeeDqhGGubgxtrq+X0xvw8SarDA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712171769; c=relaxed/simple; bh=WQHELEydoFdXUfkrRwBS7RIXUMEFdP7aOIybB6jPe+4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Content-Type; b=Da6CBTZRYfgBGP1+HgfNCZFl66BPrr7sV1llpKBN/w6SlsWdTLvPehOKLcDWtOIzYLl7qHSG5I7CoouF5Nk+8nJATDZxedvknHcpsMrcQMKwMvrbM5XbNABPVHaY0qtQgAy3U2sfzgS6n9T0SndRz/PBabE4ephtfWQVzNTEYZE= 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: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-516c403cc46so380940e87.3; Wed, 03 Apr 2024 12:16:07 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCU1XQPP1nzqiwOBcOFnPBGLnyCw24jC+FAGpJsEZTChVRDGRk51ZGE7/CkkT2Gd1m9Ged1lQhS5vU1c0Cu8IOnel/4buooqcoNH4AmBtwfqH/s/cqybbW3fl883AaRWNMaL+1v14TcUvA== X-Gm-Message-State: AOJu0Yy9GXGEfZ0TMHwQmtYN11a2MQKRFyMylrAjcB9/KjJ22pkXPegt mDnAouWD2HK6qYTDfy4rKY1jAY5uRXndvY16+eYFGgrNkAnkrdHbvfFnoEakV4P+Znr07MNfBAZ 6wN5q6/Meqg8dNy2C0UyeOlGDvtE= X-Received: by 2002:a19:6b12:0:b0:515:cb05:e749 with SMTP id d18-20020a196b12000000b00515cb05e749mr348585lfa.12.1712171764219; Wed, 03 Apr 2024 12:16:04 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240306171149.3843481-1-floppym@gentoo.org> In-Reply-To: <20240306171149.3843481-1-floppym@gentoo.org> From: Mike Gilbert Date: Wed, 3 Apr 2024 15:15:52 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] sparc: move struct termio to asm/termios.h To: "David S. Miller" , Andreas Larsson , sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Mar 6, 2024 at 12:11=E2=80=AFPM Mike Gilbert w= rote: > > Every other arch declares struct termio in asm/termios.h, so make sparc > match them. > > Resolves a build failure in the PPP software package, which includes > both bits/ioctl-types.h via sys/ioctl.h (glibc) and asm/termbits.h. > > Closes: https://bugs.gentoo.org/918992 > Signed-off-by: Mike Gilbert > Cc: stable@vger.kernel.org > --- > arch/sparc/include/uapi/asm/termbits.h | 10 ---------- > arch/sparc/include/uapi/asm/termios.h | 9 +++++++++ > 2 files changed, 9 insertions(+), 10 deletions(-) > > diff --git a/arch/sparc/include/uapi/asm/termbits.h b/arch/sparc/include/= uapi/asm/termbits.h > index 4321322701fc..0da2b1adc0f5 100644 > --- a/arch/sparc/include/uapi/asm/termbits.h > +++ b/arch/sparc/include/uapi/asm/termbits.h > @@ -10,16 +10,6 @@ typedef unsigned int tcflag_t; > typedef unsigned long tcflag_t; > #endif > > -#define NCC 8 > -struct termio { > - unsigned short c_iflag; /* input mode flags */ > - unsigned short c_oflag; /* output mode flags */ > - unsigned short c_cflag; /* control mode flags */ > - unsigned short c_lflag; /* local mode flags */ > - unsigned char c_line; /* line discipline */ > - unsigned char c_cc[NCC]; /* control characters */ > -}; > - > #define NCCS 17 > struct termios { > tcflag_t c_iflag; /* input mode flags */ > diff --git a/arch/sparc/include/uapi/asm/termios.h b/arch/sparc/include/u= api/asm/termios.h > index ee86f4093d83..cceb32260881 100644 > --- a/arch/sparc/include/uapi/asm/termios.h > +++ b/arch/sparc/include/uapi/asm/termios.h > @@ -40,5 +40,14 @@ struct winsize { > unsigned short ws_ypixel; > }; > > +#define NCC 8 > +struct termio { > + unsigned short c_iflag; /* input mode flags */ > + unsigned short c_oflag; /* output mode flags */ > + unsigned short c_cflag; /* control mode flags */ > + unsigned short c_lflag; /* local mode flags */ > + unsigned char c_line; /* line discipline */ > + unsigned char c_cc[NCC]; /* control characters */ > +}; > > #endif /* _UAPI_SPARC_TERMIOS_H */ > -- > 2.44.0 > Ping. Could we get this merged please?