fix: file: Rename fcheck lookup_fd_rcu (v5.10.220)
[lttng-modules.git] / include / wrapper / blkdev.h
index 0d5ad90fa93cf2ba99c0c9cbdbbe996dda954312..76397f6b112bee3263b5d3ffb23da7075a9aa80c 100644 (file)
 #ifndef _LTTNG_WRAPPER_BLKDEV_H
 #define _LTTNG_WRAPPER_BLKDEV_H
 
-#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0))
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0) \
+       || LTTNG_RHEL_KERNEL_RANGE(5,14,0,162,0,0, 5,15,0,0,0,0))
 #include <linux/blkdev.h>
 #else
 #include <linux/genhd.h>
 #endif
 
-#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0))
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0) \
+       || LTTNG_RHEL_KERNEL_RANGE(5,14,0,162,0,0, 5,15,0,0,0,0))
 #define LTTNG_GENHD_FL_HIDDEN GENHD_FL_HIDDEN
 #else
 #define LTTNG_GENHD_FL_HIDDEN GENHD_FL_SUPPRESS_PARTITION_INFO
@@ -50,7 +52,7 @@ struct class *wrapper_get_block_class(void)
  *   extern struct class block_class;
  */
 static inline
-struct class *__canary__get_block_class(void)
+const struct class *__canary__get_block_class(void)
 {
        return &block_class;
 }
This page took 0.024016 seconds and 4 git commands to generate.