Skip to contentSkip to conversation

Fix compile warning for fs/cifs/cifsfs.c

PATCH In review René Scharfe 2 participants 2 messages Jun 22, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compile warning for fs/cifs/cifsfs.c

Hi,

this patch fixes a compile warning about incompatible types in fs/cifs/cifsfs.c in cifs_statfs(). This function is called with a pointer to a struct kstatfs, so let's propagate this type into the helper function.

René

fs/cifs/cifsproto.h renamed from fs/cifs/cifsproto.h~ +1 -1
diff -u ./fs/cifs/cifsproto.h~ ./fs/cifs/cifsproto.h
@@ -137,7 +137,7 @@
 			const char *old_path, const struct nls_table *nls_codepage, 
 			unsigned int *pnum_referrals, unsigned char ** preferrals);
 extern int CIFSSMBQFSInfo(const int xid, struct cifsTconInfo *tcon,
-			struct statfs *FSData,
+			struct kstatfs *FSData,
 			const struct nls_table *nls_codepage);
 extern int CIFSSMBQFSAttributeInfo(const int xid,
 			struct cifsTconInfo *tcon,
fs/cifs/cifssmb.c renamed from fs/cifs/cifssmb.c~ +1 -1
diff -u ./fs/cifs/cifssmb.c~ ./fs/cifs/cifssmb.c
@@ -1782,7 +1782,7 @@
 
 int
 CIFSSMBQFSInfo(const int xid, struct cifsTconInfo *tcon,
-	       struct statfs *FSData, const struct nls_table *nls_codepage)
+	       struct kstatfs *FSData, const struct nls_table *nls_codepage)
 {
 /* level 0x103 SMB_QUERY_FILE_SYSTEM_INFO */
 	TRANSACTION2_QFSI_REQ *pSMB = NULL;
#1 lore raw
Quoted 3 lines · René Scharfe

this patch fixes a compile warning about incompatible types in
fs/cifs/cifsfs.c in cifs_statfs().

oop, sorry. I'll send that in, thanks.