[BUG][PATCH] linux-2.4.5-pre5/drivers/isdn/avmb1/capifs.c

Philipp Matthias Hahn (pmhahn@titan.lahn.de)
Thu, 24 May 2001 08:46:29 +0200 (CEST)


Hello lkml!

capifs.c is broken in 2.4.5-pre5:
- A forward declaration of capifs_new_inode() is needed
- The semicolon at the end of line musrt be deleted
- struct inode * was not declared

--- linux-2.4.5/drivers/isdn/avmb1/capifs.c.orig Thu May 24 08:42:43 2001
+++ linux-2.4.5/drivers/isdn/avmb1/capifs.c Thu May 24 08:43:15 2001
@@ -142,6 +142,7 @@
static int capifs_root_readdir(struct file *,void *,filldir_t);
static struct dentry *capifs_root_lookup(struct inode *,struct dentry *);
static int capifs_revalidate(struct dentry *, int);
+static struct inode *capifs_new_inode(struct super_block *sb);

static struct file_operations capifs_root_operations = {
read: generic_read_dir,
@@ -491,9 +492,9 @@
}
#endif

-static struct inode *capifs_new_inode(struct super_block *sb);
+static struct inode *capifs_new_inode(struct super_block *sb)
{
- inode = new_inode(sb);
+ struct inode *inode = new_inode(sb);
if (inode) {
inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME;
inode->i_blocks = 0;

BYtE
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 More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/