All of lore.kernel.org
 help / color / mirror / Atom feed
From: tom.leiming@gmail.com
To: joerg.roedel@amd.com, fujita.tomonori@lab.ntt.co.jp
Cc: arnd@arndb.de, linux-kernel@vger.kernel.org,
	akpm@linux-foundation.org, Ming Lei <tom.leiming@gmail.com>
Subject: [PATCH 1/3] dma-mapping:remove CONFIG_HAVE_DMA_ATTRS
Date: Sat,  4 Jul 2009 10:34:53 +0800	[thread overview]
Message-ID: <1246674895-9610-2-git-send-email-tom.leiming@gmail.com> (raw)
In-Reply-To: <1246674895-9610-1-git-send-email-tom.leiming@gmail.com>

From: Ming Lei <tom.leiming@gmail.com>


Signed-off-by: Ming Lei <tom.leiming@gmail.com>
---
 include/linux/dma-attrs.h   |   10 ----------
 include/linux/dma-mapping.h |   17 -----------------
 2 files changed, 0 insertions(+), 27 deletions(-)

diff --git a/include/linux/dma-attrs.h b/include/linux/dma-attrs.h
index 71ad34e..fce45cd 100644
--- a/include/linux/dma-attrs.h
+++ b/include/linux/dma-attrs.h
@@ -36,7 +36,6 @@ static inline void init_dma_attrs(struct dma_attrs *attrs)
 	bitmap_zero(attrs->flags, __DMA_ATTRS_LONGS);
 }
 
-#ifdef CONFIG_HAVE_DMA_ATTRS
 /**
  * dma_set_attr - set a specific attribute
  * @attr: attribute to set
@@ -62,14 +61,5 @@ static inline int dma_get_attr(enum dma_attr attr, struct dma_attrs *attrs)
 	BUG_ON(attr >= DMA_ATTR_MAX);
 	return test_bit(attr, attrs->flags);
 }
-#else /* !CONFIG_HAVE_DMA_ATTRS */
-static inline void dma_set_attr(enum dma_attr attr, struct dma_attrs *attrs)
-{
-}
 
-static inline int dma_get_attr(enum dma_attr attr, struct dma_attrs *attrs)
-{
-	return 0;
-}
-#endif /* CONFIG_HAVE_DMA_ATTRS */
 #endif /* _DMA_ATTR_H */
diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h
index 07dfd46..b83acee 100644
--- a/include/linux/dma-mapping.h
+++ b/include/linux/dma-mapping.h
@@ -219,21 +219,4 @@ static inline void dmam_release_declared_memory(struct device *dev)
 }
 #endif /* ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY */
 
-#ifndef CONFIG_HAVE_DMA_ATTRS
-struct dma_attrs;
-
-#define dma_map_single_attrs(dev, cpu_addr, size, dir, attrs) \
-	dma_map_single(dev, cpu_addr, size, dir)
-
-#define dma_unmap_single_attrs(dev, dma_addr, size, dir, attrs) \
-	dma_unmap_single(dev, dma_addr, size, dir)
-
-#define dma_map_sg_attrs(dev, sgl, nents, dir, attrs) \
-	dma_map_sg(dev, sgl, nents, dir)
-
-#define dma_unmap_sg_attrs(dev, sgl, nents, dir, attrs) \
-	dma_unmap_sg(dev, sgl, nents, dir)
-
-#endif /* CONFIG_HAVE_DMA_ATTRS */
-
 #endif
-- 
1.6.0.GIT


  reply	other threads:[~2009-07-04  2:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-04  2:34 [PATCH 0/3] dma-mapping:remove CONFIG_HAVE_DMA_ATTRS tom.leiming
2009-07-04  2:34 ` tom.leiming [this message]
2009-07-04  2:34   ` [PATCH 2/3] dma-mapping:X86:remove CONFIG_HAVE_DMA_ATTRS tom.leiming
2009-07-04  2:34     ` [PATCH 3/3] dma-mapping:IA64:remove CONFIG_HAVE_DMA_ATTRS tom.leiming
2009-07-05 11:19 ` [PATCH 0/3] dma-mapping:remove CONFIG_HAVE_DMA_ATTRS Arnd Bergmann
2009-07-05 12:44   ` Ming Lei
2009-07-05 13:37     ` Ming Lei
2009-07-05 19:17     ` Arnd Bergmann
2009-07-06  2:28     ` FUJITA Tomonori

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=1246674895-9610-2-git-send-email-tom.leiming@gmail.com \
    --to=tom.leiming@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=arnd@arndb.de \
    --cc=fujita.tomonori@lab.ntt.co.jp \
    --cc=joerg.roedel@amd.com \
    --cc=linux-kernel@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 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.