From patchwork Mon Aug 1 00:36:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Foley X-Patchwork-Id: 1024882 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p710cWqe011653 for ; Mon, 1 Aug 2011 00:38:32 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752854Ab1HAAib (ORCPT ); Sun, 31 Jul 2011 20:38:31 -0400 Received: from vms173017pub.verizon.net ([206.46.173.17]:45883 "EHLO vms173017pub.verizon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752831Ab1HAAia (ORCPT ); Sun, 31 Jul 2011 20:38:30 -0400 Received: from [192.168.1.14] ([unknown] [173.66.22.130]) by vms173017.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LP800EQM4FQX500@vms173017.mailsrvcs.net>; Sun, 31 Jul 2011 19:38:20 -0500 (CDT) Date: Sun, 31 Jul 2011 20:36:03 -0400 (EDT) From: Peter Foley To: Linux Kernel Mailing List , Linux Kbuild Mailing List , mmarek@suse.cz, rdunlap@xenotime.net, lacombar@gmail.com Subject: [PATCH RFC] kconfig.h fix extraneous dependencies Message-id: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 01 Aug 2011 00:38:32 +0000 (UTC) The introduction of kconfig.h caused fixdep to create three extraneous dependencies. include/config/.h include/config/h.h include/config/foo.h Remove them by eliminating instances of CONFIG_ Signed-off-by: Peter Foley --- Suggestions for a better replacement for CONFIG_FOO would be appreciated. -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/linux/kconfig.h b/include/linux/kconfig.h index 067eda0..66a0659 100644 --- a/include/linux/kconfig.h +++ b/include/linux/kconfig.h @@ -1,15 +1,15 @@ -#ifndef __LINUX_KCONFIG_H -#define __LINUX_KCONFIG_H +#ifndef __LINUX_KCONFIG +#define __LINUX_KCONFIG #include /* - * Helper macros to use CONFIG_ options in C expressions. Note that + * Helper macros to use CONFIG options in C expressions. Note that * these only work with boolean and tristate options. */ /* - * IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm', + * IS_ENABLED(CONFIG _FOO) evaluates to 1 if CONFIG _FOO is set to 'y' or 'm', * 0 otherwise. * */ @@ -17,16 +17,16 @@ (__enabled_ ## option || __enabled_ ## option ## _MODULE) /* - * IS_BUILTIN(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y', 0 + * IS_BUILTIN(CONFIG _FOO) evaluates to 1 if CONFIG _FOO is set to 'y', 0 * otherwise. For boolean options, this is equivalent to - * IS_ENABLED(CONFIG_FOO). + * IS_ENABLED(CONFIG _FOO). */ #define IS_BUILTIN(option) __enabled_ ## option /* - * IS_MODULE(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'm', 0 + * IS_MODULE(CONFIG _FOO) evaluates to 1 if CONFIG _FOO is set to 'm', 0 * otherwise. */ #define IS_MODULE(option) __enabled_ ## option ## _MODULE -#endif /* __LINUX_KCONFIG_H */ +#endif /* __LINUX_KCONFIG */