File block-remove-genhd-h-v5.18.patch of Package lttng-modules
21
1
From: Michael Jeanson <mjeanson@efficios.com>
2
Date: Mon Apr 4 13:54:59 2022 -0400
3
Git-commit: f9e76ad2bef7b04d8c51c2b5ac716b081e856d4f
4
Signed-off-by: Tony Jones <tonyj@suse.de>
5
6
fix: block: remove genhd.h (v5.18)
7
8
SUSE: Adjust this commit to reflect SLE15-SP5 backport
9
10
--- a/include/wrapper/genhd.h
11
+++ b/include/wrapper/genhd.h
12
13
#ifndef _LTTNG_WRAPPER_GENHD_H
14
#define _LTTNG_WRAPPER_GENHD_H
15
16
-#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0))
17
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0) || defined(CONFIG_SUSE_KERNEL))
18
#include <linux/blkdev.h>
19
#else
20
#include <linux/genhd.h>
21