[PATCH / RESENT #3] mtd: let include/linux/mtd/partitions.h stand on its own

Artem Bityutskiy dedekind at infradead.org
Sat Jul 11 06:37:09 EDT 2009


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 at 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 (Битюцкий Артём)




More information about the linux-mtd mailing list