提交 0dab9cfa 编写于 作者: A Adrian Bunk 提交者: Linus Torvalds

add key_revoke() dummy for KEYS=n

This fixes the following build error with CONFIG_KEYS=n, caused by
commit dfd15c46 ("cifs: explicitly
revoke SPNEGO key after session setup"):

    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
Signed-off-by: NAdrian Bunk <bunk@kernel.org>
Acked-by: NJeff Layton <jlayton@redhat.com>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 07104839
...@@ -299,6 +299,7 @@ extern void key_init(void); ...@@ -299,6 +299,7 @@ extern void key_init(void);
#define key_validate(k) 0 #define key_validate(k) 0
#define key_serial(k) 0 #define key_serial(k) 0
#define key_get(k) ({ NULL; }) #define key_get(k) ({ NULL; })
#define key_revoke(k) do { } while(0)
#define key_put(k) do { } while(0) #define key_put(k) do { } while(0)
#define key_ref_put(k) do { } while(0) #define key_ref_put(k) do { } while(0)
#define make_key_ref(k, p) ({ NULL; }) #define make_key_ref(k, p) ({ NULL; })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册