From: Michael Jeanson Date: Mon, 4 Apr 2022 17:54:59 +0000 (-0400) Subject: fix: block: remove genhd.h (v5.18) X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=868e0b6db59159197c2cec3550fa4ad5e6572bc5;p=lttng-modules.git fix: block: remove genhd.h (v5.18) See upstream commit : commit 322cbb50de711814c42fb088f6d31901502c711a Author: Christoph Hellwig Date: Mon Jan 24 10:39:13 2022 +0100 block: remove genhd.h There is no good reason to keep genhd.h separate from the main blkdev.h header that includes it. So fold the contents of genhd.h into blkdev.h and remove genhd.h entirely. Change-Id: I7cf2aaa3a4c133320b95f2edde49f790f9515dbd Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/include/wrapper/genhd.h b/include/wrapper/genhd.h index 3c6dbcbe..4a59b68e 100644 --- a/include/wrapper/genhd.h +++ b/include/wrapper/genhd.h @@ -12,7 +12,11 @@ #ifndef _LTTNG_WRAPPER_GENHD_H #define _LTTNG_WRAPPER_GENHD_H +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0)) +#include +#else #include +#endif #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0)) #define LTTNG_GENHD_FL_HIDDEN GENHD_FL_HIDDEN