projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: move "user" attribute from field to type
[lttng-modules.git]
/
include
/
wrapper
/
genhd.h
diff --git
a/include/wrapper/genhd.h
b/include/wrapper/genhd.h
index 3c6dbcbe41a386e6c0bfa593c6c3bf479009f399..4a59b68e9c3b0f4785b9e7d7b00dbe0bc5d37d85 100644
(file)
--- a/
include/wrapper/genhd.h
+++ b/
include/wrapper/genhd.h
@@
-12,7
+12,11
@@
#ifndef _LTTNG_WRAPPER_GENHD_H
#define _LTTNG_WRAPPER_GENHD_H
#ifndef _LTTNG_WRAPPER_GENHD_H
#define _LTTNG_WRAPPER_GENHD_H
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0))
+#include <linux/blkdev.h>
+#else
#include <linux/genhd.h>
#include <linux/genhd.h>
+#endif
#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0))
#define LTTNG_GENHD_FL_HIDDEN GENHD_FL_HIDDEN
#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0))
#define LTTNG_GENHD_FL_HIDDEN GENHD_FL_HIDDEN
This page took
0.038047 seconds
and
4
git commands to generate.