]> git.pld-linux.org Git - packages/lttng-modules.git/blame - 0004-fix-block-remove-genhd.h-v5.18.patch
- upstream fixes for kernel 5.18 compatibility, rel 2
[packages/lttng-modules.git] / 0004-fix-block-remove-genhd.h-v5.18.patch
CommitLineData
5041df65
JR
1From 868e0b6db59159197c2cec3550fa4ad5e6572bc5 Mon Sep 17 00:00:00 2001
2From: Michael Jeanson <mjeanson@efficios.com>
3Date: Mon, 4 Apr 2022 13:54:59 -0400
4Subject: [PATCH 04/13] fix: block: remove genhd.h (v5.18)
5
6See upstream commit :
7
8 commit 322cbb50de711814c42fb088f6d31901502c711a
9 Author: Christoph Hellwig <hch@lst.de>
10 Date: Mon Jan 24 10:39:13 2022 +0100
11
12 block: remove genhd.h
13
14 There is no good reason to keep genhd.h separate from the main blkdev.h
15 header that includes it. So fold the contents of genhd.h into blkdev.h
16 and remove genhd.h entirely.
17
18Change-Id: I7cf2aaa3a4c133320b95f2edde49f790f9515dbd
19Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
20Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
21---
22 include/wrapper/genhd.h | 4 ++++
23 1 file changed, 4 insertions(+)
24
25diff --git a/include/wrapper/genhd.h b/include/wrapper/genhd.h
26index 3c6dbcbe..4a59b68e 100644
27--- a/include/wrapper/genhd.h
28+++ b/include/wrapper/genhd.h
29@@ -12,7 +12,11 @@
30 #ifndef _LTTNG_WRAPPER_GENHD_H
31 #define _LTTNG_WRAPPER_GENHD_H
32
33+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0))
34+#include <linux/blkdev.h>
35+#else
36 #include <linux/genhd.h>
37+#endif
38
39 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0))
40 #define LTTNG_GENHD_FL_HIDDEN GENHD_FL_HIDDEN
41--
422.36.1
43
This page took 0.050131 seconds and 4 git commands to generate.