]> git.lttng.org Git - lttng-modules.git/commitdiff
Fix: genhd.h removed in SLE15 SP5
authorKienan Stewart <kstewart@efficios.com>
Fri, 24 Jan 2025 19:47:09 +0000 (19:47 +0000)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 28 Jan 2025 18:58:45 +0000 (13:58 -0500)
See upstream SUSE commit:

    commit f9d378fde421f331e9f1f18f3b2cbdaf9fcd0a1a
    Author: Hannes Reinecke <hare@suse.de>
    Date:   Sat Nov 26 13:51:49 2022 +0100

        - block: remove genhd.h (jsc#PED-1183).
        - Refresh
          patches.suse/0006-nvdimm-blk-Delete-the-block-aperture-window-driver.patch.
        - Refresh
          patches.suse/0007-PM-hibernate-encrypt-hidden-area.patch.
        - Refresh patches.suse/target-add-rbd-backend.patch.

        suse-commit: dd0982ae4edd5e7142e6ed1676269d54ac51d7df

Change-Id: I4b2092fc4547d2515724a6065e4656eb33994c00
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/wrapper/blkdev.h

index 76397f6b112bee3263b5d3ffb23da7075a9aa80c..8e5a0860f7ca47f361240b3a32f83eb2973f834f 100644 (file)
 #define _LTTNG_WRAPPER_BLKDEV_H
 
 #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))
+       || LTTNG_RHEL_KERNEL_RANGE(5,14,0,162,0,0, 5,15,0,0,0,0) \
+       || LTTNG_SLE_VERSION_CODE >= LTTNG_SLE_VERSION(150500, 0, 0))
 #include <linux/blkdev.h>
 #else
 #include <linux/genhd.h>
 #endif
 
 #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))
+       || LTTNG_RHEL_KERNEL_RANGE(5,14,0,162,0,0, 5,15,0,0,0,0) \
+       || LTTNG_SLE_VERSION_CODE >= LTTNG_SLE_VERSION(150500, 0, 0))
 #define LTTNG_GENHD_FL_HIDDEN GENHD_FL_HIDDEN
 #else
 #define LTTNG_GENHD_FL_HIDDEN GENHD_FL_SUPPRESS_PARTITION_INFO
This page took 0.031861 seconds and 4 git commands to generate.