+ dmapool-declare-struct-device.patch added to -mm tree

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

 



The patch titled
     Subject: include/linux/dmapool.h: declare struct device
has been added to the -mm tree.  Its filename is
     dmapool-declare-struct-device.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/dmapool-declare-struct-device.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/dmapool-declare-struct-device.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 ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Mark Brown <broonie@xxxxxxxxxx>
Subject: include/linux/dmapool.h: declare struct device

dmapool uses struct device in function arguments but relies on an implicit
inclusion to declare struct device causing warnings in some
configurations:

include/linux/dmapool.h:31:7: warning: 'struct device' declared inside parameter list

Fix this by adding a struct device declaration to the file.

Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 include/linux/dmapool.h |    2 ++
 1 file changed, 2 insertions(+)

diff -puN include/linux/dmapool.h~dmapool-declare-struct-device include/linux/dmapool.h
--- a/include/linux/dmapool.h~dmapool-declare-struct-device
+++ a/include/linux/dmapool.h
@@ -14,6 +14,8 @@
 #include <asm/io.h>
 #include <asm/scatterlist.h>
 
+struct device;
+
 struct dma_pool *dma_pool_create(const char *name, struct device *dev, 
 			size_t size, size_t align, size_t allocation);
 
_

Patches currently in -mm which might be from broonie@xxxxxxxxxx are

dmapool-declare-struct-device.patch
asoc-pcm512x-use-div_round_closest_ull-from-kernelh.patch
linux-next.patch
documentation-spi-spidev_testc-fix-warning.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