diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-04-12 13:54:42 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-15 11:32:47 +0200 |
commit | 4928db002aba9317a61f478ac6aba455c7662241 (patch) | |
tree | 3a171d91d9a586691b6a327b2bcc9b586db996fa /backport/backport-include/linux/kmemleak.h | |
parent | 78b1e9068b4013903c69f1cb3432c08dbd72459e (diff) |
backports: dissolve compat-2.6.31.h
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'backport/backport-include/linux/kmemleak.h')
-rw-r--r-- | backport/backport-include/linux/kmemleak.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/backport/backport-include/linux/kmemleak.h b/backport/backport-include/linux/kmemleak.h index 83bd199c..99fff663 100644 --- a/backport/backport-include/linux/kmemleak.h +++ b/backport/backport-include/linux/kmemleak.h @@ -2,4 +2,23 @@ #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)) #include_next <linux/kmemleak.h> -#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)) */ +#else +/* + * 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; +} +#endif |