* [PATCH / RESENT #3] mtd: let include/linux/mtd/partitions.h stand on its own
@ 2009-07-10 18:51 Nicolas Pitre
2009-07-10 19:03 ` Mike Frysinger
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Nicolas Pitre @ 2009-07-10 18:51 UTC (permalink / raw)
To: linux-mtd
When declaring static MTD partitions in board specific code, only
including include/linux/mtd/partitions.h should suffice without
gcc nagging us with:
In file included from arch/arm/mach-kirkwood/sheevaplug-setup.c:14:
include/linux/mtd/partitions.h:50: warning: 'struct mtd_info' declared inside parameter list
include/linux/mtd/partitions.h:50: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/mtd/partitions.h:51: warning: 'struct mtd_info' declared inside parameter list
include/linux/mtd/partitions.h:61: warning: 'struct mtd_info' declared inside parameter list
include/linux/mtd/partitions.h:67: warning: 'struct mtd_info' declared inside parameter list
Signed-off-by: Nicolas Pitre <nico@marvell.com>
---
Hello? Anybody home?
diff --git a/include/linux/mtd/partitions.h b/include/linux/mtd/partitions.h
index af6dcb9..b70313d 100644
--- a/include/linux/mtd/partitions.h
+++ b/include/linux/mtd/partitions.h
@@ -47,6 +47,8 @@ struct mtd_partition {
#define MTDPART_SIZ_FULL (0)
+struct mtd_info;
+
int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *, int);
int del_mtd_partitions(struct mtd_info *);
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH / RESENT #3] mtd: let include/linux/mtd/partitions.h stand on its own
2009-07-10 18:51 [PATCH / RESENT #3] mtd: let include/linux/mtd/partitions.h stand on its own Nicolas Pitre
@ 2009-07-10 19:03 ` Mike Frysinger
2009-07-10 19:34 ` Florian Fainelli
2009-07-11 10:37 ` Artem Bityutskiy
2 siblings, 0 replies; 4+ messages in thread
From: Mike Frysinger @ 2009-07-10 19:03 UTC (permalink / raw)
To: Nicolas Pitre; +Cc: linux-mtd
On Fri, Jul 10, 2009 at 14:51, Nicolas Pitre wrote:
> When declaring static MTD partitions in board specific code, only
> including include/linux/mtd/partitions.h should suffice without
> gcc nagging us with:
>
> In file included from arch/arm/mach-kirkwood/sheevaplug-setup.c:14:
> include/linux/mtd/partitions.h:50: warning: 'struct mtd_info' declared inside parameter list
> include/linux/mtd/partitions.h:50: warning: its scope is only this definition or declaration, which is probably not what you want
> include/linux/mtd/partitions.h:51: warning: 'struct mtd_info' declared inside parameter list
> include/linux/mtd/partitions.h:61: warning: 'struct mtd_info' declared inside parameter list
> include/linux/mtd/partitions.h:67: warning: 'struct mtd_info' declared inside parameter list
>
> Signed-off-by: Nicolas Pitre <nico@marvell.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
but this probably wont help your patch get merged ... mtd patches tend
to languish :/
-mike
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH / RESENT #3] mtd: let include/linux/mtd/partitions.h stand on its own
2009-07-10 18:51 [PATCH / RESENT #3] mtd: let include/linux/mtd/partitions.h stand on its own Nicolas Pitre
2009-07-10 19:03 ` Mike Frysinger
@ 2009-07-10 19:34 ` Florian Fainelli
2009-07-11 10:37 ` Artem Bityutskiy
2 siblings, 0 replies; 4+ messages in thread
From: Florian Fainelli @ 2009-07-10 19:34 UTC (permalink / raw)
To: linux-mtd; +Cc: Nicolas Pitre, Martin Michlmayr
Hi Nicolas,
Le Friday 10 July 2009 20:51:33 Nicolas Pitre, vous avez écrit :
> When declaring static MTD partitions in board specific code, only
> including include/linux/mtd/partitions.h should suffice without
> gcc nagging us with:
>
> In file included from arch/arm/mach-kirkwood/sheevaplug-setup.c:14:
> include/linux/mtd/partitions.h:50: warning: 'struct mtd_info' declared
> inside parameter list include/linux/mtd/partitions.h:50: warning: its scope
> is only this definition or declaration, which is probably not what you want
> include/linux/mtd/partitions.h:51: warning: 'struct mtd_info' declared
> inside parameter list include/linux/mtd/partitions.h:61: warning: 'struct
> mtd_info' declared inside parameter list include/linux/mtd/partitions.h:67:
> warning: 'struct mtd_info' declared inside parameter list
>
> Signed-off-by: Nicolas Pitre <nico@marvell.com>
Thanks for doing this, Martin and I had the same problem on Cobalt Microservers (MIPS).
> ---
>
> Hello? Anybody home?
>
> diff --git a/include/linux/mtd/partitions.h
> b/include/linux/mtd/partitions.h index af6dcb9..b70313d 100644
> --- a/include/linux/mtd/partitions.h
> +++ b/include/linux/mtd/partitions.h
> @@ -47,6 +47,8 @@ struct mtd_partition {
> #define MTDPART_SIZ_FULL (0)
>
>
> +struct mtd_info;
> +
> int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *,
> int); int del_mtd_partitions(struct mtd_info *);
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
--
Best regards, Florian Fainelli
Email : florian@openwrt.org
http://openwrt.org
-------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH / RESENT #3] mtd: let include/linux/mtd/partitions.h stand on its own
2009-07-10 18:51 [PATCH / RESENT #3] mtd: let include/linux/mtd/partitions.h stand on its own Nicolas Pitre
2009-07-10 19:03 ` Mike Frysinger
2009-07-10 19:34 ` Florian Fainelli
@ 2009-07-11 10:37 ` Artem Bityutskiy
2 siblings, 0 replies; 4+ messages in thread
From: Artem Bityutskiy @ 2009-07-11 10:37 UTC (permalink / raw)
To: Nicolas Pitre; +Cc: linux-mtd
On Fri, 2009-07-10 at 14:51 -0400, Nicolas Pitre wrote:
> When declaring static MTD partitions in board specific code, only
> including include/linux/mtd/partitions.h should suffice without
> gcc nagging us with:
>
> In file included from arch/arm/mach-kirkwood/sheevaplug-setup.c:14:
> include/linux/mtd/partitions.h:50: warning: 'struct mtd_info' declared inside parameter list
> include/linux/mtd/partitions.h:50: warning: its scope is only this definition or declaration, which is probably not what you want
> include/linux/mtd/partitions.h:51: warning: 'struct mtd_info' declared inside parameter list
> include/linux/mtd/partitions.h:61: warning: 'struct mtd_info' declared inside parameter list
> include/linux/mtd/partitions.h:67: warning: 'struct mtd_info' declared inside parameter list
>
> Signed-off-by: Nicolas Pitre <nico@marvell.com>
I've put your patch to l2-mtd-2.6.git some time ago:
http://git.infradead.org/users/dedekind/l2-mtd-2.6.git?a=commit;h=6d2bca50119cb620f61809ddfcf2d7d416264400
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-07-11 10:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-10 18:51 [PATCH / RESENT #3] mtd: let include/linux/mtd/partitions.h stand on its own Nicolas Pitre
2009-07-10 19:03 ` Mike Frysinger
2009-07-10 19:34 ` Florian Fainelli
2009-07-11 10:37 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox