X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=wrapper%2Fkref.h;h=84f340ca62af3ab270021bca4613dc0ad3f336c2;hb=360d3efee55154a55c18be32175bee608dcb21df;hp=3f3be7a42d27c0445d7273fc771b5d55dd120248;hpb=c8d38a68e21703af9b2287120cab1a52d24db9f7;p=lttng-modules.git diff --git a/wrapper/kref.h b/wrapper/kref.h index 3f3be7a4..84f340ca 100644 --- a/wrapper/kref.h +++ b/wrapper/kref.h @@ -28,24 +28,24 @@ #include #include -#include +#include /* * lttng_kref_get: get reference count, checking for overflow. * * Return 1 if reference is taken, 0 otherwise (overflow). */ -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,11,0)) static inline int lttng_kref_get(struct kref *kref) { kref_get(kref); return 1; } -#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0)) */ +#else /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,11,0)) */ static inline int lttng_kref_get(struct kref *kref) { return atomic_add_unless(&kref->refcount, 1, INT_MAX); } -#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0)) */ +#endif /* #else #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,11,0)) */ #endif /* _LTTNG_WRAPPER_KREF_H */