Hello!

I'm just trying to compile a kernel for my sparc and found a bug in the
above file:

In line 170:
        dev->de = devfs_register (devfs_handle, devname, DEVFS_FL_DEFAULT,
                                  VFC_MAJOR, instance,
                                  S_IFCHR | S_IRUSR | S_IWUSR,
                                  &vfc_fops, NULL);

the call needs
        static struct file_operations vfc_fops;
which is not defined until line 642. A forward declaration at the
beginning fixes the problem:

--- linux/drivers/sbus/char/vfc_dev.c.orig      Mon Sep  4 20:36:04 2000
+++ linux/drivers/sbus/char/vfc_dev.c   Mon Sep  4 20:31:28 2000
@@ -42,6 +42,7 @@
 #include "vfc.h"
 #include <asm/vfc_ioctls.h>
 
+static struct file_operations vfc_fops;
 static devfs_handle_t devfs_handle = NULL;  /*  For the directory  */
 struct vfc_dev **vfc_dev_lst;
 static char vfcstr[]="vfc";

The mentioned author can't be reached anymore so I'm sending this directly
to this list.

Philipp
-- 
  / /  (_)__  __ ____  __ Philipp Hahn
 / /__/ / _ \/ // /\ \/ /
/____/_/_//_/\_,_/ /_/\_\ [EMAIL PROTECTED]




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to