From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-iy0-f174.google.com ([209.85.210.174]:45177 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752496Ab2ALD0u (ORCPT ); Wed, 11 Jan 2012 22:26:50 -0500 Received: by iabz25 with SMTP id z25so2043117iab.19 for ; Wed, 11 Jan 2012 19:26:50 -0800 (PST) Date: Thu, 12 Jan 2012 11:26:13 +0800 From: Wang YanQing Subject: [PATCH] scripts:kconfig:mconf.c: let make not report error when not save configuration Message-ID: <20120112032613.GA13695@udknight> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: mmarek@suse.cz Cc: linux-kernel@veger.kernel.org, linux-kbuild@vger.kernel.org, lacombar@gmail.com, dave@gnu.org I find every time when I choice the 'NO' button at the dialog which let me choice whether to save the configuration before exit menuconfig, it always report the blow: " GEN /mnt/sda7/home/build/test/Makefile HOSTCC scripts/kconfig/mconf.o HOSTLD scripts/kconfig/mconf scripts/kconfig/mconf Kconfig Your configuration changes were NOT saved. make[2]: *** [menuconfig] Error 1 make[1]: *** [menuconfig] Error 2 make: *** [sub-make] Error 2 " This patch repair it. Thanks! Signed-off-by: Wang YanQing --- scripts/kconfig/mconf.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index 19e200d..86cd1ea 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c @@ -830,6 +830,7 @@ static int handle_exit(void) fprintf(stderr, _("\n\n" "Your configuration changes were NOT saved." "\n\n")); + res = 0; } return res; -- 1.7.3.4