Compile problem and fix patch for xd.[ch]

Tom Zerucha (tzeruch@ceddec.com)
Mon, 7 Apr 1997 10:53:54 -0400


I don't know if anyone uses it, but I usually compile with all possible
modules by default so I find obscure bugs.

xd_release returns something in xd.c, but is declared void in xd.h

diff -Bbur c2131/drivers/block/xd.h l2131/drivers/block/xd.h
--- c2131/drivers/block/xd.h Mon Sep 30 09:52:47 1996
+++ l2131/drivers/block/xd.h Thu Apr 3 10:08:56 1997
@@ -112,7 +112,7 @@
static int xd_open (struct inode *inode,struct file *file);
static void do_xd_request (void);
static int xd_ioctl (struct inode *inode,struct file *file,unsigned int cmd,unsigned long arg);
-static void xd_release (struct inode *inode,struct file *file);
+static int xd_release (struct inode *inode,struct file *file);
static int xd_reread_partitions (kdev_t dev);
static int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count);
static void xd_recalibrate (u_char drive);