From: Michael J. Donahue <donahue@ulexite.nist.gov>
Subject: Scsi tape st.c vs. axp
Date: Thu, 14 Aug 1997 14:44:39 -0400 [thread overview]
Message-ID: <d99a79b6c724f13d8c664218426ba6a8.axp-list@archive.invalid> (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
reply other threads:[~1997-08-14 18:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox