From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sedat Dilek Subject: [PATCH next-20130118 1/2] KEYS: Fix build-error when SYSTEM_TRUSTED_KEYRING=n Date: Sat, 19 Jan 2013 01:54:30 +0100 Message-ID: <1358556871-6651-1-git-send-email-sedat.dilek@gmail.com> Return-path: Received: from mail-ea0-f175.google.com ([209.85.215.175]:47343 "EHLO mail-ea0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753253Ab3ASAyq (ORCPT ); Fri, 18 Jan 2013 19:54:46 -0500 Sender: linux-next-owner@vger.kernel.org List-ID: To: David Howells , Rusty Russell , linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, Stephen Rothwell Cc: Sedat Dilek When SYSTEM_TRUSTED_KEYRING=n my build fails like this: 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 Fix this by replacing "select" with "depends on" KEYS Kconfig. For more details follow the thread in [1]. [1] http://marc.info/?t=135854545000001&r=1&w=2 Tested against Linux-Next (next-20130118). Signed-off-by: Sedat Dilek --- init/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/Kconfig b/init/Kconfig index fb2959d..f7e1b32 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1607,7 +1607,7 @@ config BASE_SMALL config SYSTEM_TRUSTED_KEYRING bool "Provide system-wide ring of trusted keys" - select KEYS + depends on KEYS help Provide a system keyring to which trusted keys can be added. Keys in the keyring are considered to be trusted. Keys may be added at will -- 1.8.1.1