From: Kienan Stewart Date: Fri, 24 Jan 2025 19:47:09 +0000 (+0000) Subject: Fix: genhd.h removed in SLE15 SP5 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=099049f7b5aa1f113e1c82059d5af80698491ec7;p=lttng-modules.git Fix: genhd.h removed in SLE15 SP5 See upstream SUSE commit: commit f9d378fde421f331e9f1f18f3b2cbdaf9fcd0a1a Author: Hannes Reinecke 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 Signed-off-by: Mathieu Desnoyers --- diff --git a/include/wrapper/genhd.h b/include/wrapper/genhd.h index e32c7b68..9e765eca 100644 --- a/include/wrapper/genhd.h +++ b/include/wrapper/genhd.h @@ -13,14 +13,16 @@ #define _LTTNG_WRAPPER_GENHD_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 #else #include #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