From: "Steve French" <smfrench@gmail.com>
To: rjw@sisk.pl, "David Miller" <davem@davemloft.net>,
netdev@vger.kernel.org,
"samba-technical@lists.samba.org"
<samba-technical@lists.samba.org>,
"linux-cifs-client@lists.samba.org"
<linux-cifs-client@lists.samba.org>,
cooldavid@cooldavid.org, jlayton@redhat.com,
LKML <linux-kernel@vger.kernel.org>
Subject: Fwd: [PATCH] Fix CIFS compilation with CONFIG_KEYS unset
Date: Sun, 12 Oct 2008 08:40:39 -0500 [thread overview]
Message-ID: <524f69650810120640v41778375wf0a7662e773da26f@mail.gmail.com> (raw)
In-Reply-To: <200810121315.37203.rjw@sisk.pl>
Rafael and Guo-Fu,
The following change to address the compile error that you noted is
slightly different than what you suggested but should fix what you
found.
diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c
index 2851d5d..d8fce19 100644
--- a/fs/cifs/sess.c
+++ b/fs/cifs/sess.c
@@ -624,10 +624,12 @@ CIFS_SessSetup(unsigned int xid, struct
cifsSesInfo *ses, int first_time,
ses, nls_cp);
ssetup_exit:
+#ifdef CONFIG_CIFS_UPCALL
if (spnego_key) {
key_revoke(spnego_key);
key_put(spnego_key);
}
+#endif
kfree(str_area);
if (resp_buf_type == CIFS_SMALL_BUFFER) {
cFYI(1, ("ssetup freeing small buf %p", iov[0].iov_base));
---------- Forwarded message ----------
From: Rafael J. Wysocki <rjw@sisk.pl>
Date: Sun, Oct 12, 2008 at 6:15 AM
Subject: [PATCH] Fix CIFS compilation with CONFIG_KEYS unset
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>, LKML
<linux-kernel@vger.kernel.org>, Herbert Xu
<herbert@gondor.apana.org.au>, Steve French <smfrench@gmail.com>
From: Rafael J. Wysocki <rjw@sisk.pl>
Fix CIFS compilation with CONFIG_KEYS unset
If CONFIG_KEYS is unset, fs/cifs/sess.c doesn't build due to key_revoke()
being undefined. Fix that.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
---
include/linux/key.h | 1 +
1 file changed, 1 insertion(+)
Index: linux-2.6/include/linux/key.h
===================================================================
--- linux-2.6.orig/include/linux/key.h
+++ linux-2.6/include/linux/key.h
@@ -300,6 +300,7 @@ extern void key_init(void);
#define key_serial(k) 0
#define key_get(k) ({ NULL; })
#define key_put(k) do { } while(0)
+#define key_revoke(k) do { } while(0)
#define key_ref_put(k) do { } while(0)
#define make_key_ref(k, p) ({ NULL; })
#define key_ref_to_ptr(k) ({ NULL; })
--
Thanks,
Steve
next prev parent reply other threads:[~2008-10-12 13:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-12 11:15 Rafael J. Wysocki
2008-10-12 13:40 ` Steve French [this message]
2008-10-12 13:42 ` Fwd: " Guo-Fu Tseng
2008-10-12 13:59 ` [linux-cifs-client] " Jeff Layton
2008-10-12 14:12 ` Guo-Fu Tseng
2008-10-12 16:53 ` Steve French
2008-10-12 16:57 ` Steve French
2008-10-12 17:09 ` Rafael J. Wysocki
2008-10-12 18:47 ` Steve French
2008-10-12 20:16 ` Jeff Layton
2008-10-12 20:38 ` 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=524f69650810120640v41778375wf0a7662e773da26f@mail.gmail.com \
--to=smfrench@gmail.com \
--cc=cooldavid@cooldavid.org \
--cc=davem@davemloft.net \
--cc=jlayton@redhat.com \
--cc=linux-cifs-client@lists.samba.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=rjw@sisk.pl \
--cc=samba-technical@lists.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 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®