[2.1.89-pre5] patch to get rid of floppy.c warnings.

Niels Kristian Bech Jensen (nkbj@image.dk)
Mon, 2 Mar 1998 08:54:52 +0100 (CET)


Hi,
This patch gets rid of the warnings you get when compiling floppy.c

--- linux-2.1.89-pre5/drivers/block/floppy.c Mon Mar 2 07:21:22 1998
+++ linux/drivers/block/floppy.c Mon Mar 2 08:29:21 1998
@@ -2472,7 +2472,8 @@
* does not work with MT, hence we can only transfer one head at
* a time
*/
-static int virtualdmabug_workaround() {
+static void virtualdmabug_workaround(void)
+{
int hard_sectors, end_sector;
if(CT(COMMAND) == FD_WRITE) {
COMMAND &= ~0x80; /* switch off multiple track mode */
@@ -2483,7 +2484,7 @@
if(end_sector > SECT_PER_TRACK) {
printk("too many sectors %d > %d\n",
end_sector, SECT_PER_TRACK);
- return 0;
+ return;
}
#endif
SECT_PER_TRACK = end_sector; /* make sure SECT_PER_TRACK points

--
Med venlig hilsen / Best regards
                                                              nkbj@image.dk
Niels Kristian Bech Jensen                       http://www.image.dk/~nkbj/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu