linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Shuah Khan <shuah.khan@hp.com>
To: davem@davemloft.net, kyungmin.park@samsung.com,
	m.szyprowski@samsung.com, sam@ravnborg.org, arnd@arndb.de
Cc: sparclinux@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
	shuahkhan@gmail.com
Subject: [PATCH RFT] sparc: dma-mapping: support debug_dma_mapping_error
Date: Thu, 25 Oct 2012 18:36:13 -0600	[thread overview]
Message-ID: <1351211773.6851.24.camel@lorien2> (raw)

>From 9e8feb61482288c5a5dd609e0dd17c1a262a48a3 Mon Sep 17 00:00:00 2001
From: Shuah Khan <shuahkhan@gmail.com>
Date: Thu, 25 Oct 2012 18:31:42 -0600
Subject: [PATCH RFT] sparc: dma-mapping: support debug_dma_mapping_error

Add support for debug_dma_mapping_error() call to avoid warning from
debug_dma_unmap() interface when it checks for mapping error checked
status. Without this patch, device driver failed to check map error
warning is generated.

Signed-off-by: Shuah Khan <shuah.khan@hp.com>
---
 arch/sparc/include/asm/dma-mapping.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/sparc/include/asm/dma-mapping.h b/arch/sparc/include/asm/dma-mapping.h
index 8493fd3..05fe53f 100644
--- a/arch/sparc/include/asm/dma-mapping.h
+++ b/arch/sparc/include/asm/dma-mapping.h
@@ -59,6 +59,7 @@ static inline void dma_free_attrs(struct device *dev, size_t size,
 
 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr)
 {
+	debug_dma_mapping_error(dev, dma_addr);
 	return (dma_addr == DMA_ERROR_CODE);
 }
 
-- 
1.7.9.5




             reply	other threads:[~2012-10-26  0:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-26  0:36 Shuah Khan [this message]
2012-10-26  0:38 ` [PATCH RFT RESEND] sparc: dma-mapping: support debug_dma_mapping_error Shuah Khan
2012-10-26 16:13   ` [PATCH RFT RESEND linux-next] " Shuah Khan
2012-10-26 19:01     ` David Miller
2012-10-26 19:10       ` David Miller
2012-10-26 21:40         ` Shuah Khan
2012-11-10  0:38     ` David Miller
2012-11-10  0:52       ` Shuah Khan
2012-11-10  0:54         ` David Miller
2012-11-10  1:21           ` Shuah Khan
2012-11-15 17:39           ` Shuah Khan
2012-11-17 12:22 ` [PATCH RFT] " Joerg Roedel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1351211773.6851.24.camel@lorien2 \
    --to=shuah.khan@hp.com \
    --cc=arnd@arndb.de \
    --cc=davem@davemloft.net \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=sam@ravnborg.org \
    --cc=shuahkhan@gmail.com \
    --cc=sparclinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).