From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199708141844.OAA04390@ulexite.nist.gov> Date: Thu, 14 Aug 1997 14:44:39 -0400 From: Michael J. Donahue Subject: Scsi tape st.c vs. axp 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