From patchwork Thu Dec 17 00:35:56 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiafu He X-Patchwork-Id: 68468 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id nBI4ixrL005715 for ; Fri, 18 Dec 2009 04:46:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762974AbZLQAgF (ORCPT ); Wed, 16 Dec 2009 19:36:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1763475AbZLQAgB (ORCPT ); Wed, 16 Dec 2009 19:36:01 -0500 Received: from smtpoutwbe06.prod.mesa1.secureserver.net ([208.109.78.208]:47752 "HELO smtpoutwbe06.prod.mesa1.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1762974AbZLQAf7 convert rfc822-to-8bit (ORCPT ); Wed, 16 Dec 2009 19:35:59 -0500 Received: (qmail 7078 invoked from network); 17 Dec 2009 00:35:56 -0000 Received: from unknown (HELO gem-wbe11.prod.mesa1.secureserver.net) (64.202.189.54) by smtpoutwbe06.prod.mesa1.secureserver.net with SMTP; 17 Dec 2009 00:35:56 -0000 Received: (qmail 12896 invoked by uid 99); 17 Dec 2009 00:35:56 -0000 X-Originating-IP: 71.184.114.95 User-Agent: Web-Based Email 5.1.31 Message-Id: <20091216173556.0b50c25debf12a9aa545bf810459b532.9761f5fd4a.wbe@email.secureserver.net> From: "Jiafu He" To: linux-kbuild@vger.kernel.org Cc: "Roman Zippel" Subject: [PATCH] Kconfig: default m doesn't work for menuconfig/xconfig/gconfig even if =?UTF-8?Q?CONFIG=5FMODULES=3Dy?= Date: Wed, 16 Dec 2009 17:35:56 -0700 Mime-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index b55e72f..9ff712b 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c @@ -170,8 +170,11 @@ int conf_read_simple(const char *name, int def) if (in) goto load; sym_add_change_count(1); - if (!sym_defconfig_list) + if (!sym_defconfig_list) { + if (modules_sym) + sym_calc_value(modules_sym); return 1; + } for_all_defaults(sym_defconfig_list, prop) { if (expr_calc_value(prop->visible.expr) == no ||