[MTD] proper prototypes for inftl_{read,write}_oob()

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Apr 22 11:59:01 EDT 2008


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=a8e8aa25694f1781fafee4ee8e8f393e4b979b36
Commit:     a8e8aa25694f1781fafee4ee8e8f393e4b979b36
Parent:     950bcb2582ebeddb66a8e9349eaedf7ba69e195b
Author:     Adrian Bunk <bunk at kernel.org>
AuthorDate: Mon Apr 14 17:19:58 2008 +0300
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Tue Apr 22 15:54:16 2008 +0100

    [MTD] proper prototypes for inftl_{read,write}_oob()
    
    This patch adds proper prototypes for inftl_{read,write}_oob() in
    include/linux/mtd/inftl.h
    
    Signed-off-by: Adrian Bunk <bunk at kernel.org>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/inftlmount.c  |    5 -----
 include/linux/mtd/inftl.h |    5 +++++
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/mtd/inftlmount.c b/drivers/mtd/inftlmount.c
index b8917be..c551d2f 100644
--- a/drivers/mtd/inftlmount.c
+++ b/drivers/mtd/inftlmount.c
@@ -41,11 +41,6 @@
 
 char inftlmountrev[]="$Revision: 1.18 $";
 
-extern int inftl_read_oob(struct mtd_info *mtd, loff_t offs, size_t len,
-			  size_t *retlen, uint8_t *buf);
-extern int inftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len,
-			   size_t *retlen, uint8_t *buf);
-
 /*
  * find_boot_record: Find the INFTL Media Header and its Spare copy which
  *	contains the various device information of the INFTL partition and
diff --git a/include/linux/mtd/inftl.h b/include/linux/mtd/inftl.h
index 6977780..85fd041 100644
--- a/include/linux/mtd/inftl.h
+++ b/include/linux/mtd/inftl.h
@@ -57,6 +57,11 @@ extern char inftlmountrev[];
 void INFTL_dumptables(struct INFTLrecord *s);
 void INFTL_dumpVUchains(struct INFTLrecord *s);
 
+int inftl_read_oob(struct mtd_info *mtd, loff_t offs, size_t len,
+		   size_t *retlen, uint8_t *buf);
+int inftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len,
+		    size_t *retlen, uint8_t *buf);
+
 #endif /* __KERNEL__ */
 
 #endif /* __MTD_INFTL_H__ */



More information about the linux-mtd-cvs mailing list