* [PATCH] [CIFS] Fix compile warning for fs/cifs/cifsfs.c
@ 2003-06-22 9:19 René Scharfe
2003-06-22 9:40 ` Andrew Morton
0 siblings, 1 reply; 2+ messages in thread
From: René Scharfe @ 2003-06-22 9:19 UTC (permalink / raw)
To: Steven French; +Cc: linux-kernel
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é
diff -u ./fs/cifs/cifsproto.h~ ./fs/cifs/cifsproto.h
--- ./fs/cifs/cifsproto.h~ 2003-06-22 10:04:00.000000000 +0200
+++ ./fs/cifs/cifsproto.h 2003-06-22 10:52:06.000000000 +0200
@@ -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,
diff -u ./fs/cifs/cifssmb.c~ ./fs/cifs/cifssmb.c
--- ./fs/cifs/cifssmb.c~ 2003-06-14 21:18:01.000000000 +0200
+++ ./fs/cifs/cifssmb.c 2003-06-22 10:51:30.000000000 +0200
@@ -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;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-06-22 9:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-22 9:19 [PATCH] [CIFS] Fix compile warning for fs/cifs/cifsfs.c René Scharfe
2003-06-22 9:40 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®