From: Michael Jeanson Date: Tue, 7 Jul 2020 17:00:10 +0000 (-0400) Subject: fix: global_dirty_limit was introduced in v3.1 X-Git-Tag: v2.13.0-rc1~193 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=44df1a4dd8bb1bb9ead8901954a1edf765d0345f;p=lttng-modules.git fix: global_dirty_limit was introduced in v3.1 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers Change-Id: Id97dbb2d0181a45c45cfed36c4be8753cabac283 --- diff --git a/include/wrapper/writeback.h b/include/wrapper/writeback.h index 74b5482c..0aa69486 100644 --- a/include/wrapper/writeback.h +++ b/include/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