Skip to content

Commit addeca4

Browse files
jhovoldgregkh
authored andcommitted
tty: actually undefine superseded ASYNC flags
[ Upstream commit d09845e ] 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: 5c0517f ("tty: core: Undefine ASYNC_* flags superceded by TTY_PORT* flags") Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://lore.kernel.org/r/20210407095208.31838-2-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 7551577 commit addeca4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/uapi/linux/tty_flags.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* WARNING: These flags are no longer used and have been superceded by the
4040
* TTY_PORT_ flags in the iflags field (and not userspace-visible)
4141
*/
42-
#ifndef _KERNEL_
42+
#ifndef __KERNEL__
4343
#define ASYNCB_INITIALIZED 31 /* Serial port was initialized */
4444
#define ASYNCB_SUSPENDED 30 /* Serial port is suspended */
4545
#define ASYNCB_NORMAL_ACTIVE 29 /* Normal device is active */
@@ -81,7 +81,7 @@
8181
#define ASYNC_SPD_WARP (ASYNC_SPD_HI|ASYNC_SPD_SHI)
8282
#define ASYNC_SPD_MASK (ASYNC_SPD_HI|ASYNC_SPD_VHI|ASYNC_SPD_SHI)
8383

84-
#ifndef _KERNEL_
84+
#ifndef __KERNEL__
8585
/* These flags are no longer used (and were always masked from userspace) */
8686
#define ASYNC_INITIALIZED (1U << ASYNCB_INITIALIZED)
8787
#define ASYNC_NORMAL_ACTIVE (1U << ASYNCB_NORMAL_ACTIVE)

0 commit comments

Comments
 (0)