lkml.org 
[lkml]   [2000]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] linux-2.4.0-test7/driver/sbus/char/vfc_dev.c
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
/ /__/ / _ \/ // /\ \/ /
/____/_/_//_/\_,_/ /_/\_\ pmhahn@titan.lahn.de



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

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.457 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site