diff options
author | Vegard Nossum <vegard.nossum@gmail.com> | 2008-07-20 10:44:54 +0200 |
---|---|---|
committer | Vegard Nossum <vegard.nossum@gmail.com> | 2009-06-15 12:40:05 +0200 |
commit | d7002857dee6e9a3ce1f78d23f37caba106b29c5 (patch) | |
tree | 64453eb81be8409937a6daf207442cf5021e3b5e /include/linux/kmemcheck.h | |
parent | 2dff440525f8faba8836e9f05297b76f23b4af30 (diff) | |
download | linux-stable-d7002857dee6e9a3ce1f78d23f37caba106b29c5.tar.gz linux-stable-d7002857dee6e9a3ce1f78d23f37caba106b29c5.tar.bz2 linux-stable-d7002857dee6e9a3ce1f78d23f37caba106b29c5.zip |
kmemcheck: add DMA hooks
This patch hooks into the DMA API to prevent the reporting of the
false positives that would otherwise be reported when memory is
accessed that is also used directly by devices.
[rebased for mainline inclusion]
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
Diffstat (limited to 'include/linux/kmemcheck.h')
-rw-r--r-- | include/linux/kmemcheck.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/kmemcheck.h b/include/linux/kmemcheck.h index 5b65f4ebeadf..71f21ae33d1d 100644 --- a/include/linux/kmemcheck.h +++ b/include/linux/kmemcheck.h @@ -59,6 +59,22 @@ static inline bool kmemcheck_page_is_tracked(struct page *p) { return false; } + +static inline void kmemcheck_mark_unallocated(void *address, unsigned int n) +{ +} + +static inline void kmemcheck_mark_uninitialized(void *address, unsigned int n) +{ +} + +static inline void kmemcheck_mark_initialized(void *address, unsigned int n) +{ +} + +static inline void kmemcheck_mark_freed(void *address, unsigned int n) +{ +} #endif /* CONFIG_KMEMCHECK */ #endif /* LINUX_KMEMCHECK_H */ |