mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kmemcheck: correctly remove kmemcheck call from dma_map_sg_attrs
@ 2017-10-12 19:22 Levin, Alexander (Sasha Levin)
  2017-10-13  7:11 ` Michal Hocko
  0 siblings, 1 reply; 3+ messages in thread
From: Levin, Alexander (Sasha Levin) @ 2017-10-12 19:22 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, mhocko, Levin, Alexander (Sasha Levin)

We have missed removing some code as part of removing the kmemcheck
hooks.

Unfourtenatly this got missed during my review, and the code was
still building.

Reported-by: Michal Hocko <mhocko@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
---
 include/linux/dma-mapping.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h
index 83f3ab31efc4..2911389bc147 100644
--- a/include/linux/dma-mapping.h
+++ b/include/linux/dma-mapping.h
@@ -260,10 +260,8 @@ static inline int dma_map_sg_attrs(struct device *dev, struct scatterlist *sg,
 				   unsigned long attrs)
 {
 	const struct dma_map_ops *ops = get_dma_ops(dev);
-	int i, ents;
-	struct scatterlist *s;
+	int ents;
 
-	for_each_sg(sg, s, nents, i)
 	BUG_ON(!valid_dma_direction(dir));
 	ents = ops->map_sg(dev, sg, nents, dir, attrs);
 	BUG_ON(ents < 0);
-- 
2.11.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-10-13 14:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-12 19:22 [PATCH] kmemcheck: correctly remove kmemcheck call from dma_map_sg_attrs Levin, Alexander (Sasha Levin)
2017-10-13  7:11 ` Michal Hocko
2017-10-13 14:05   ` Levin, Alexander (Sasha Levin)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®