From patchwork Sat Sep 21 23:17:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 2923321 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 92175BFF05 for ; Sat, 21 Sep 2013 23:17:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BADBE204C7 for ; Sat, 21 Sep 2013 23:17:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 92988204AD for ; Sat, 21 Sep 2013 23:17:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751909Ab3IUXRb (ORCPT ); Sat, 21 Sep 2013 19:17:31 -0400 Received: from mail-wg0-f50.google.com ([74.125.82.50]:36024 "EHLO mail-wg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751865Ab3IUXRa (ORCPT ); Sat, 21 Sep 2013 19:17:30 -0400 Received: by mail-wg0-f50.google.com with SMTP id f12so1808533wgh.17 for ; Sat, 21 Sep 2013 16:17:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=cAKTUp04fuTM7JQwIef1Ef2EHGT3v1qINMFYAU9/EkE=; b=DzOpE1sjHVe9uzAqnHfrej+mJafJfLHWpilzyScoA2AWGok29UcA3lbfXV69yoTY7x xL7W4G6FwfMtlSmKcKTyKWCmoI+/ZPp2y7qUlpqb1O1MCUOSa9RfCezsKF60sHPLQ0LN mqOL6uS7HqwGxDIeRJ3dce5qZ0cpEywL34EFoH4cNirDlMP4Cy/pFNNPPcV1uShKQAOr 3ZrWT7K6bNw5okVC8jAkwEUlQ9P5RYmS+OmJIu/iBo05RPiy56i57tjWY3m7zbEuOjPv m10J0bD6ZEmHtIxZKdb1Nybga6p0EenKn8xT3BhkNhm0BU5EG053ZYUkLWcOYQC3Vno/ NEIw== X-Received: by 10.194.170.133 with SMTP id am5mr30016wjc.42.1379805449591; Sat, 21 Sep 2013 16:17:29 -0700 (PDT) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id e1sm14667768wij.6.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 21 Sep 2013 16:17:28 -0700 (PDT) From: "Yann E. MORIN" To: linux-kbuild@vger.kernel.org Cc: "Yann E. MORIN" , Stephen Rothwell , Sam Ravnborg , Michal Marek Subject: [PATCH] kconfig: fix allmodconfig Date: Sun, 22 Sep 2013 01:17:23 +0200 Message-Id: <1379805443-10945-1-git-send-email-yann.morin.1998@free.fr> X-Mailer: git-send-email 1.8.1.2 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Yann E. MORIN" Reported-by: Stephen Rothwell Signed-off-by: "Yann E. MORIN" Cc: Stephen Rothwell Cc: Sam Ravnborg Cc: Michal Marek --- scripts/kconfig/confdata.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index 87f7238..0cbfc67 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c @@ -399,8 +399,6 @@ setsym: free(line); fclose(in); - if (modules_sym) - sym_calc_value(modules_sym); return 0; } @@ -1175,6 +1173,10 @@ bool conf_set_all_new_symbols(enum conf_def_mode mode) sym->def[S_DEF_USER].tri = yes; break; case def_mod: + /* Note: although modules_sym must be 'yes' to + * enable tristates, 'mod' is promoted to 'yes' + * when applied to a boolean, which modules_sym + * is. So we need not special-case it here. */ sym->def[S_DEF_USER].tri = mod; break; case def_no: