Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Scsi tape st.c vs. axp
@ 1997-08-14 18:44 Michael J. Donahue
  0 siblings, 0 replies; only message in thread
From: Michael J. Donahue @ 1997-08-14 18:44 UTC (permalink / raw)


Sorry if this is a FAQ, but while building a 2.0.30 kernel with scsi
tape support, I noticed the following.  The axp-diffs-2.0.30 patch
file has

--- linux/include/linux/fs.h    Wed Apr 16 11:03:26 1997
+++ linux.axp/include/linux/fs.h        Sun Oct 14 13:00:44 2040
@@ -454,9 +454,9 @@
 typedef int (*filldir_t)(void *, const char *, int, off_t, ino_t);
        
  struct file_operations {
 -  int (*lseek) (struct inode *, struct file *, off_t, int);
 -  int (*read) (struct inode *, struct file *, char *, int);
 -  int (*write) (struct inode *, struct file *, const char *, int);
 +  long (*lseek) (struct inode *, struct file *, off_t, int);
 +  long (*read) (struct inode *, struct file *, char *, unsigned long);
 +  long (*write) (struct inode *, struct file *, const char *, unsigned long);

However, the patch file doesn't touch the scsi tape driver file st.c,
which uses

 int st_read(struct inode *inode, struct file *filp, char *buf,int count)
 int st_write(struct inode *inode,struct file *filp,const char *buf,int count)

I don't know enough about how parameters and return values are handled
to know if this int<->long mismatch is an actual problem or not, but I
thought I'd point it out.

-mike

-- 
Michael J. Donahue
National Institute of Standards and Technology
Mathematical & Computational Sciences Division
Bldg 820, Rm 365
Gaithersburg, MD 20899
email: michael.donahue@nist.gov
voice: (301) 975-5424
  fax: (301) 990-4127
  web: http://math.nist.gov/mcsd/Staff/MDonahue/

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-08-14 18:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-08-14 18:44 Scsi tape st.c vs. axp Michael J. Donahue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox