public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix CIFS compilation with CONFIG_KEYS unset
@ 2008-10-12 11:15 Rafael J. Wysocki
  2008-10-12 13:40 ` Fwd: " Steve French
  0 siblings, 1 reply; 11+ messages in thread
From: Rafael J. Wysocki @ 2008-10-12 11:15 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Andrew Morton, LKML, Herbert Xu, Steve French

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; })

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

end of thread, other threads:[~2008-10-12 20:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-12 11:15 [PATCH] Fix CIFS compilation with CONFIG_KEYS unset Rafael J. Wysocki
2008-10-12 13:40 ` Fwd: " Steve French
2008-10-12 13:42   ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox