mtd/drivers/mtd/devices block2mtd.c,1.4,1.5
joern at infradead.org
joern at infradead.org
Wed Dec 22 08:06:42 EST 2004
Update of /home/cvs/mtd/drivers/mtd/devices
In directory phoenix.infradead.org:/home/joern/mtd/drivers/mtd/devices
Modified Files:
block2mtd.c
Log Message:
Stop gcc warnings.
Index: block2mtd.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/devices/block2mtd.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- block2mtd.c 22 Dec 2004 13:05:57 -0000 1.4
+++ block2mtd.c 22 Dec 2004 13:06:39 -0000 1.5
@@ -150,7 +150,7 @@
int offset = to & ~PAGE_MASK; // page offset
//
- static int my_read()
+ static int my_read(void)
{
err=0;
page = page_readahead(mapping,index);
@@ -163,7 +163,7 @@
return err;
}
//
- static int my_erase()
+ static int my_erase(void)
{
int pages = len >> PAGE_SHIFT;
unsigned char *p;
@@ -198,7 +198,7 @@
return 0;
}
- static int my_write()
+ static int my_write(void)
{
int cpylen;
@@ -240,6 +240,7 @@
return err;
}
+
/* erase a specified part of the device */
static int blkmtd_erase(struct mtd_info *mtd, struct erase_info *instr)
{
More information about the linux-mtd-cvs
mailing list