lkml.org 
[lkml]   [2001]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[BUG][PATCH] linux-2.4.5-pre5/drivers/isdn/avmb1/capifs.c
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/

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