Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3523320pxb; Tue, 19 Apr 2022 04:40:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCNOWZvGbOrwNzVqMEsaJy7xxQvm4TxikQnZ60oI8xwPvGHie/ETZQXteGV6gaAZnt8Y3J X-Received: by 2002:a17:906:6a16:b0:6e8:a894:30f0 with SMTP id qw22-20020a1709066a1600b006e8a89430f0mr13288269ejc.222.1650368412443; Tue, 19 Apr 2022 04:40:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650368412; cv=none; d=google.com; s=arc-20160816; b=qgrDHEK8+YQDY3f6P5mh8f/7f9od+zmtDGQqmX4dMPOamw6h+WD6ydgET/HoweOZiJ fCBMTV+Vv8CY0DM42Wp6AWbeKaPkm1df9sMOXrycVhtrUEaPNzGSrSV/zfp186bpFS9G C8RN6S6AttprIS3DV/rugNGyEJzG7cVcsPW73dCZ2JQPryFOzaO70vigJM7s924G4vz4 uabXYxoZhzGFAroZ7mCxH52lNif+VYfCMz7quCVW0QZlgYSezxszAgG9j8EdxMaQ/bXv lGjGe8puwIOhK81nG4WOxvdjvqAFIvgj+FfzaHRVnNaHk+B6ByeYht4astIwE29UhBVH aRuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=NQNH6pmrh/QuguQcGPIYA8zYTpDu9RnorSv7+PMULes=; b=Bq0EVQkN/5J6YmXkERu7Mehaf7it4jzfLHX3f6YlATG1wLi7UmawtWEFixJESE03TK CpaCxNmEtXit3rnpqJCIb7ce49FweAp4BCR0eP10CFdcNNje6vAuvVzezp4QchFXmS0W ezsxXPpu3PSnuVpnmlVdRrfU9hGH4WP/91RBufno0i1tcVIaE7mrFN458WjuRUPorYBK jRsNILHYjr7paHDlE/Icg2dJXs3HE5X1aO8dSnAiIw5ch6/iQ/lT3oof/AjvbiDRjdGR UWyu5ek1keWcc6vONdB7TviR698ZrJ1FFjGYqoEE2YCaZZWiH7PNWVVcbRTW6L3CSE9D fCig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fPUW7bKQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dz9-20020a0564021d4900b00423dc7eb4dasi5751919edb.263.2022.04.19.04.39.47; Tue, 19 Apr 2022 04:40:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fPUW7bKQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242592AbiDRNhR (ORCPT + 99 others); Mon, 18 Apr 2022 09:37:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243911AbiDRNKf (ORCPT ); Mon, 18 Apr 2022 09:10:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B39C38BCB; Mon, 18 Apr 2022 05:49:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0CC0161267; Mon, 18 Apr 2022 12:49:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0F89C385A7; Mon, 18 Apr 2022 12:49:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650286185; bh=3SRV4St52/FhRN6i2PSM1NQl46JAcRfsEjy14dO9vks=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fPUW7bKQJRyUNrU08vcvHC/TRojFwexokC7QpuOPJQcMBbvmBWBN2ydyezFjsG6nJ 7DO1q5bldiJlUfCz45iIEutLzmT2MVoHUrffHCmp8yC+JeLr5hRkgvC7mk4kP1A6Ow wLg7K+a4KtKmdhThpUgCYficVu7XzXOxt/H18nEo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "kernelci.org bot" , Muhammad Usama Anjum , Dave Hansen , Sasha Levin Subject: [PATCH 4.14 056/284] selftests/x86: Add validity check and allow field splitting Date: Mon, 18 Apr 2022 14:10:37 +0200 Message-Id: <20220418121212.287228499@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121210.689577360@linuxfoundation.org> References: <20220418121210.689577360@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Muhammad Usama Anjum [ Upstream commit b06e15ebd5bfb670f93c7f11a29b8299c1178bc6 ] 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 Signed-off-by: Sasha Levin --- 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 172d3293fb7b..356689c56397 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 -- 2.34.1