Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151455
b: refs/heads/master
c: d700285
h: refs/heads/master
i:
  151453: b98ddb2
  151451: 6945db0
  151447: 2d9a53e
  151439: 7752dd0
  151423: ede0faa
v: v3
  • Loading branch information
Vegard Nossum committed Jun 15, 2009
1 parent 183094c commit b1ba93d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2dff440525f8faba8836e9f05297b76f23b4af30
refs/heads/master: d7002857dee6e9a3ce1f78d23f37caba106b29c5
2 changes: 2 additions & 0 deletions trunk/arch/x86/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Documentation/DMA-API.txt for documentation.
*/

#include <linux/kmemcheck.h>
#include <linux/scatterlist.h>
#include <linux/dma-debug.h>
#include <linux/dma-attrs.h>
Expand Down Expand Up @@ -60,6 +61,7 @@ dma_map_single(struct device *hwdev, void *ptr, size_t size,
dma_addr_t addr;

BUG_ON(!valid_dma_direction(dir));
kmemcheck_mark_initialized(ptr, size);
addr = ops->map_page(hwdev, virt_to_page(ptr),
(unsigned long)ptr & ~PAGE_MASK, size,
dir, NULL);
Expand Down
16 changes: 16 additions & 0 deletions trunk/include/linux/kmemcheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit b1ba93d

Please sign in to comment.