public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] include/keys/system_keyring.h: fix building error
@ 2013-01-19  0:53 Cong Ding
  2013-01-19  1:02 ` David Howells
  0 siblings, 1 reply; 3+ messages in thread
From: Cong Ding @ 2013-01-19  0:53 UTC (permalink / raw)
  To: David Howells, keyrings, linux-kernel; +Cc: Cong Ding

When I am doing "make randconfig", it causes the following building error if
CONFIG_SYSTEM_TRUSTED_KEYRING is not defined and CONFIG_MODULE_SIG is defined.

kernel/module_signing.c: In function ‘request_asymmetric_key’:
kernel/module_signing.c:161:36: error: ‘system_trusted_keyring’ undeclared
(first use in this function)
kernel/module_signing.c:161:36: note: each undeclared identifier is reported
only once for each function it appears in

Signed-off-by: Cong Ding <dinggnu@gmail.com>
---
 include/keys/system_keyring.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/keys/system_keyring.h b/include/keys/system_keyring.h
index 8dabc39..d66c92d 100644
--- a/include/keys/system_keyring.h
+++ b/include/keys/system_keyring.h
@@ -12,7 +12,7 @@
 #ifndef _KEYS_SYSTEM_KEYRING_H
 #define _KEYS_SYSTEM_KEYRING_H
 
-#ifdef CONFIG_SYSTEM_TRUSTED_KEYRING
+#if defined(CONFIG_SYSTEM_TRUSTED_KEYRING) || defined(CONFIG_MODULE_SIG)
 
 #include <linux/key.h>
 
-- 
1.7.10.4


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

end of thread, other threads:[~2013-01-19  1:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-19  0:53 [PATCH] include/keys/system_keyring.h: fix building error Cong Ding
2013-01-19  1:02 ` David Howells
2013-01-19  1:08   ` Cong Ding

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