[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LNX.2.00.1101191556190.26685@pobox.suse.cz>
Date: Wed, 19 Jan 2011 15:56:47 +0100 (CET)
From: Jiri Kosina <jkosina@...e.cz>
To: Rolf Eike Beer <eike-kernel@...tec.de>
Cc: linux-kernel@...r.kernel.org,
Dan Williams <dan.j.williams@...el.com>
Subject: Re: [PATCH] Add forward declaration of struct device
On Mon, 20 Dec 2010, Rolf Eike Beer wrote:
> 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
In what situation do you see this warning? (the one you have posted
doesn't show the filename that is being compiled).
>
> Signed-off-by: Rolf Eike Beer <eike-kernel@...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);
>
--
Jiri Kosina
SUSE Labs, Novell Inc.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists