summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-03-15 14:24:00 +0100
committerSimon Rettberg2024-03-15 14:33:48 +0100
commitcc44115c293f44a282f32446f801bb5620a5feb5 (patch)
treecf5c3d9a200bc5192878231ff8a5e52b90946df4
parentDon't use sysfs_emit in case we apply an offset to buf (diff)
downloadxloop-cc44115c293f44a282f32446f801bb5620a5feb5.tar.gz
xloop-cc44115c293f44a282f32446f801bb5620a5feb5.tar.xz
xloop-cc44115c293f44a282f32446f801bb5620a5feb5.zip
[KERNEL] Fix warning on RHEL/Rocky/CentOS 9.0
-rw-r--r--src/kernel/xloop_file_fmt_qcow_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/xloop_file_fmt_qcow_main.c b/src/kernel/xloop_file_fmt_qcow_main.c
index cc14941..4e9e1bf 100644
--- a/src/kernel/xloop_file_fmt_qcow_main.c
+++ b/src/kernel/xloop_file_fmt_qcow_main.c
@@ -997,7 +997,7 @@ static int __qcow_file_fmt_read_compressed(struct xloop_file_fmt *xlo_fmt, struc
u8 *in_buf = NULL;
ssize_t len;
void *data;
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0) && !RHEL_CHECK_VERSION(RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 0))
unsigned long irq_flags;
#endif
int offset_in_cluster = xloop_file_fmt_qcow_offset_into_cluster(qcow_data, offset);
@@ -1085,7 +1085,7 @@ static int __qcow_file_fmt_read_bvec(struct xloop_file_fmt *xlo_fmt, struct bio_
u64 bytes_done = 0;
enum xloop_file_fmt_qcow_subcluster_type type;
void *data;
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0) && !RHEL_CHECK_VERSION(RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 0))
unsigned long irq_flags;
#endif
ssize_t len;