public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Cong Ding <dinggnu@gmail.com>
To: David Howells <dhowells@redhat.com>,
	keyrings@linux-nfs.org, linux-kernel@vger.kernel.org
Cc: Cong Ding <dinggnu@gmail.com>
Subject: [PATCH] include/keys/system_keyring.h: fix building error
Date: Sat, 19 Jan 2013 01:53:33 +0100	[thread overview]
Message-ID: <1358556813-12518-1-git-send-email-dinggnu@gmail.com> (raw)

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


             reply	other threads:[~2013-01-19  0:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-19  0:53 Cong Ding [this message]
2013-01-19  1:02 ` [PATCH] include/keys/system_keyring.h: fix building error David Howells
2013-01-19  1:08   ` Cong Ding

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=1358556813-12518-1-git-send-email-dinggnu@gmail.com \
    --to=dinggnu@gmail.com \
    --cc=dhowells@redhat.com \
    --cc=keyrings@linux-nfs.org \
    --cc=linux-kernel@vger.kernel.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