diff --git a/src/runtime_src/core/pcie/driver/linux/xocl/subdev/ulite.c b/src/runtime_src/core/pcie/driver/linux/xocl/subdev/ulite.c index cb880add264..eedebc8383c 100755 --- a/src/runtime_src/core/pcie/driver/linux/xocl/subdev/ulite.c +++ b/src/runtime_src/core/pcie/driver/linux/xocl/subdev/ulite.c @@ -338,12 +338,12 @@ static void ulite_shutdown(struct uart_port *port) mutex_unlock(&pdata->lock); } -#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 1, 0) +#if (LINUX_VERSION_CODE > KERNEL_VERSION(6, 1, 0)) || defined(RHEL_9_2_GE) static void ulite_set_termios(struct uart_port *port, struct ktermios *termios, - struct ktermios *old) + const struct ktermios *old) #else static void ulite_set_termios(struct uart_port *port, struct ktermios *termios, - const struct ktermios *old) + struct ktermios *old) #endif { unsigned long flags; diff --git a/src/runtime_src/core/pcie/driver/linux/xocl/userpf/xocl_bo.h b/src/runtime_src/core/pcie/driver/linux/xocl/userpf/xocl_bo.h index 89552e9308e..e54088f16f5 100644 --- a/src/runtime_src/core/pcie/driver/linux/xocl/userpf/xocl_bo.h +++ b/src/runtime_src/core/pcie/driver/linux/xocl/userpf/xocl_bo.h @@ -56,7 +56,7 @@ #define XOCL_BO_ARE (1 << 26) // Linux 5.18 uses iosys-map instead of dma-buf-map -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) || defined(RHEL_8_7) || defined(RHEL_9_1_GE) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) || defined(RHEL_8_7_GE) #define XOCL_MAP_TYPE iosys_map #define XOCL_MAP_SET_VADDR iosys_map_set_vaddr #define XOCL_MAP_IS_NULL iosys_map_is_null diff --git a/src/runtime_src/core/pcie/driver/linux/xocl/xocl_drv.h b/src/runtime_src/core/pcie/driver/linux/xocl/xocl_drv.h index 4a1d5674bf6..e08fc752692 100644 --- a/src/runtime_src/core/pcie/driver/linux/xocl/xocl_drv.h +++ b/src/runtime_src/core/pcie/driver/linux/xocl/xocl_drv.h @@ -171,14 +171,14 @@ #endif #if defined(RHEL_RELEASE_CODE) -#if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 1) -#define RHEL_9_1_GE +#if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 2) +#define RHEL_9_2_GE #endif #if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 0) #define RHEL_9_0_GE #endif -#if RHEL_RELEASE_CODE == RHEL_RELEASE_VERSION(8, 7) -#define RHEL_8_7 +#if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8, 7) +#define RHEL_8_7_GE #endif #if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8, 5) #define RHEL_8_5_GE