From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755585Ab2ALUun (ORCPT ); Thu, 12 Jan 2012 15:50:43 -0500 Received: from caiajhbdcbbj.dreamhost.com ([208.97.132.119]:44588 "EHLO homiemail-a61.g.dreamhost.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751981Ab2ALUum (ORCPT ); Thu, 12 Jan 2012 15:50:42 -0500 Subject: Re: [PATCH] scripts:kconfig:mconf.c: let make not report error when not save configuration From: Davidlohr Bueso Reply-To: dave@gnu.org To: Wang YanQing Cc: mmarek@suse.cz, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, lacombar@gmail.com In-Reply-To: <20120112033132.GA13752@udknight> References: <20120112033132.GA13752@udknight> Content-Type: text/plain; charset="UTF-8" Organization: GNU Date: Thu, 12 Jan 2012 21:50:37 +0100 Message-ID: <1326401437.3416.0.camel@offbook> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2012-01-12 at 11:31 +0800, Wang YanQing wrote: > 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 Acked-by: Davidlohr Bueso > --- > 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;