diff options
author | Simon Rettberg | 2024-03-15 14:33:01 +0100 |
---|---|---|
committer | Simon Rettberg | 2024-03-15 14:33:48 +0100 |
commit | 71c3c1527bb50284db6e447cfd79ef65f0146c1c (patch) | |
tree | ba5577702c725ab7bdb8995565d09bbb427f3197 /src/kernel/xloop_main_rhel_9.0.c | |
parent | [KERNEL] Fix warning on RHEL/Rocky/CentOS 9.0 (diff) | |
download | xloop-71c3c1527bb50284db6e447cfd79ef65f0146c1c.tar.gz xloop-71c3c1527bb50284db6e447cfd79ef65f0146c1c.tar.xz xloop-71c3c1527bb50284db6e447cfd79ef65f0146c1c.zip |
[KERNEL] Fix build on Alma/RHEL/Rocky 9.2
Diffstat (limited to 'src/kernel/xloop_main_rhel_9.0.c')
-rw-r--r-- | src/kernel/xloop_main_rhel_9.0.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/xloop_main_rhel_9.0.c b/src/kernel/xloop_main_rhel_9.0.c index abb256d..66f6884 100644 --- a/src/kernel/xloop_main_rhel_9.0.c +++ b/src/kernel/xloop_main_rhel_9.0.c @@ -2154,7 +2154,7 @@ static int xloop_add(int i) out_free_file_fmt: xloop_file_fmt_free(xlo->xlo_fmt); out_cleanup_disk: -#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0) +#if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 2) put_disk(xlo->xlo_disk); #else blk_cleanup_disk(xlo->xlo_disk); @@ -2177,7 +2177,7 @@ static void xloop_remove(struct xloop_device *xlo) debugfs_remove(xlo->xlo_dbgfs_dir); /* Make this xloop device unreachable from pathname. */ del_gendisk(xlo->xlo_disk); -#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0) +#if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 2) put_disk(xlo->xlo_disk); #else blk_cleanup_disk(xlo->xlo_disk); |