Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp417532pxj; Thu, 20 May 2021 12:20:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMIrMCX89TRqgmosAIzgFyIKSOL8N3Qq6F9ZY7ROFWcNmZKQn4js10HDOiFouh+6L6Z6RM X-Received: by 2002:a17:906:270a:: with SMTP id z10mr6127185ejc.204.1621538422066; Thu, 20 May 2021 12:20:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621538422; cv=none; d=google.com; s=arc-20160816; b=cejLDOuf/BST9TARvk2zewjb1Bi4RqYsgHaaDP7jGsBesTjeF3shE9MGIymkyRrXSh TIEDkpNDWKwC+2pwQpu3gm8pSDjaBhddgu4HOBju4c3nsJcZodDJ4mgcQnbplJmBNiBy n07YYOxwMv5HH4kmu297I203Ebtc/0u3IGRLfIHG+bXYgaptFpui3unxDEsvziimAuts l5ruqjZGglTjronjDGPycJ1nkmcutrNv7uIW57EhmvwFgJCofzPApB+xD+ia/aGF5yZK yulbjtGyZZI0dpv8z9hCxG7hFf4WGVlH00T1f4oKO2/MTt9652/45WaikrRfxUwbMu6j yfbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=iR/I5ocmzvZReVUi9soxFKGrx7vVsCLMLKLqjy484PM=; b=YhsDP79sQ4rNX3sxSeyU1LDHaqtlKpv5x1+ooL3lm93S7MCuyClJMZqboKMTxUHZbj lPtvmNy1+QtbvR7E/PStersDuTE3FP/QwYflaT6Kc/vad0ClFgRqEPD15i/GeDZaRr9y gvjpi7NTnU3sgnwjxBQ2m9y7/2Gk36HxJXaMO9t0uj6RhFI7NGYEuvvVBHncqtQYk9s7 J3e4EScYg2a/L0aDRwwK9q5cCtJcTnHNCugzdpSdKhYKo6187pIpSFTXSX7SPEJeLzAH RtTSlFaRXaptgZ1nFD1IyoV4wYiQeO1LBRwu1I8QhjOhNRFQBDe64lBeoJu33niSRUzD f/kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SH5bU4SN; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f10si3257020ejd.180.2021.05.20.12.19.58; Thu, 20 May 2021 12:20:22 -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=@linuxfoundation.org header.s=korg header.b=SH5bU4SN; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237066AbhETKsV (ORCPT + 99 others); Thu, 20 May 2021 06:48:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:36796 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236964AbhETKcY (ORCPT ); Thu, 20 May 2021 06:32:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 406DA61585; Thu, 20 May 2021 09:52:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504349; bh=OYdXUJnQLKHa4ZP4d2D5NhiOWYXIomhjQc7Si0a9dgA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SH5bU4SNawEKUDXEETMuh2dm5/gakIg7nDo6yRb/oZCMjCJGfHzpqaoyCo0WbI0G0 xffGIXhtXhBo/x+ATeY4lKDetVAEEqQVWsf0qcBRIhv9NDbMd40IKwXA+Y/lRTpX5B fcIk+6FYfOHf6RBh6LmPs/B73C7YWlpDTHGPhdZ4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johan Hovold , Sasha Levin Subject: [PATCH 4.14 172/323] tty: actually undefine superseded ASYNC flags Date: Thu, 20 May 2021 11:21:04 +0200 Message-Id: <20210520092126.008346413@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 6ac609a00dea..31e106168ebb 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) -- 2.30.2