Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1767853ybe; Tue, 3 Sep 2019 03:13:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFcNYW16xuPTa5M71HiZ0wKCC+WOcCuMkiwBkUUTRoKQRuAoH4TwsPU6e7xiululv3yBRo X-Received: by 2002:a63:de43:: with SMTP id y3mr29810660pgi.211.1567505623497; Tue, 03 Sep 2019 03:13:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567505623; cv=none; d=google.com; s=arc-20160816; b=zh5dR/lo+7Tk4KSRQzSpFzp2rlJFJVXFlC7tUR7Yj6syRq6eZiVjr6H7V+DheTORBO n4Fh2vC3k1UkEV7+UW6xtd9zOd6Axp0hVgAX/7x2vBxTQoMwgYhTZUJPK9IoV4vNcYUp gKd5WlX6qLM4sUwJWiJ5UTqq/m8zowdg4td2B6AkML7kUbsBM5cVesEOQ0K+G/L56yMI RXwYx7RQoMaahIEKm3UB4lR+MLy0XZfTqn8SfQgF3xFCpjW4+Yj/+sxbpwyDv2emXjj8 A8sYjUxEAVGowiCbphCpKS0pWIXadvHZtLY1uVLM9eaNpzPAK6+mCmzx7d/ly1yU0PAq BlDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=yP6lqyVaco/w8M3HPHrreEiKuBrDXd5RtrVC6WjwWEc=; b=wqZzwbpn4gP91Hdm6Y77v6WfQ+ue1Z1bJBxHJ8Rg0x2dFVL0io8Q2kqqUlbCWYbGLi 5WYJ6/xvdniUMwGLvC4vWuRIiNEE6orRWOwi0xBAVpluEhkzKuGPGBpoRR9Qyi5N+Xz1 IKXOGHrDjmOk+WsgvsUnUbWPFVzPjMXToLWeNNZHcHHWPI7LmvWp+7ffCqV+s9p7ysS2 HfbtAc1XrRNmwuv5XWTNl77Nsz93exFC8yU+s+u7EZO8dsNkYIx5VKnKD2ivD1Da66bm G5CsAaCfOHkA1+x8WbzRx8M2oaI58ZrXRmLahXXq5CLYUgWGRZQ3pw2iCtHuxBL8RXzo f+7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=UGwCFRV0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w11si4479954pfd.59.2019.09.03.03.13.27; Tue, 03 Sep 2019 03:13:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=UGwCFRV0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728633AbfICKKl (ORCPT + 99 others); Tue, 3 Sep 2019 06:10:41 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:19248 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726840AbfICKKl (ORCPT ); Tue, 3 Sep 2019 06:10:41 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 03 Sep 2019 03:10:41 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Tue, 03 Sep 2019 03:10:40 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Tue, 03 Sep 2019 03:10:40 -0700 Received: from [10.21.132.148] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 3 Sep 2019 10:10:38 +0000 Subject: Re: [PATCH v2] merge_config.sh: ignore unwanted grep errors To: Guillaume Tucker , Masahiro Yamada , Mark Brown CC: , , , References: From: Jon Hunter Message-ID: <3f5df041-ae53-8719-41f4-7b56a49a8bbc@nvidia.com> Date: Tue, 3 Sep 2019 11:10:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1567505441; bh=yP6lqyVaco/w8M3HPHrreEiKuBrDXd5RtrVC6WjwWEc=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=UGwCFRV0Ly2PlBdVSpRr7afLSTbHcab2B7bfyl79fab/T7BNnoy+vQnPz0bX1ckfn PSUPZalh4PZwiZakqR4lzs+LcCU5b5YaxdZRX3C3REDmqa98VOmD2eAQTd1QoGBqsi 1SjQjmtki2yOkbidr8U6z/PEzCnE4Dx/pDXUri52W509E7wpR5yFEROE1YvEesxAiB hdJHcssoRksOKUTQzTBSKH4JkaEQN2wXOlPeg95ZNr9TdcFyH4EvNlbMzECBEQS7gf 8Ny30rGUJ50mhG4XiVbQyAltLtnA+NxCX4lK0sacxmFpjPWyBIncyR7JzOMLYYBd67 9Ot0b4PMKXSEA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/09/2019 16:18, Guillaume Tucker wrote: > The merge_config.sh script verifies that all the config options have > their expected value in the resulting file and prints any issues as > warnings. These checks aren't intended to be treated as errors given > the current implementation. However, since "set -e" was added, if the > grep command to look for a config option does not find it the script > will then abort prematurely. > > Handle the case where the grep exit status is non-zero by setting > ACTUAL_VAL to an empty string to restore previous functionality. > > Fixes: cdfca821571d ("merge_config.sh: Check error codes from make") > Signed-off-by: Guillaume Tucker > Cc: Jon Hunter > --- > > Notes: > v2: use true rather than echo as per Jon Hunter's suggestion > > scripts/kconfig/merge_config.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/kconfig/merge_config.sh b/scripts/kconfig/merge_config.sh > index d924c51d28b7..f2cc10b1d404 100755 > --- a/scripts/kconfig/merge_config.sh > +++ b/scripts/kconfig/merge_config.sh > @@ -177,7 +177,7 @@ make KCONFIG_ALLCONFIG=$TMP_FILE $OUTPUT_ARG $ALLTARGET > for CFG in $(sed -n -e "$SED_CONFIG_EXP1" -e "$SED_CONFIG_EXP2" $TMP_FILE); do > > REQUESTED_VAL=$(grep -w -e "$CFG" $TMP_FILE) > - ACTUAL_VAL=$(grep -w -e "$CFG" "$KCONFIG_CONFIG") > + ACTUAL_VAL=$(grep -w -e "$CFG" "$KCONFIG_CONFIG" || true) > if [ "x$REQUESTED_VAL" != "x$ACTUAL_VAL" ] ; then > echo "Value requested for $CFG not in final .config" > echo "Requested value: $REQUESTED_VAL" > Thanks for fixing! Great if we could get this into -next as soon as possible! Acked-by: Jon Hunter Tested-by: Jon Hunter Cheers Jon -- nvpublic