+ dma-add-dma_map_attrs-interfaces-fix.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     fix up for dma-add-dma_map_attrs-interfaces and update docs
has been added to the -mm tree.  Its filename is
     dma-add-dma_map_attrs-interfaces-fix.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: fix up for dma-add-dma_map_attrs-interfaces and update docs
From: Mark Nelson <markn@xxxxxxxxxxx>

But more importantly, dma_{set,get}_attr() have to be static inline

Signed-off-by: Mark Nelson <markn@xxxxxxxxxxx>
Cc: Arthur Kepner <akepner@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 include/linux/dma-attrs.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -puN include/linux/dma-attrs.h~dma-add-dma_map_attrs-interfaces-fix include/linux/dma-attrs.h
--- a/include/linux/dma-attrs.h~dma-add-dma_map_attrs-interfaces-fix
+++ a/include/linux/dma-attrs.h
@@ -41,7 +41,7 @@ static inline void init_dma_attrs(struct
  * @attr: attribute to set
  * @attrs: struct dma_attrs (may be NULL)
  */
-void dma_set_attr(enum dma_attr attr, struct dma_attrs *attrs)
+static inline void dma_set_attr(enum dma_attr attr, struct dma_attrs *attrs)
 {
 	if (attrs == NULL)
 		return;
@@ -54,7 +54,7 @@ void dma_set_attr(enum dma_attr attr, st
  * @attr: attribute to set
  * @attrs: struct dma_attrs (may be NULL)
  */
-int dma_get_attr(enum dma_attr attr, struct dma_attrs *attrs)
+static inline int dma_get_attr(enum dma_attr attr, struct dma_attrs *attrs)
 {
 	if (attrs == NULL)
 		return 0;
_

Patches currently in -mm which might be from markn@xxxxxxxxxxx are

dma-add-dma_map_attrs-interfaces-fix.patch
dma-document-dma_map_attrs-interfaces-fix.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux