From patchwork Mon Jun 6 18:58:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Lacombe X-Patchwork-Id: 853432 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p56J0RN0007301 for ; Mon, 6 Jun 2011 19:00:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757540Ab1FFTAg (ORCPT ); Mon, 6 Jun 2011 15:00:36 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:34179 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756672Ab1FFS6p (ORCPT ); Mon, 6 Jun 2011 14:58:45 -0400 Received: by mail-iy0-f174.google.com with SMTP id 14so3338068iyb.19 for ; Mon, 06 Jun 2011 11:58:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=TpS73mm+UIfeWHdgM/iIlvKnLeAme5peJp8L4shHRFU=; b=i1g3Ci2/zTj7pyY6OtjU87HAj2oK5ttXbqDRCjl3lpq1JKySpasAD+VZKkYPdu8T4G vF6YuuWVlM34Hls5YkQjw7N3Kx5MI+xQjkAiRgmkXis1aOK8oRBcGAU5CiMzcMS/n3jP 84uzoQ74zPcDzA8EvRO+kwUSTKP8jsMfHaNaY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=VyYbYHpt2dEioxJ7QbD37jNKTYMdHxYQe3PmgCVEYAScb4woX1hbYPvK0PIhBgcFJr nLJy3g5N0wBDQj2TRqY23TUEaV6XVdfC2z4iN9d7vu7w8WU0QwESYLCGI3aLq6OFiPEJ yEbtxUoOQruj0UdU2B7naBeXUy+fD6iPtYqRk= Received: by 10.42.132.7 with SMTP id b7mr9238499ict.0.1307386724759; Mon, 06 Jun 2011 11:58:44 -0700 (PDT) Received: from localhost.localdomain (76-10-146-236.dsl.teksavvy.com [76.10.146.236]) by mx.google.com with ESMTPS id v15sm1766700ibh.28.2011.06.06.11.58.43 (version=SSLv3 cipher=OTHER); Mon, 06 Jun 2011 11:58:44 -0700 (PDT) From: Arnaud Lacombe To: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Michal Marek , Arnaud Lacombe , Sam Ravnborg Subject: [PATCH 2/9] kconfig: fix return code for invalid boolean symbol in conf_set_sym_val() Date: Mon, 6 Jun 2011 14:58:24 -0400 Message-Id: <1307386711-8866-3-git-send-email-lacombar@gmail.com> X-Mailer: git-send-email 1.7.3.4.574.g608b.dirty In-Reply-To: <1307386711-8866-1-git-send-email-lacombar@gmail.com> References: <1307386711-8866-1-git-send-email-lacombar@gmail.com> 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 (demeter2.kernel.org [140.211.167.43]); Mon, 06 Jun 2011 19:00:37 +0000 (UTC) Cc: Sam Ravnborg Signed-off-by: Arnaud Lacombe --- scripts/kconfig/confdata.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index 3693ac7..a9f0ebd 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c @@ -141,7 +141,7 @@ static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p) break; } conf_warning("symbol value '%s' invalid for %s", p, sym->name); - break; + return 1; case S_OTHER: if (*p != '"') { for (p2 = p; *p2 && !isspace(*p2); p2++)