X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Fuprobes.h;h=5a678c5d8d0317cccd366e1abdc39b741d75546c;hb=8fe888d86ccad4226b05a536efb73d71bb091062;hp=d76a7881500f045e9deae61f9130dd3ce0c8d0be;hpb=60c64030e811165e62a62eb551459dd2416d6ec2;p=lttng-modules.git diff --git a/wrapper/uprobes.h b/wrapper/uprobes.h index d76a7881..5a678c5d 100644 --- a/wrapper/uprobes.h +++ b/wrapper/uprobes.h @@ -14,13 +14,13 @@ #ifndef _LTTNG_WRAPPER_UPROBES_H #define _LTTNG_WRAPPER_UPROBES_H -#include +#include -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,5,0)) #include /* Use kallsym lookup for version before 3.9. */ -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,9,0)) static inline int wrapper_uprobe_register(struct inode *inode, loff_t offset, struct uprobe_consumer *uc) @@ -88,9 +88,9 @@ void wrapper_uprobe_unregister(struct inode *inode, loff_t offset, struct uprobe * extern void uprobe_unregister(struct inode *inode, loff_t offset, struct uprobe_consumer *uc); */ static inline -int __canary__uprobe_unregister(struct inode *inode, loff_t offset, struct uprobe_consumer *uc) +void __canary__uprobe_unregister(struct inode *inode, loff_t offset, struct uprobe_consumer *uc) { - return uprobe_unregister(inode, offset, uc); + uprobe_unregister(inode, offset, uc); } #endif