All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scatterlist.h: Change CONFIG_DEBUG_SG for ifdef statement in sg_set_bf
@ 2014-08-03  2:56 Nicholas Krause
  2014-08-03  3:59 ` Mateusz Guzik
  2014-08-03 12:28 ` Sergei Shtylyov
  0 siblings, 2 replies; 12+ messages in thread
From: Nicholas Krause @ 2014-08-03  2:56 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-usb

This changes the ifdef statement in sg_set_bg to !CONFIG_DEBUG_SG in order
to avoid a bug with xhci dequence/enquence functions.

Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
 include/linux/scatterlist.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/scatterlist.h b/include/linux/scatterlist.h
index adae88f..62de7b3 100644
--- a/include/linux/scatterlist.h
+++ b/include/linux/scatterlist.h
@@ -111,7 +111,7 @@ static inline struct page *sg_page(struct scatterlist *sg)
 static inline void sg_set_buf(struct scatterlist *sg, const void *buf,
 			      unsigned int buflen)
 {
-#ifdef CONFIG_DEBUG_SG
+#ifdef !CONFIG_DEBUG_SG
 	BUG_ON(!virt_addr_valid(buf));
 #endif
 	sg_set_page(sg, virt_to_page(buf), buflen, offset_in_page(buf));
--
1.9.1


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

end of thread, other threads:[~2014-08-04 10:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-03  2:56 [PATCH] scatterlist.h: Change CONFIG_DEBUG_SG for ifdef statement in sg_set_bf Nicholas Krause
2014-08-03  3:59 ` Mateusz Guzik
2014-08-03  4:31   ` Nick Krause
2014-08-03  5:02     ` Mateusz Guzik
2014-08-03  5:18       ` Nick Krause
2014-08-03  5:27         ` Nick Krause
2014-08-03 11:48           ` Mateusz Guzik
2014-08-04 10:04         ` Hugo Mills
2014-08-03 12:28 ` Sergei Shtylyov
2014-08-03 12:51   ` New follower Stefano Martinallo
2014-08-03 17:30   ` [PATCH] scatterlist.h: Change CONFIG_DEBUG_SG for ifdef statement in sg_set_bf Nick Krause
2014-08-04 10:07     ` Hugo Mills

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.