From 1992df907fa0ba0c1c2fe4ff916ab68e3939594c Mon Sep 17 00:00:00 2001 From: Andrea Righi Date: Tue, 11 May 2021 09:30:51 +0200 Subject: [PATCH] UBUNTU: SAUCE: make ASYNCB_INITIALIZED available for the kernel The flag ASYNCB_INITIALIZED is required by our driver ubuntu/xr-usb-serial. Make it available to kernel code to prevent the following build failure: ./build/ubuntu/xr-usb-serial/xr_usb_serial_common.c:1613:15: error: 'ASYNCB_INITIALIZED' undeclared (first use in this function); did you mean 'RCU_INITIALIZER'? 1613 | if (test_bit(ASYNCB_INITIALIZED, &xr_usb_serial->port.flags)) | ^~~~~~~~~~~~~~~~~~ | RCU_INITIALIZER Signed-off-by: Andrea Righi --- include/uapi/linux/tty_flags.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/tty_flags.h b/include/uapi/linux/tty_flags.h index cf25056d4b27..03f0a7cfca2e 100644 --- a/include/uapi/linux/tty_flags.h +++ b/include/uapi/linux/tty_flags.h @@ -32,6 +32,7 @@ #define ASYNCB_AUTOPROBE 15 /* [x] Port was autoprobed by PCI/PNP code */ #define ASYNCB_MAGIC_MULTIPLIER 16 /* Use special CLK or divisor */ #define ASYNCB_LAST_USER 16 +#define ASYNCB_INITIALIZED 31 /* Serial port was initialized */ /* * Internal flags used only by kernel (read-only) @@ -40,7 +41,6 @@ * TTY_PORT_ flags in the iflags field (and not userspace-visible) */ #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 */ #define ASYNCB_BOOT_AUTOCONF 28 /* Autoconfigure port on bootup */