Backport kmemleak support - do nothing for older kernels
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Sat, 5 Sep 2009 19:43:59 +0000 (12:43 -0700)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Sat, 5 Sep 2009 19:43:59 +0000 (12:43 -0700)
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
compat/compat-2.6.31.h

index e4c75bc8e26c38c22244c983c09d0f2e34309b6b..95a649cda5acc3d20e89c81e58f2bc3939e50ffc 100644 (file)
 #define SDIO_DEVICE_ID_MARVELL_8688WLAN                0x9104
 #endif
 
+/*
+ * kmemleak was introduced on 2.6.31, since older kernels do not have
+ * we simply ignore its tuning.
+ */
+static inline void kmemleak_ignore(const void *ptr)
+{
+       return;
+}
+
+static inline void kmemleak_not_leak(const void *ptr)
+{
+       return;
+}
+
+static inline void kmemleak_no_scan(const void *ptr)
+{
+       return;
+}
+
 /*
  * Added via adf30907d63893e4208dfe3f5c88ae12bc2f25d5
  *