linux-2.4.0test1-ac19/fs/devfs/base.c did not compile, because
df->ops is a void* that needs to be cast into its proper type in
order for fops_get to work. I have attached a patch below, although
better approaches would be either to make fops_get an inline function
(so the parameter would be cast automatically) or figure out of df->fops
really needs to be a void*, or both.
Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."
------------------------CUT HERE------------------------------------------
--- linux-2.4.0test1-ac19/fs/devfs/base.c Wed Jun 14 20:55:02 2000
+++ linux/fs/devfs/base.c Wed Jun 14 21:34:52 2000
@@ -2640,7 +2640,7 @@
file->f_op = &def_blk_fops;
if (df->ops) inode->i_bdev->bd_op = df->ops;
}
- else file->f_op = fops_get(df->ops);
+ else file->f_op = fops_get((struct file_operations*) df->ops);
if (file->f_op)
err = file->f_op->open ? (*file->f_op->open) (inode, file) : 0;
else
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:35 EST