mtd: let include/linux/mtd/partitions.h stand on its own

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Aug 3 09:59:01 EDT 2009


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=7699ad35ed06044c4fc1be162553880f98658616
Commit:     7699ad35ed06044c4fc1be162553880f98658616
Parent:     ed680c4ad478d0fee9740f7d029087f181346564
Author:     Nicolas Pitre <nico at cam.org>
AuthorDate: Mon Jun 15 01:10:18 2009 -0400
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Aug 3 14:00:14 2009 +0100

    mtd: let include/linux/mtd/partitions.h stand on its own
    
    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>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 include/linux/mtd/partitions.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

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 *);
 



More information about the linux-mtd-cvs mailing list