All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix cifs breakage when CONFIG_CIFS_EXPERIMENTAL=n
@ 2006-04-24 20:25 Jean Delvare
  2006-04-24 20:52 ` Dave Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Jean Delvare @ 2006-04-24 20:25 UTC (permalink / raw)
  To: Steve French; +Cc: LKML

Hi Steve,

Cifs is currently broken when CONFIG_CIFS_EXPERIMENTAL=n:

fs/cifs/connect.c: In function `cifs_setup_session':
fs/cifs/connect.c:3451: warning: implicit declaration of function `CIFS_SessSetup'
(...)
WARNING: "CIFS_SessSetup" [fs/cifs/cifs.ko] undefined!

The following patch attempts to fix that. Untested beyond compilation.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
---
 fs/cifs/cifsproto.h |    2 --
 fs/cifs/cifssmb.c   |    2 --
 fs/cifs/ntlmssp.c   |    2 --
 3 files changed, 6 deletions(-)

--- linux-2.6.17-rc2.orig/fs/cifs/cifsproto.h	2006-04-24 21:56:45.000000000 +0200
+++ linux-2.6.17-rc2/fs/cifs/cifsproto.h	2006-04-24 22:05:43.000000000 +0200
@@ -64,14 +64,12 @@
 extern void header_assemble(struct smb_hdr *, char /* command */ ,
 			    const struct cifsTconInfo *, int /* length of
 			    fixed section (word count) in two byte units */);
-#ifdef CONFIG_CIFS_EXPERIMENTAL
 extern int small_smb_init_no_tc(const int smb_cmd, const int wct,
 				struct cifsSesInfo *ses,
 				void ** request_buf);
 extern int CIFS_SessSetup(unsigned int xid, struct cifsSesInfo *ses,
 			     const int stage, int * pNTLMv2_flg,
 			     const struct nls_table *nls_cp);
-#endif
 extern __u16 GetNextMid(struct TCP_Server_Info *server);
 extern struct oplock_q_entry * AllocOplockQEntry(struct inode *, u16, 
 						 struct cifsTconInfo *);
--- linux-2.6.17-rc2.orig/fs/cifs/ntlmssp.c	2006-04-24 21:56:45.000000000 +0200
+++ linux-2.6.17-rc2/fs/cifs/ntlmssp.c	2006-04-24 22:09:34.000000000 +0200
@@ -27,7 +27,6 @@
 #include "ntlmssp.h"
 #include "nterr.h"
 
-#ifdef CONFIG_CIFS_EXPERIMENTAL
 static __u32 cifs_ssetup_hdr(struct cifsSesInfo *ses, SESSION_SETUP_ANDX *pSMB)
 {
 	__u32 capabilities = 0;
@@ -140,4 +139,3 @@
 
 	return rc;
 }
-#endif /* CONFIG_CIFS_EXPERIMENTAL */
--- linux-2.6.17-rc2.orig/fs/cifs/cifssmb.c	2006-04-24 10:47:55.000000000 +0200
+++ linux-2.6.17-rc2/fs/cifs/cifssmb.c	2006-04-24 22:08:19.000000000 +0200
@@ -188,7 +188,6 @@
 	return rc;
 }
 
-#ifdef CONFIG_CIFS_EXPERIMENTAL  
 int
 small_smb_init_no_tc(const int smb_command, const int wct, 
 		     struct cifsSesInfo *ses, void **request_buf)
@@ -214,7 +213,6 @@
 
 	return rc;
 }
-#endif  /* CONFIG_CIFS_EXPERIMENTAL */
 
 /* If the return code is zero, this function must fill in request_buf pointer */
 static int



-- 
Jean Delvare

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-04-24 20:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-24 20:25 [PATCH] Fix cifs breakage when CONFIG_CIFS_EXPERIMENTAL=n Jean Delvare
2006-04-24 20:52 ` Dave Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.