* [2.6 patch] add key_revoke() dummy for KEYS=n
@ 2008-10-12 4:10 Adrian Bunk
2008-10-12 11:48 ` Jeff Layton
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2008-10-12 4:10 UTC (permalink / raw)
To: David Howells, Linus Torvalds
Cc: Andrew Morton, linux-kernel, Jeff Layton, Steve French,
linux-cifs-client
This patch fixes the following build error with CONFIG_KEYS=n, caused by
commit dfd15c46a6c2cafb006183c0c14f07e59eee4ac0
(cifs: explicitly revoke SPNEGO key after session setup):
<-- snip -->
...
CC [M] fs/cifs/sess.o
fs/cifs/sess.c: In function 'CIFS_SessSetup':
fs/cifs/sess.c:628: error: implicit declaration of function 'key_revoke'
make[3]: *** [fs/cifs/sess.o] Error 1
<-- snip -->
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
diff --git a/include/linux/key.h b/include/linux/key.h
index c45c962..1b70e35 100644
--- a/include/linux/key.h
+++ b/include/linux/key.h
@@ -299,6 +299,7 @@ extern void key_init(void);
#define key_validate(k) 0
#define key_serial(k) 0
#define key_get(k) ({ NULL; })
+#define key_revoke(k) do { } while(0)
#define key_put(k) do { } while(0)
#define key_ref_put(k) do { } while(0)
#define make_key_ref(k, p) ({ NULL; })
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [2.6 patch] add key_revoke() dummy for KEYS=n
2008-10-12 4:10 [2.6 patch] add key_revoke() dummy for KEYS=n Adrian Bunk
@ 2008-10-12 11:48 ` Jeff Layton
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Layton @ 2008-10-12 11:48 UTC (permalink / raw)
To: Adrian Bunk
Cc: David Howells, Linus Torvalds, Andrew Morton, linux-kernel,
Steve French, linux-cifs-client
On Sun, 12 Oct 2008 07:10:50 +0300
Adrian Bunk <bunk@kernel.org> wrote:
> This patch fixes the following build error with CONFIG_KEYS=n, caused by
> commit dfd15c46a6c2cafb006183c0c14f07e59eee4ac0
> (cifs: explicitly revoke SPNEGO key after session setup):
>
> <-- snip -->
>
> ...
> CC [M] fs/cifs/sess.o
> fs/cifs/sess.c: In function 'CIFS_SessSetup':
> fs/cifs/sess.c:628: error: implicit declaration of function 'key_revoke'
> make[3]: *** [fs/cifs/sess.o] Error 1
>
> <-- snip -->
>
>
> Signed-off-by: Adrian Bunk <bunk@kernel.org>
>
> ---
>
> diff --git a/include/linux/key.h b/include/linux/key.h
> index c45c962..1b70e35 100644
> --- a/include/linux/key.h
> +++ b/include/linux/key.h
> @@ -299,6 +299,7 @@ extern void key_init(void);
> #define key_validate(k) 0
> #define key_serial(k) 0
> #define key_get(k) ({ NULL; })
> +#define key_revoke(k) do { } while(0)
> #define key_put(k) do { } while(0)
> #define key_ref_put(k) do { } while(0)
> #define make_key_ref(k, p) ({ NULL; })
>
Acked-by: Jeff Layton <jlayton@redhat.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-12 11:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-12 4:10 [2.6 patch] add key_revoke() dummy for KEYS=n Adrian Bunk
2008-10-12 11:48 ` Jeff Layton
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®