lkml.org 
[lkml]   [2004]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH-2.4.26] smbfs cleanup
Hi Marcelo,

Compiling smbfs without CONFIG_SMB_UNIX ouputs a few warnings.
Here's the fix. Please apply.
Willy


--- ./fs/smbfs/proc.c.orig Sun Mar 28 14:02:27 2004
+++ ./fs/smbfs/proc.c Sun Mar 28 14:06:59 2004
@@ -49,7 +49,9 @@
static struct smb_ops smb_ops_os2;
static struct smb_ops smb_ops_win95;
static struct smb_ops smb_ops_winNT;
+#ifdef CONFIG_SMB_UNIX
static struct smb_ops smb_ops_unix;
+#endif

static void
smb_init_dirent(struct smb_sb_info *server, struct smb_fattr *fattr);
@@ -2636,6 +2638,7 @@
return result;
}

+#ifdef CONFIG_SMB_UNIX
/*
* Note: called with the server locked.
*/
@@ -2680,6 +2683,7 @@
out:
return result;
}
+#endif

static int
smb_proc_getattr_null(struct smb_sb_info *server, struct dentry *dir,
@@ -3332,6 +3336,7 @@
.truncate = smb_proc_trunc64,
};

+#ifdef CONFIG_SMB_UNIX
/* Samba w/ unix extensions. Others? */
static struct smb_ops smb_ops_unix =
{
@@ -3341,6 +3346,7 @@
.getattr = smb_proc_getattr_unix,
.truncate = smb_proc_trunc64,
};
+#endif

/* Place holder until real ops are in place */
static struct smb_ops smb_ops_null =
-
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 14:02    [from the cache]
©2003-2011 Jasper Spaans