History

tty: actually undefine superseded ASYNC flags

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.

Johan Hovold committed 5 years ago

Commit d09845e1 parent b8958541 file · +2 −2Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/tty_flags.h+2−2
@@ -39,7 +39,7 @@ · 38 unmodified lines
39 * WARNING: These flags are no longer used and have been superceded by the39 * WARNING: These flags are no longer used and have been superceded by the
40 * TTY_PORT_ flags in the iflags field (and not userspace-visible)40 * TTY_PORT_ flags in the iflags field (and not userspace-visible)
41 */41 */
42#ifndef _KERNEL_42#ifndef __KERNEL__
43#define ASYNCB_INITIALIZED 31 /* Serial port was initialized */43#define ASYNCB_INITIALIZED 31 /* Serial port was initialized */
44#define ASYNCB_SUSPENDED 30 /* Serial port is suspended */44#define ASYNCB_SUSPENDED 30 /* Serial port is suspended */
45#define ASYNCB_NORMAL_ACTIVE 29 /* Normal device is active */45#define ASYNCB_NORMAL_ACTIVE 29 /* Normal device is active */
@@ -81,7 +81,7 @@ · 35 unmodified lines
81#define ASYNC_SPD_WARP (ASYNC_SPD_HI|ASYNC_SPD_SHI)81#define ASYNC_SPD_WARP (ASYNC_SPD_HI|ASYNC_SPD_SHI)
82#define ASYNC_SPD_MASK (ASYNC_SPD_HI|ASYNC_SPD_VHI|ASYNC_SPD_SHI)82#define ASYNC_SPD_MASK (ASYNC_SPD_HI|ASYNC_SPD_VHI|ASYNC_SPD_SHI)
83 83
84#ifndef _KERNEL_84#ifndef __KERNEL__
85/* These flags are no longer used (and were always masked from userspace) */85/* These flags are no longer used (and were always masked from userspace) */
86#define ASYNC_INITIALIZED (1U << ASYNCB_INITIALIZED)86#define ASYNC_INITIALIZED (1U << ASYNCB_INITIALIZED)
87#define ASYNC_NORMAL_ACTIVE (1U << ASYNCB_NORMAL_ACTIVE)87#define ASYNC_NORMAL_ACTIVE (1U << ASYNCB_NORMAL_ACTIVE)