Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4618156pxj; Wed, 12 May 2021 09:20:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwN6s/AK8cFd6j3/sC2x5OxMHMEaXcQRAu7ddE+oSJHKzJvyVAKKXtUbzJsmYsKMyRuSyws X-Received: by 2002:a17:906:82d4:: with SMTP id a20mr38568549ejy.14.1620836450377; Wed, 12 May 2021 09:20:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620836450; cv=none; d=google.com; s=arc-20160816; b=A2y3azJALLwI4+vtnz6OpdPu0xsD0wx25GRBFXg4dHHG6S54cBM9viLL8tiRmClttL riiCwA2nMhNW78LYZI8H4cLSWyp8Cc/1+ESuApIRuH1zm0LC41axNCy6VkzezqEpNaqP EldGV9punxyUXQKRA/wOKlN1j2JggmJKYPIO5VcnxDm0Dn0imHoJf7GG72q6z9g4GX04 zmTq4WqYrELfxmDE+q3SjOaC0hR4F0gotaXVadwFvcRzYlANvsJXQ6u+TDEsE5Sz8BMg jS5NaOM/+FMIL4WBsrPzDeH4GCtE3MlnZax6qCxaGMTrfekOzJvxMPztcewVtmBN9JOX fFNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gRZZxJEQlD1P77+2kypEjwXCUZWvBYjBmKT3rFp4tbg=; b=BXgU6ULb9+ghHrodzCgrnOoVSW9TDQ69KzwAh4/l+DfA0yzZRytI+NSUYxf/4sYMQ7 ZrBtEePXfGVpD2z6OExU403v4d7m4NRGJeiVGOApt41d/e2U02BokkYh3P9fWTgFKWuG eqe/CfK0fgWFUDGZdta7i8eXTJqbhwNoYnlFK3ha5EP6jJPN8N+Glui+gudBuZflwUU1 cB0w/+uNDW99g6FSfi3OnsU9RkJTTJIYCX+GPNXIskJt69gmP2ISJ2kzFz8r20gmuVyO VGrPiCfLUlOH0TH44QcS/labNEiuglbfVhJzJpq4sw3SRj0wa9qkvuxo7W01Q1DPnp73 VK8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Uw346nuZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y16si160477edd.399.2021.05.12.09.20.26; Wed, 12 May 2021 09:20:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Uw346nuZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240304AbhELQRw (ORCPT + 99 others); Wed, 12 May 2021 12:17:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:51290 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234879AbhELPeu (ORCPT ); Wed, 12 May 2021 11:34:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0E86561971; Wed, 12 May 2021 15:17:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620832649; bh=udW/PLZ5iZPSNRhPqLGSKInIoq9dtLr6gVmuhkHoe3k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Uw346nuZgdXAjMrtIW7Wl1wjoU/XEuK3mQaevlbO7TxfuHuON94vksTuQ6X2qc0p8 NTXevC0ntw3PztvtTBceiK3fJcsYNfPixJLctn1nIY69kb2bP/Km8unlNGpPwhhoTF bAt2eXWwnZ3SO4PHibR+soP14e0UTAMrhZehMK8mhXgGJ+PGbDrOGmqxnUL6nlCC8x osG7SL+Ph2Rpa5dRHSTwDfOLbsW1gFlQ4RFYWeHprAnP+sV+m77qSk6CxDcUzcW9cL lMZE+/p9gvmn+QsXu+ESR8SVVuH/lVVDzaMx/E2VudSrZqxhgTexr4YvmT+mN6HIj/ tlo9UYdVcKagA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1lgqc8-0005RE-54; Wed, 12 May 2021 17:17:32 +0200 Date: Wed, 12 May 2021 17:17:32 +0200 From: Johan Hovold To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Sasha Levin Subject: Re: [PATCH 5.10 245/530] tty: actually undefine superseded ASYNC flags Message-ID: References: <20210512144819.664462530@linuxfoundation.org> <20210512144827.885941093@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210512144827.885941093@linuxfoundation.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 12, 2021 at 04:45:55PM +0200, Greg Kroah-Hartman wrote: > From: Johan Hovold > > [ Upstream commit d09845e98a05850a8094ea8fd6dd09a8e6824fff ] > > Some kernel-internal ASYNC flags have been superseded by tty-port flags > and should no longer be used by kernel drivers. > > Fix the misspelled "__KERNEL__" compile guards which failed their sole > purpose to break out-of-tree drivers that have not yet been updated. > > Fixes: 5c0517fefc92 ("tty: core: Undefine ASYNC_* flags superceded by TTY_PORT* flags") > Signed-off-by: Johan Hovold > Link: https://lore.kernel.org/r/20210407095208.31838-2-johan@kernel.org > Signed-off-by: Greg Kroah-Hartman > Signed-off-by: Sasha Levin I don't think this should be backported to any stable tree and the stable tag was left out on purpose. > --- > include/uapi/linux/tty_flags.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/include/uapi/linux/tty_flags.h b/include/uapi/linux/tty_flags.h > index 900a32e63424..6a3ac496a56c 100644 > --- a/include/uapi/linux/tty_flags.h > +++ b/include/uapi/linux/tty_flags.h > @@ -39,7 +39,7 @@ > * WARNING: These flags are no longer used and have been superceded by the > * TTY_PORT_ flags in the iflags field (and not userspace-visible) > */ > -#ifndef _KERNEL_ > +#ifndef __KERNEL__ > #define ASYNCB_INITIALIZED 31 /* Serial port was initialized */ > #define ASYNCB_SUSPENDED 30 /* Serial port is suspended */ > #define ASYNCB_NORMAL_ACTIVE 29 /* Normal device is active */ > @@ -81,7 +81,7 @@ > #define ASYNC_SPD_WARP (ASYNC_SPD_HI|ASYNC_SPD_SHI) > #define ASYNC_SPD_MASK (ASYNC_SPD_HI|ASYNC_SPD_VHI|ASYNC_SPD_SHI) > > -#ifndef _KERNEL_ > +#ifndef __KERNEL__ > /* These flags are no longer used (and were always masked from userspace) */ > #define ASYNC_INITIALIZED (1U << ASYNCB_INITIALIZED) > #define ASYNC_NORMAL_ACTIVE (1U << ASYNCB_NORMAL_ACTIVE) Johan