projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: 'struct timex' removed upstream (v5.6)
[lttng-modules.git]
/
wrapper
/
genhd.h
diff --git
a/wrapper/genhd.h
b/wrapper/genhd.h
index 5bb390b6f9f98255052311fd1493ba364e1c2e30..70b8d3fe6f3cdfd28349675b3ba40fda857a76f1 100644
(file)
--- a/
wrapper/genhd.h
+++ b/
wrapper/genhd.h
@@
-30,7
+30,7
@@
#ifdef CONFIG_KALLSYMS
#include <linux/kallsyms.h>
#ifdef CONFIG_KALLSYMS
#include <linux/kallsyms.h>
-#include
"kallsyms.h"
+#include
<wrapper/kallsyms.h>
static inline
char *wrapper_disk_name(struct gendisk *hd, int partno, char *buf)
static inline
char *wrapper_disk_name(struct gendisk *hd, int partno, char *buf)
@@
-41,7
+41,7
@@
char *wrapper_disk_name(struct gendisk *hd, int partno, char *buf)
if (disk_name_sym) {
return disk_name_sym(hd, partno, buf);
} else {
if (disk_name_sym) {
return disk_name_sym(hd, partno, buf);
} else {
- printk(KERN_WARNING "LTTng: disk_name symbol lookup failed.\n");
+ printk
_once
(KERN_WARNING "LTTng: disk_name symbol lookup failed.\n");
return NULL;
}
}
return NULL;
}
}
@@
-65,7
+65,7
@@
struct class *wrapper_get_block_class(void)
ptr_block_class = (struct class *) kallsyms_lookup_dataptr("block_class");
if (!ptr_block_class) {
ptr_block_class = (struct class *) kallsyms_lookup_dataptr("block_class");
if (!ptr_block_class) {
- printk(KERN_WARNING "LTTng: block_class symbol lookup failed.\n");
+ printk
_once
(KERN_WARNING "LTTng: block_class symbol lookup failed.\n");
return NULL;
}
return ptr_block_class;
return NULL;
}
return ptr_block_class;
@@
-78,7
+78,7
@@
struct device_type *wrapper_get_disk_type(void)
ptr_disk_type = (struct device_type *) kallsyms_lookup_dataptr("disk_type");
if (!ptr_disk_type) {
ptr_disk_type = (struct device_type *) kallsyms_lookup_dataptr("disk_type");
if (!ptr_disk_type) {
- printk(KERN_WARNING "LTTng: disk_type symbol lookup failed.\n");
+ printk
_once
(KERN_WARNING "LTTng: disk_type symbol lookup failed.\n");
return NULL;
}
return ptr_disk_type;
return NULL;
}
return ptr_disk_type;
This page took
0.02322 seconds
and
4
git commands to generate.