Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp118023imm; Fri, 5 Oct 2018 00:31:11 -0700 (PDT) X-Google-Smtp-Source: ACcGV605Yo0UBG/yqoWKqglI6PCop7/SiZO1jjXGQHp238v25g+bUvGIt8MSpp9DSxzLSqCfBdGB X-Received: by 2002:a63:7d43:: with SMTP id m3-v6mr8998501pgn.341.1538724671177; Fri, 05 Oct 2018 00:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538724671; cv=none; d=google.com; s=arc-20160816; b=MgGSHsj4oMOLkPtOewFCbhlPt8X0r3AsVRinSpog+wrM2LLFBzpVkLo0E3cvuAIGIx daF1y4DakcOPoh1/rm0xZK/E+hg/gU88FNh57g2YrZK0bgjP7kg8b5y5L+XuQKctiCk9 E62xXFLYo8drjUfLwtePuSrO86lDwa/HAS0nbZMP/oDDh8KWd/Zty0vRq22BSauAb6H/ E13mjxl2ThVXzP8CaJWOvaoohpx9doTkPymQlaqiUXGlKYz/3bLTbcNRX2qVd3jcVG/L hdi/ZEFM5Mtd+rsn40FTHcNZdcHYSETxYG7HKl+xUDSm4VgwymCPuyiVbA61BOTpWp2Q D2NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=r6PSMvFJzZ0PvRtqT8MCqgBT61iBAdJxRU5HrfurwqU=; b=jEwXDz+WMPlzPxA79yobPcxdvSC/1k177UK9UO8Ai0yECuK+48bzuz4R0rsLe4fq6R JaXclKjnpgK2VzvD9tQZyeDIR8SGZCwpv2grtTOEpUBdWcvBL7A1cfJBQd2ucpmLaQMB 43YdY58ozqc14ruxxWR2U/2IRNKfMWtNK2wa0Nirqh5xjdgNfeBzQx0jiBevFM9YrK8k q5koz58tcZ4K9W1bF+/zN42kfoA0IYt2V20Rw8ajaVGRVwlKgmQWOboNWaQ2Li7cT7Pl segmgJauaYx55TZbNNnYNXT30Cu1jzHrYz3LAP/VKsFJn6fZYQm58xQIp9VlBR1fwK0g Oz+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p74-v6si7556744pfa.44.2018.10.05.00.30.54; Fri, 05 Oct 2018 00:31:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728387AbeJEO1t (ORCPT + 99 others); Fri, 5 Oct 2018 10:27:49 -0400 Received: from mail-vk1-f196.google.com ([209.85.221.196]:45728 "EHLO mail-vk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728200AbeJEO1t (ORCPT ); Fri, 5 Oct 2018 10:27:49 -0400 Received: by mail-vk1-f196.google.com with SMTP id l123-v6so2766320vkl.12; Fri, 05 Oct 2018 00:30:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=r6PSMvFJzZ0PvRtqT8MCqgBT61iBAdJxRU5HrfurwqU=; b=k6ioemKBZaCoykTZuCjCCZQlU4aaisVRU7BQRH4vD+RxOwGMR2XZErtkD4K0dVMEbO FO/nurLaRbNgtQ2kply1Je+f4PPY5Xq09+SGXUjswmSCacSkprJpOgrUW99Wxd8w9d87 fKkcJF0ioqXHgRb6W6UWNlObBWHdcmz1bl5+Tzmd4lw7RFsEVxkAAAc1qW7uv6TrkGnw 8ND4HDtTSuMIXaVb6LbBT7xOrPhIrY8AAOW2yqhDvaVTQnR/yixDqYRvvbmWEBeS+YwA r/oxksVICjXEq0YtsPyQiDllEMNH8xbH8v97lpj9EO7LL4DCBUQPwn1IgO1JIefzaZwW GSag== X-Gm-Message-State: ABuFfohFZFmqnY31fDjdb3f4c/A7HsP5S6I4lzObQk0an4mp6T7OzxWB Xb+hOZ5zuV2Zy8sMB+uGf4gurYMF4t0Mg+QxDqE= X-Received: by 2002:a1f:cd3:: with SMTP id 202-v6mr4015498vkm.74.1538724622576; Fri, 05 Oct 2018 00:30:22 -0700 (PDT) MIME-Version: 1.0 References: <20181004222953.2229-1-hpa@zytor.com> <20181004222953.2229-2-hpa@zytor.com> In-Reply-To: <20181004222953.2229-2-hpa@zytor.com> From: Geert Uytterhoeven Date: Fri, 5 Oct 2018 09:30:10 +0200 Message-ID: Subject: Re: [PATCH 1/5] asm-generic, termios: add alias constants from MIPS To: "H. Peter Anvin" Cc: Linux Kernel Mailing List , Linux-Arch , "open list:SERIAL DRIVERS" , Arnd Bergmann , Greg KH , Jiri Slaby Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, Thanks for your patch! On Fri, Oct 5, 2018 at 12:30 AM H. Peter Anvin (Intel) wrote: > Some architectures, in this case MIPS, need a couple of legacy alias > constants for bits. There really is no reason why we can't define them > generically for all architectures. To avoid polluting namespace? To avoid people using them in a context not specific to MIPS? > --- a/include/uapi/asm-generic/termbits.h > +++ b/include/uapi/asm-generic/termbits.h > @@ -8,7 +8,10 @@ typedef unsigned char cc_t; > typedef unsigned int speed_t; > typedef unsigned int tcflag_t; > > -#define NCCS 19 > +#ifndef NCCS > +# define NCCS 19 > +#endif > + > struct termios { > tcflag_t c_iflag; /* input mode flags */ > tcflag_t c_oflag; /* output mode flags */ > @@ -49,6 +52,7 @@ struct ktermios { > #define VTIME 5 > #define VMIN 6 > #define VSWTC 7 > +#define VSWTCH VSWTC I'd at least add a comment /* legacy MIPS */ here. > #define VSTART 8 > #define VSTOP 9 > #define VSUSP 10 > @@ -173,6 +177,7 @@ struct ktermios { > #define ECHONL 0000100 > #define NOFLSH 0000200 > #define TOSTOP 0000400 > +#define ITOSTOP TOSTOP Likewise. > #define ECHOCTL 0001000 > #define ECHOPRT 0002000 > #define ECHOKE 0004000 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds