Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp568511rdb; Tue, 19 Sep 2023 04:11:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEL+4iNGCgWMrLur71acg2z/6J7rSIyA7rw+YQHMgwL0tZU1ILibrC4lOJFHH96tctvAE4D X-Received: by 2002:a05:6a20:1442:b0:147:d861:50e4 with SMTP id a2-20020a056a20144200b00147d86150e4mr11007438pzi.33.1695121896155; Tue, 19 Sep 2023 04:11:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695121896; cv=none; d=google.com; s=arc-20160816; b=ozghNvJKgLuC6KczQRTqdX0TjsBGE+yEvgYXQ38fEvDo6LJpSec0PrFd6azNO+CaBS OTUd1c131CEzOma1Wr+Qgqo2LIpwAh1Ce//qDuxKCqgAps12b7NEhpYl6nX36VdCh+nD 9yffMKZwpXiThevNuqrsadHHVNEolbmubC0asZyEAeULJ1uxKriGY60Hhz7Un5meIzdA 4T8I74fb1XGs353axxwmQ3GXjD/F1GdIcaXWeTUykhMVjL/Mw9igg+iE6KldGXj/3KIq Xkk6KRbhOvQNRcrCUc5+M+bpE0+N4IRmwUBx4Azd8qEbVQY/q0ONMTfopMkUduPSVa6r EQRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id; bh=eiztfN4fkppvJQfJhSELCotGrzJmQUMpAboPUtHJuO0=; fh=4jU0JXtXq7fsKv7ewqjXWuI+DncAV/Q9HJ8FEad5qw4=; b=hseu47wPembELno6C6/NW+HfrttDSw3eQB2mOJlYxjJvPW1rSP+OC+tAtKlnrXIcY8 X1TAXeim3Ol+fHw5Hg3VeUmVj11OXc790Bo8dfltv246pnIxb/iLZdw592Rf9vKiOtaJ eSC+28/Qw6Q1EKkQ5jH3XXfK8OkxjdMnjTWM5qV9Fv/Bj2v7PumXJgxldaCO41sFSd8E 1rcdhAVC0MoEPUyjupXF78KNg9sB5fIzRgMeenRLxxeH/+Sx9WRMpm32/vOqmiR/zczU Jp1pPjKLi7BNq73czYsRpIMWlH4svxzprrs+wAPX2qK6P9Y1UPQrL5dCCqfIgTa/l34o ZARA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id mn12-20020a17090b188c00b0027482a0f548si7907377pjb.133.2023.09.19.04.11.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 04:11:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 868AD81E5CE9; Tue, 19 Sep 2023 03:51:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229733AbjISKvS (ORCPT + 99 others); Tue, 19 Sep 2023 06:51:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231833AbjISKvN (ORCPT ); Tue, 19 Sep 2023 06:51:13 -0400 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD223F0; Tue, 19 Sep 2023 03:51:07 -0700 (PDT) Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-532c3b4b55eso506482a12.0; Tue, 19 Sep 2023 03:51:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695120666; x=1695725466; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=eiztfN4fkppvJQfJhSELCotGrzJmQUMpAboPUtHJuO0=; b=N1g003Ntk0JULWEccR86VfpYHKUtl0LPSPz/OtsURUXCHujGdJ3V4/xhfm5t2WYPXO pZ+O3xMLhCPPT3cM1jEKvLdDC5XyhmzxQTznzBBLakGvuJue6hrnJzVeE6ijE9aLh1pH rsjY5RVsjPT0tj8JK+micFUT5GjdZtQdzTqKNX2gfUcpTj2UyJ71Rfcnr2dWW29ikHIF Le8DyXJUvdRRMOC8KmMowFPMtjVzj32lIKGKZSTbkVw82mfxkHYfPbjYAdO6Ka9WrWZB QBwGCSEjl8OuRpZo+reX1N2wtQW8/c0tEZnfOr52+vpQJucdX/Bd7G+f4+51VMb+nPXW 8dSw== X-Gm-Message-State: AOJu0YyKiadQRQYE6dk8r+OYnSFLJA2fbszkHJE04Hps12ta5k54e3UO xDAN3dQFTK2vC6LS55eFz2c= X-Received: by 2002:aa7:d4d7:0:b0:530:87a6:1c37 with SMTP id t23-20020aa7d4d7000000b0053087a61c37mr9668157edr.14.1695120666115; Tue, 19 Sep 2023 03:51:06 -0700 (PDT) Received: from ?IPV6:2a0b:e7c0:0:107::aaaa:59? ([2a0b:e7c0:0:107::aaaa:59]) by smtp.gmail.com with ESMTPSA id m9-20020aa7c2c9000000b0052576969ef8sm7191550edp.14.2023.09.19.03.51.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Sep 2023 03:51:05 -0700 (PDT) Message-ID: <93ccb0ef-8614-4bb2-a8cd-45f425774e30@kernel.org> Date: Tue, 19 Sep 2023 12:51:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 12/15] tty: convert THROTTLE constants into enum Content-Language: en-US To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= Cc: gregkh@linuxfoundation.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230919085156.1578-1-jirislaby@kernel.org> <20230919085156.1578-13-jirislaby@kernel.org> <122da55f-d45-923b-953-7a025a7d42f@linux.intel.com> From: Jiri Slaby Autocrypt: addr=jirislaby@kernel.org; keydata= xsFNBE6S54YBEACzzjLwDUbU5elY4GTg/NdotjA0jyyJtYI86wdKraekbNE0bC4zV+ryvH4j rrcDwGs6tFVrAHvdHeIdI07s1iIx5R/ndcHwt4fvI8CL5PzPmn5J+h0WERR5rFprRh6axhOk rSD5CwQl19fm4AJCS6A9GJtOoiLpWn2/IbogPc71jQVrupZYYx51rAaHZ0D2KYK/uhfc6neJ i0WqPlbtIlIrpvWxckucNu6ZwXjFY0f3qIRg3Vqh5QxPkojGsq9tXVFVLEkSVz6FoqCHrUTx wr+aw6qqQVgvT/McQtsI0S66uIkQjzPUrgAEtWUv76rM4ekqL9stHyvTGw0Fjsualwb0Gwdx ReTZzMgheAyoy/umIOKrSEpWouVoBt5FFSZUyjuDdlPPYyPav+hpI6ggmCTld3u2hyiHji2H cDpcLM2LMhlHBipu80s9anNeZhCANDhbC5E+NZmuwgzHBcan8WC7xsPXPaiZSIm7TKaVoOcL 9tE5aN3jQmIlrT7ZUX52Ff/hSdx/JKDP3YMNtt4B0cH6ejIjtqTd+Ge8sSttsnNM0CQUkXps w98jwz+Lxw/bKMr3NSnnFpUZaxwji3BC9vYyxKMAwNelBCHEgS/OAa3EJoTfuYOK6wT6nadm YqYjwYbZE5V/SwzMbpWu7Jwlvuwy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zBLXZCujlYQ DFXpyMNVJ2ZwPmX2mWEoYuaBU0JN7wM+/zWgOf2zRwhEuD3A2cO2PxoiIfyUEfB9SSmffaK/ S4xXoB6wvGENZ85Hg37C7WDNdaAt6Xh2uQIly5grkgvWppkNy4ZHxE+jeNsU7tg= In-Reply-To: <122da55f-d45-923b-953-7a025a7d42f@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 19 Sep 2023 03:51:20 -0700 (PDT) On 19. 09. 23, 12:10, Ilpo Järvinen wrote: > On Tue, 19 Sep 2023, Jiri Slaby (SUSE) wrote: > >> And make an explicit constant for zero too. This allows for easier type >> checking of the parameter. >> >> Note: tty_struct::flow_change is kept as int because include/tty.h >> (tty_struct) doesn't see tty/tty.h (this enum). > > And it cannot moved there because of what? It's possible, but would make the constants "public". I hoped for forward enum declaration, but since enum is no longer a simple int, the compilation then fails with incomplete type of tty_struct. thanks, -- js suse labs