[PATCH 5/22] Remove gcc warnings

Jörn Engel joern at wohnheim.fh-wedel.de
Tue Dec 21 08:45:11 EST 2004


Name sais enough.

Signed-off-by: Jörn Engel <joern at wohnheim.fh-wedel.de>
---

 blockmtd.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

--- linux-2.6.9cow/drivers/mtd/devices/blockmtd.c~blockmtd_prototypes	2004-12-20 18:57:18.000000000 +0100
+++ linux-2.6.9cow/drivers/mtd/devices/blockmtd.c	2004-12-20 19:00:27.000000000 +0100
@@ -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 mailing list