lkml.org 
[lkml]   [2001]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: ia64 gcc compile prob
Todd (todd@unm.edu) said: 
> scsi_ioctl.c: In function `scsi_ioctl_send_command':
> scsi_ioctl.c:366: Internal compiler error in rws_access_regno, at
> config/ia64/ia64.c:3689

It's a compiler bug; fixed in a later release (2.96-9x, 3.0).
Attached is a hack workaround patch.

Bill
--- linux/drivers/scsi/scsi_ioctl.c.foo Tue May 29 12:59:24 2001
+++ linux/drivers/scsi/scsi_ioctl.c Tue May 29 12:58:01 2001
@@ -200,6 +200,7 @@
unsigned int needed, buf_needed;
int timeout, retries, result;
int data_direction;
+ int foo;

if (!sic)
return -EINVAL;
@@ -209,10 +210,12 @@
if (verify_area(VERIFY_READ, sic, sizeof(Scsi_Ioctl_Command)))
return -EFAULT;

- if(__get_user(inlen, &sic->inlen))
+ foo = __get_user(inlen, &sic->inlen);
+ if (foo)
return -EFAULT;

- if(__get_user(outlen, &sic->outlen))
+ foo = __get_user(outlen, &sic->outlen);
+ if (foo)
return -EFAULT;

/*
\
 
 \ /
  Last update: 2005-03-22 13:08    [W:0.772 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site