Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ce0f33adec9737bdfe59a10d03fed0c674136ffe
Commit:     ce0f33adec9737bdfe59a10d03fed0c674136ffe
Parent:     8f026f75accb8c9f1179a4b57a5019af36471046
Author:     Ben Dooks <[EMAIL PROTECTED]>
AuthorDate: Mon May 28 19:59:00 2007 +0100
Committer:  David Woodhouse <[EMAIL PROTECTED]>
CommitDate: Thu Jun 28 20:24:19 2007 +0100

    [MTD] [NOR] cfi_cmdset_0002.c: fix 'cfi_amdstd_erase_varsize' to be static
    
    Make cfi_amdstd_erase_varsize static, as declared at the top
    of the file to ensure sparse does not print a warning for an
    undeclared function, as so:
    
    drivers/mtd/chips/cfi_cmdset_0002.c:1612:5: warning: symbol 
'cfi_amdstd_erase_varsize' was not declared. Should it be static?
    
    Signed-off-by: Ben Dooks <[EMAIL PROTECTED]>
    Signed-off-by: David Woodhouse <[EMAIL PROTECTED]>
---
 drivers/mtd/chips/cfi_cmdset_0002.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/chips/cfi_cmdset_0002.c 
b/drivers/mtd/chips/cfi_cmdset_0002.c
index 1f64458..389acc6 100644
--- a/drivers/mtd/chips/cfi_cmdset_0002.c
+++ b/drivers/mtd/chips/cfi_cmdset_0002.c
@@ -1609,7 +1609,7 @@ static int __xipram do_erase_oneblock(struct map_info 
*map, struct flchip *chip,
 }
 
 
-int cfi_amdstd_erase_varsize(struct mtd_info *mtd, struct erase_info *instr)
+static int cfi_amdstd_erase_varsize(struct mtd_info *mtd, struct erase_info 
*instr)
 {
        unsigned long ofs, len;
        int ret;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to