From: Adrian Bunk <bunk@kernel.org>
To: sfrench@samba.org
Cc: linux-cifs-client@lists.samba.org, linux-kernel@vger.kernel.org
Subject: [2.6 patch] CIFS: #if 0 mode_to_access_flags()
Date: Tue, 1 Jan 2008 15:46:44 +0200 [thread overview]
Message-ID: <20080101134644.GE2360@does.not.exist> (raw)
This patch #if 0's the unused mode_to_access_flags(), fixing the
following compile warning:
<-- snip -->
...
CC fs/cifs/cifsacl.o
/home/bunk/linux/kernel-2.6/git/linux-2.6/fs/cifs/cifsacl.c:200: warning: ‘mode_to_access_flags’ defined but not used
...
<-- snip -->
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
fs/cifs/cifsacl.c | 2 ++
1 file changed, 2 insertions(+)
0cf530f754b974ee5e58b3346828bb5586440c92
diff --git a/fs/cifs/cifsacl.c b/fs/cifs/cifsacl.c
index c312adc..771a22f 100644
--- a/fs/cifs/cifsacl.c
+++ b/fs/cifs/cifsacl.c
@@ -189,6 +189,7 @@ static void access_flags_to_mode(__le32 ace_flags, int type, umode_t *pmode,
return;
}
+#if 0
/*
Generate access flags to reflect permissions mode is the existing mode.
This function is called for every ACE in the DACL whose SID matches
@@ -219,6 +220,7 @@ static void mode_to_access_flags(umode_t mode, umode_t bits_to_use,
#endif
return;
}
+#endif /* 0 */
#ifdef CONFIG_CIFS_DEBUG2
next reply other threads:[~2008-01-01 13:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-01 13:46 Adrian Bunk [this message]
2008-01-01 18:10 ` [2.6 patch] CIFS: #if 0 mode_to_access_flags() Christoph Hellwig
2008-01-01 23:46 ` Steve French
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080101134644.GE2360@does.not.exist \
--to=bunk@kernel.org \
--cc=linux-cifs-client@lists.samba.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sfrench@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.