From: Rolf Eike Beer <eike-kernel@sf-tec.de>
To: linux-kernel@vger.kernel.org
Cc: Dan Williams <dan.j.williams@intel.com>, trivial@kernel.org
Subject: [PATCH] Add forward declaration of struct device
Date: Mon, 20 Dec 2010 17:23:29 +0100 [thread overview]
Message-ID: <201012201723.30133.eike-kernel@sf-tec.de> (raw)
This fixes this warning when including linux/dmapool.h first:
warning: ‘struct device’ declared inside parameter list
warning: its scope is only this definition or declaration, which is probably not what you want
Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
---
include/linux/dmapool.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/linux/dmapool.h b/include/linux/dmapool.h
index 022e34f..52456aa 100644
--- a/include/linux/dmapool.h
+++ b/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);
--
1.6.4.2
next reply other threads:[~2010-12-20 16:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-20 16:23 Rolf Eike Beer [this message]
2011-01-19 14:56 ` [PATCH] Add forward declaration of struct device Jiri Kosina
2011-01-19 16:01 ` Rolf Eike Beer
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=201012201723.30133.eike-kernel@sf-tec.de \
--to=eike-kernel@sf-tec.de \
--cc=dan.j.williams@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=trivial@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