projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: adjust version range for trace_find_free_extent()
[lttng-modules.git]
/
wrapper
/
genhd.h
diff --git
a/wrapper/genhd.h
b/wrapper/genhd.h
index 4eac2c1a14c62ed74a316a98ff4228f4478352da..98feb57bebde635fb11781209ca2871a8faafa0c 100644
(file)
--- a/
wrapper/genhd.h
+++ b/
wrapper/genhd.h
@@
-32,6
+32,19
@@
struct class *wrapper_get_block_class(void)
return ptr_block_class;
}
return ptr_block_class;
}
+/*
+ * Canary function to check for 'block_class' at compile time.
+ *
+ * From 'include/linux/genhd.h':
+ *
+ * extern struct class block_class;
+ */
+static inline
+struct class *__canary__get_block_class(void)
+{
+ return &block_class;
+}
+
static inline
struct device_type *wrapper_get_disk_type(void)
{
static inline
struct device_type *wrapper_get_disk_type(void)
{
@@
-45,6
+58,16
@@
struct device_type *wrapper_get_disk_type(void)
return ptr_disk_type;
}
return ptr_disk_type;
}
+/*
+ * No canary for 'disk_type', it's only defined in 'block/genhd.c'.
+ *
+ * static inline
+ * struct device_type *__canary__get_disk_type(void)
+ * {
+ * return &disk_type;
+ * }
+ */
+
#else
static inline
#else
static inline
This page took
0.025015 seconds
and
4
git commands to generate.