Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp839412pxb; Thu, 17 Feb 2022 16:15:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzFwZQOMVbt4uzGI7P+7/t+w/jEn1RgHPXbZ8xjGnjevEFhy3e4aFIeDAiNIVpzdTlga2Nb X-Received: by 2002:a17:902:7892:b0:14e:c520:e47d with SMTP id q18-20020a170902789200b0014ec520e47dmr4984648pll.105.1645143334901; Thu, 17 Feb 2022 16:15:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645143334; cv=none; d=google.com; s=arc-20160816; b=YjBbSZEX4dqcSs6LrvNwRny9jahHuDO2fu8jvXLd0freXrjI0aaAv7nCxSU2livDlm css0zfaLRNasnQe/2uD3cJ3obiBcVZdzaraF7+YasxuQ5CPzxnG7o86gNnnO/GaEMGhr e8CKWbsYaaoMmY2QfI/VtlMBdyvAZxhfmE8SPni5LZZkXzJ0XNB3lzym3h3+AYY56jxc pBjuI9JzYwqTl4/xaGSLGu/cBqwoJUsYdsS4p6NZ7JrazGELDTvMMMoTuV3m+XyIh5Qs zHp8j5eWdjSUEGb51TT8fMWoWInKpHxIsYq0Upf5VyQt2t+mxW6PzPDidJqd5H56B+Cz ZCSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=nFIhjWAJVh6ZFlc+OBY5UeqjJhMERGEWjl6aLS1HzUs=; b=xDioOXiopN9GSwYEyMNnHLhOaxOu/3acnfMFfLtSNanb+IQYrKabaZ5skl++pyvh+H khMyjmmdc25PXfiNFE6gt7UDbbohihA3ZBX/8fUkdz9sBBWiLsU3FdIs+mMhGXB9Arqg 8c6PEKb3lzo+fNRvHxbZvCSpZvZZSLZEmmOPh3Gw0gJdfHKZZryLCi4MJeRDAPMEgxHg I8g13XkWp79mCf+mM4u8riiG+rxUidyZCVWRP9epCcbihsIhVZl6fmAtgbFBJnXsYHa5 RwEgUIFZN2xCajljTABZ+Y5al4SnjNVQ8EF7etXd2ZNO4/f0heU/kcu/B5q7qXPEDoQf tlWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=zDJPicaM; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="o6XK3V/g"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id rj8si2099533pjb.29.2022.02.17.16.15.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 16:15:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=zDJPicaM; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="o6XK3V/g"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B7F163574BF; Thu, 17 Feb 2022 15:40:10 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245649AbiBQUDr (ORCPT + 99 others); Thu, 17 Feb 2022 15:03:47 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:56426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237756AbiBQUDn (ORCPT ); Thu, 17 Feb 2022 15:03:43 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A12CB46670; Thu, 17 Feb 2022 12:03:27 -0800 (PST) Date: Thu, 17 Feb 2022 20:03:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1645128205; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nFIhjWAJVh6ZFlc+OBY5UeqjJhMERGEWjl6aLS1HzUs=; b=zDJPicaMV+JKic2iwEp2M1cgQbo0g1FmQQst2uzUi7jQNkwFKdX4LDIUqq35ti1J5IxesB pBbwzKhYAuyKfrlcZSVoQ8ogl6OjjvrO+pMCYjIRUL8cP2nfBvGtd/wXK4bSa/KxD+7+4P 9/XrU0b7FchAcHgddklfZRUepMyxTui2F4tXv92aWoIUH+vN9EjU1wXHM6ORSDARxbE3gC 0V8FCAgNJv2qb1XmUPG0TeoeGXov9HuSrLO3PU7ybpXaiRY8jAdkmewVLkwFBQkj+GcrsM +9rXBj60lyK/el7cwW+S6jnNl+KeUerGJNfL20vd4NvwYZFFpLe2bZGyECONYA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1645128205; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nFIhjWAJVh6ZFlc+OBY5UeqjJhMERGEWjl6aLS1HzUs=; b=o6XK3V/gSV+s1LmmYMS2znaGDOEOxlZvVugkpQDIzuxBILvKZxuCB8EyDxhIvoxoRn3Y9K FGqac2eiFNF0uAAA== From: "tip-bot2 for Muhammad Usama Anjum" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/sgx] selftests/x86: Add validity check and allow field splitting Cc: "kernelci.org bot" , Muhammad Usama Anjum , Dave Hansen , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220214184109.3739179-2-usama.anjum@collabora.com> References: <20220214184109.3739179-2-usama.anjum@collabora.com> MIME-Version: 1.0 Message-ID: <164512820484.16921.11445103129239646952.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/sgx branch of tip: Commit-ID: b06e15ebd5bfb670f93c7f11a29b8299c1178bc6 Gitweb: https://git.kernel.org/tip/b06e15ebd5bfb670f93c7f11a29b8299c1178bc6 Author: Muhammad Usama Anjum AuthorDate: Mon, 14 Feb 2022 23:41:08 +05:00 Committer: Dave Hansen CommitterDate: Thu, 17 Feb 2022 11:55:17 -08:00 selftests/x86: Add validity check and allow field splitting Add check to test if CC has a string. CC can have multiple sub-strings like "ccache gcc". Erorr pops up if it is treated as single string and double quotes are used around it. This can be fixed by removing the quotes and not treating CC as a single string. Fixes: e9886ace222e ("selftests, x86: Rework x86 target architecture detection") Reported-by: "kernelci.org bot" Signed-off-by: Muhammad Usama Anjum Signed-off-by: Dave Hansen Link: https://lkml.kernel.org/r/20220214184109.3739179-2-usama.anjum@collabora.com --- tools/testing/selftests/x86/check_cc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/x86/check_cc.sh b/tools/testing/selftests/x86/check_cc.sh index 3e2089c..8c669c0 100755 --- a/tools/testing/selftests/x86/check_cc.sh +++ b/tools/testing/selftests/x86/check_cc.sh @@ -7,7 +7,7 @@ CC="$1" TESTPROG="$2" shift 2 -if "$CC" -o /dev/null "$TESTPROG" -O0 "$@" 2>/dev/null; then +if [ -n "$CC" ] && $CC -o /dev/null "$TESTPROG" -O0 "$@" 2>/dev/null; then echo 1 else echo 0