1.3.96 pas16scsi compile failure

David Monro (davidm@cs.su.oz.au)
Sun, 28 Apr 1996 10:38:56 +1000 (EST)


Patch 1.3.96 changed the prototype for NCR5380_reset in NCR5380.h to add an
unsigned int as a second argument. Unfortunately this disagrees with both
NCR5380.c and pas16.h. I assume there is a reason for it being added, and
adding it as a dummy argument in the other places seems to work.

David

--- NCR5380.c.orig Sun Apr 28 10:17:39 1996
+++ NCR5380.c Sun Apr 28 10:15:05 1996
@@ -3235,7 +3235,7 @@
#ifndef NCR5380_reset
static
#endif
-int NCR5380_reset (Scsi_Cmnd *cmd) {
+int NCR5380_reset (Scsi_Cmnd *cmd, unsigned int dummy) {
NCR5380_local_declare();
NCR5380_setup(cmd->host);

--- pas16.h.orig Sun Apr 28 10:18:32 1996
+++ pas16.h Sun Apr 28 10:13:29 1996
@@ -118,7 +118,7 @@
int pas16_biosparam(Disk *, kdev_t, int*);
int pas16_detect(Scsi_Host_Template *);
int pas16_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
-int pas16_reset(Scsi_Cmnd *);
+int pas16_reset(Scsi_Cmnd *, unsigned int);
int pas16_proc_info (char *buffer ,char **start, off_t offset,
int length, int hostno, int inout);