Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6080134pxb; Mon, 14 Feb 2022 14:58:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYauFhY8p3TRhpNUIR+uWMzP9bDIVlzhJ7/MzWBf+5fWneSCCcCf+y2oQHypCj+YpDQx69 X-Received: by 2002:aa7:dd04:: with SMTP id i4mr1109892edv.313.1644879518372; Mon, 14 Feb 2022 14:58:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644879518; cv=none; d=google.com; s=arc-20160816; b=c0yizmXEKQBtJH6T2qVAU/hPBIctFvieEN9K9xzoB+HTuculwnU1lftxN3H/lwJK5V Ms+cY4d2bRXdbSOLI/moGtsBXf0JvDk8f7lx5YIXMWmdAyzjVPFWg0DtQ4hOjYNOnBbu syu98b8yjbFm0VU03rsD3yaHxLKCbr89cXBcj8wte+DkIwCl6H7bW/smQ4irTLkIY58V pQD17sHeAcP5CvSUUxY9u97XU72hv9NZZEjQytK8EuBv0UpgoAd5mVeVx5Ji+Ky+hUdf rhhmM2ezV7R3qsobHZ0o5Swo04paf5etYdEy6rJ+CtAPbh3rTvnnGSxGnUteIHSfVzgj uuIw== 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=04Ox5ixc4MPOE8Kua318ZsUJMu3rT8ky9xRJXJOyxF0=; b=V7hqGMUpSjSAZYAwI1m+Hh61kOa2QI/txHwsscjSHsl0JwvA4ApVAAq1d4rtydtagg Hfqc17OtHF4aCOspyANczH48nWDzKYfEwNZTE6o0W2WIq+XYwrHlT3pVSScwPzCWfMmU GxnUeRjZWFCABFvpQ/K5lQuLYMpSYuv8u7v5tnf73K/Ti4RitAIjqjU0AGsIp6Igi3S2 0YkztvODgDrKi52yjOemsHlyEeIe3mvHoH1uwg3f7S8xn1DMKQp8g9LErjiphcyPh6fZ PMZ1lFrIHEcZKd+dtUczoO6F+CdbIfC4Yz9dYphcct0nES1cHZl+sy1P8ocPYvddx/KM P7Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=aA8xCND2; 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 h3si20358751ejo.614.2022.02.14.14.58.15; Mon, 14 Feb 2022 14:58:38 -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=aA8xCND2; 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 S229740AbiBNVAF (ORCPT + 99 others); Mon, 14 Feb 2022 16:00:05 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:60012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229943AbiBNVAA (ORCPT ); Mon, 14 Feb 2022 16:00:00 -0500 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CD8715B982 for ; Mon, 14 Feb 2022 12:59:44 -0800 (PST) Received: by mail-io1-xd34.google.com with SMTP id y84so21568578iof.0 for ; Mon, 14 Feb 2022 12:59:44 -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=04Ox5ixc4MPOE8Kua318ZsUJMu3rT8ky9xRJXJOyxF0=; b=aA8xCND2MGx+5OMZd1UPNNR3bzouVZeF3Pp/V3gAI6Y6VO3YKteYVgspznUv2NetBF Tc+o47xNGteAJPsCxg6xm0s7PLkDEAwdTocbmUrOX9vXxnJLf0YnFX9foX4HCjROGp2r J+OtRald/QoJMCAX6q501eL6WJoD9BwpZGyWM= 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=04Ox5ixc4MPOE8Kua318ZsUJMu3rT8ky9xRJXJOyxF0=; b=OQQRa+NIvQUckf1xPTdbcxybdEDvWTLvJHLtRiScIH+5mBT+td2MxrU6QV+/BQMgMt iUw0XmC6PIpVVtLXSrWp3MLLlyccJO4H4kmtQcsJs5g6N3i932elyylBQuSQPYCzM5Fg Doa9XDC+aKxs5hiSe9zQCckV5BnG0x6nvz1KRadaam3mTyiQOvOE5ONOttLe9v2eP+rF fS6rfWLN2eHtfVBTecgOI3XjOyHB7hxuZQG53/NuRdnrP2A7R+CZsMdDQKdsZev3vXQH BOwXeTrN72iI1fz8TaLpaHiWny9dChZxsbF14gBYbk22m6uRTJKJ+lYf0r0b8pvAILA+ f29A== X-Gm-Message-State: AOAM533nJQtlrN27AMjO6Fb08VbAVFPR7u36a90WPanmaNF9ASJAqQCJ jLYCdR5Fsyig9+U53kM1KsIiAQ== X-Received: by 2002:a05:6638:190a:: with SMTP id p10mr477555jal.313.1644872383619; Mon, 14 Feb 2022 12:59:43 -0800 (PST) Received: from [192.168.1.128] ([71.205.29.0]) by smtp.gmail.com with ESMTPSA id w10sm21193066iow.44.2022.02.14.12.59.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Feb 2022 12:59:43 -0800 (PST) Subject: Re: [PATCH V2 1/2] selftests: x86: add validity check and allow field splitting To: Muhammad Usama Anjum , Jarkko Sakkinen , Dave Hansen , Shuah Khan , Andy Lutomirski , Jethro Beekman , Borislav Petkov , "open list:INTEL SGX" , "open list:KERNEL SELFTEST FRAMEWORK" , open list , David.Laight@ACULAB.COM Cc: kernel@collabora.com, kernelci@groups.io, "kernelci.org bot" , Shuah Khan References: <20220214184109.3739179-1-usama.anjum@collabora.com> <20220214184109.3739179-2-usama.anjum@collabora.com> From: Shuah Khan Message-ID: <8f62537f-e191-1d60-530a-9eb9c31b0511@linuxfoundation.org> Date: Mon, 14 Feb 2022 13:59:42 -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: <20220214184109.3739179-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.2 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/14/22 11:41 AM, Muhammad Usama Anjum wrote: > 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 > --- > Changes in V2: > Update if condition to check if CC has a string > --- > 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..8c669c0d662ee 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 > Looks good to me. Reviewed-by: Shuah Khan thanks, -- Shuah