X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=wrapper%2Fwriteback.h;h=328c9323549ee8aee5ef8711dbab153513b1ad3d;hb=f8ad643442b6a5d95f059fa334fe9ab38b7ea2f5;hp=00d727cc3b0405713554275cd2997345cc7e0149;hpb=fc38d28e71eee1c93652b9e95f73bbaac5127860;p=lttng-modules.git diff --git a/wrapper/writeback.h b/wrapper/writeback.h index 00d727cc..328c9323 100644 --- a/wrapper/writeback.h +++ b/wrapper/writeback.h @@ -51,7 +51,7 @@ unsigned long __canary__global_wb_domain(void) return global_wb_domain.dirty_limit; } -#else +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0) static unsigned long *global_dirty_limit_sym; @@ -88,11 +88,13 @@ unsigned long __canary__global_dirty_limit(void) #include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0) static inline unsigned long wrapper_global_dirty_limit(void) { return global_dirty_limit; } +#endif #endif