Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3139341pxb; Thu, 10 Feb 2022 13:16:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwK/V9B6bfcZhrKqHSKPEP53SYOSrrjQhOVecfHe2XqY5UWbvoANQ4Lrsdilr0YZwSankZI X-Received: by 2002:aa7:d442:: with SMTP id q2mr10473053edr.1.1644527819172; Thu, 10 Feb 2022 13:16:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644527819; cv=none; d=google.com; s=arc-20160816; b=NQSTw1aKFAjgV5xPY0V4i7+5uCaVcsv8SIHccembu/h3B4nJPLHjWGjP+ezwJIjCyN +RhcW2SuhtFqSPeQEcrxZFVEr/T53CjHWNSfnS+BUdX6wVI3uTTcrbdoQFiKY7hVqfSF lgHGxe3TTUmc8rO1X21eIpLSo1iPjRNZHg3dNHY0x5bsk3mKGYUGsWcoNL37BYq9ZezB qvmDuKELqT/k85Ep7YKCVYKflEvmJNyW6faP3lUcAEGFFOJqaXbmdD1MLaXDiS/XIx4t MK+zoOdXUcsdvbUUa0mhXN7s9mWsUjObHK2GA4Us2TyoKK4kdYyr2s4UNwEcqej/iP5E jhng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=F9qniLIYcSNNaXLHE81e7mp2h4IikxqVN02UR2NIgyw=; b=iqJl+ycjmU+tHgyxQ37iuQOVXrCAsDC1eTLcvIP5eEyIPIoJvSpCjprBqmETo39+9S zb/Izkg7GcO46//uu/1wNb/VC6F+KjuaisZL9Zljwm0RTXUpUSeQd1aMlcHZJJxr8c8S YiDT9YLyQW6erKB0RpvE3rMqOQZ+I8o9JyyQLpXFmDg6ecpwHKw6x3AiVisDPC08pLer p5aUvSG2EIbyTLrKQCuK54YRx2tcqVZZDc1DXunH1I+XsPSXpCI3Xq2fqIXVsXnNLzHk IhSqYZb6P/hzaF4gBW8A9N2031gaauP8HMVLBXgSKKJ+3WPYDcE823nMKgQoBqFuF/Gp vNvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=O3ZElN5O; 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 zh8si4781607ejb.246.2022.02.10.13.16.34; Thu, 10 Feb 2022 13:16:59 -0800 (PST) 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=google header.b=O3ZElN5O; 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 S1344297AbiBJUvz (ORCPT + 99 others); Thu, 10 Feb 2022 15:51:55 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:60064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244417AbiBJUvy (ORCPT ); Thu, 10 Feb 2022 15:51:54 -0500 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB98E109E for ; Thu, 10 Feb 2022 12:51:53 -0800 (PST) Received: by mail-io1-xd2e.google.com with SMTP id m185so8953894iof.10 for ; Thu, 10 Feb 2022 12:51:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=F9qniLIYcSNNaXLHE81e7mp2h4IikxqVN02UR2NIgyw=; b=O3ZElN5OWacZz6PGS67NsgFT4wvqisX8gaXrN1xZO2NsTd4P44FsUcBRjYk80v6D+S f9Q972fiMjiprSwd3i0aQh1nUFPE/Go+MhjEuFl5aDDpl7l/WuTiVl3cFzfuB1m6clVD MsQZ1f8sPwFKhkGsfC3r8eGrAulY69spphNDg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=F9qniLIYcSNNaXLHE81e7mp2h4IikxqVN02UR2NIgyw=; b=dmcajTvZZP+ebqtBPpgnNkwz7QLvodWwjF0Eli72z2txJxfhBLUp7TTjOR6EW+3j76 QcYqG45S0pPXUtW8Cbcmh+2fW/jkOG2fuMTuEnK9hfZ7JTatKgETOHvKtqB2UlOpLwNQ Qyjimyo0wTpdzwxZMBG/aCBqgH5XeWCzsQMZXm0IslGsMlummKcJgcDGkIdvnq/avdr+ FxzaX/A2ciSEAi5277hb6BhJZKlOeoHjBNPkowyR8wG+4YzMIAPwWFCiMAKPmeAeHTiL szanhevOHHvpgNaUst2vqXOFGJ0xfs+LyKCT2kI3H31+hqDTTfWgQBPoScIHmRBdsOjA N61g== X-Gm-Message-State: AOAM530PJ03P0fsqSnKnaet42wcOVaVFVm76bTNeoDN49lLVUu8EGJmy SnJhY3vlAxqnD37pQInB8fXoFQ== X-Received: by 2002:a5d:9d1a:: with SMTP id j26mr4716221ioj.20.1644526313011; Thu, 10 Feb 2022 12:51:53 -0800 (PST) Received: from [192.168.1.128] ([71.205.29.0]) by smtp.gmail.com with ESMTPSA id ay35sm12104735iob.3.2022.02.10.12.51.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Feb 2022 12:51:52 -0800 (PST) Subject: Re: [PATCH 1/2] selftests: x86: allow expansion of $(CC) To: Muhammad Usama Anjum , Jarkko Sakkinen , Dave Hansen , Shuah Khan , Andy Lutomirski , Borislav Petkov , Jethro Beekman , "open list:INTEL SGX" , "open list:KERNEL SELFTEST FRAMEWORK" , open list , Shuah Khan Cc: kernel@collabora.com, kernelci@groups.io, "kernelci.org bot" References: <20220210190642.1477814-1-usama.anjum@collabora.com> <20220210190642.1477814-2-usama.anjum@collabora.com> From: Shuah Khan Message-ID: Date: Thu, 10 Feb 2022 13:51:51 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20220210190642.1477814-2-usama.anjum@collabora.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 2/10/22 12:06 PM, Muhammad Usama Anjum wrote: > CC can have multiple sub-strings like "ccache gcc". Erorr pops up if > it is treated as single string and double quote are used around it. > This can be fixed by removing the quotes and not treating CC a single > string. > > Fixes: e9886ace222e ("selftests, x86: Rework x86 target architecture detection") > Reported-by: "kernelci.org bot" > Signed-off-by: Muhammad Usama Anjum > --- > 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 3e2089c8cf549..aff2c15018b53 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 $CC -o /dev/null "$TESTPROG" -O0 "$@" 2>/dev/null; then > echo 1 > else > echo 0 > The intent is testing if $CC is set. Does this change work when $CC is not set? thanks, -- Shuah