浏览代码

[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@kernel.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Adrian Bunk 17 年之前
父节点
当前提交
a8e8aa2569
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 0 5
      drivers/mtd/inftlmount.c
  2. 5 0
      include/linux/mtd/inftl.h

+ 0 - 5
drivers/mtd/inftlmount.c

@@ -41,11 +41,6 @@
 
 
 char inftlmountrev[]="$Revision: 1.18 $";
 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
  * find_boot_record: Find the INFTL Media Header and its Spare copy which
  *	contains the various device information of the INFTL partition and
  *	contains the various device information of the INFTL partition and

+ 5 - 0
include/linux/mtd/inftl.h

@@ -57,6 +57,11 @@ extern char inftlmountrev[];
 void INFTL_dumptables(struct INFTLrecord *s);
 void INFTL_dumptables(struct INFTLrecord *s);
 void INFTL_dumpVUchains(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 /* __KERNEL__ */
 
 
 #endif /* __MTD_INFTL_H__ */
 #endif /* __MTD_INFTL_H__ */