Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp751669lql; Mon, 11 Mar 2024 17:10:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW4rNYw0YwvUHzHsgY/PDbriFV9DIXn/SxuE9zD5MH6v1T+QIMm5pudC0YmBPVX+aTm1vxzF9jDPiema0m6Y6fkklMYtVKtY1VOqQ0WkA== X-Google-Smtp-Source: AGHT+IEb+2JbOwCBvwzZehOMVSKAmMn3Tbk7xdbm8r0EA65v/z2n+xifP8MWGU2yEwA6s0L5xwlZ X-Received: by 2002:a17:906:e0f:b0:a45:da1:9364 with SMTP id l15-20020a1709060e0f00b00a450da19364mr4686135eji.19.1710202231592; Mon, 11 Mar 2024 17:10:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710202231; cv=pass; d=google.com; s=arc-20160816; b=czrHrg1/imEcdEkjgCSgDNBtZQB26iRBjv2WyMgJesKsTz5yLcWkMrVG2xC0MP3V3+ 0d5wbQ3xpDE0TGH91fFNuyxTSpRRaTPa1AOnE6tHv7b4i+E/FgO/6iaUcck/1FMEP+HI F+Z9mGQbdhZjnESPJY8TzYRQ4Iq5CM6Wsnl8Q+vT+N4+6dCJaLv0brPLDHEShjV8r1oY mDVQQF+bKKurc7Q1ifm1zmh+y9sQ47I0GjMQ8mP7qUT0NzGvUhkwd+fGHlHFPxmJG/qD WHP92Dkyn/Go2uibfZlq7KR592IBLVlPUrt78qvmwzMAXnQ5OcVgok7P7M3IWF3v3d5h l04Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id:dkim-signature; bh=0odgZuQYo4J5GCfvqb0K10VaAnFE3fwl17zUZdG1eWE=; fh=4bvqIfbdElwChlHk5J5dHKbkuqo5PtZFcYzm0d3N9Sw=; b=GpTpwYXiw6R7+La5o6sLlIm4fDGTcec646rXojvghp9z7l5fehFT8dY5ZLgfNpP3aS uirt4l1RDEDrNcYFS4qRQEmbiZTybfpXvSKvzMVOb32NnunwYiItm/O5Qrm/Co/ZuULg y4mD3YN8Zkt0SfZh0KKEGdTsIDzlUT7iWifDytc95Z7qn75pkzZ11HjJgcV140hTWIt5 caKqZCmzDr/etws0h6iq8pXaweNPjmRvhA8omb5hkwIdOM2OKcuD7pOXgUP9v09bveIk HHbWcQlPcl++NY+edRGByC8zsjBXJ15PlYSfqwo87/hQZoHDUlehkoc5F3K55vm8phxq aqiQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QptglPgs; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-99691-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99691-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x14-20020a1709065ace00b00a3d00ac3c3fsi2924660ejs.1010.2024.03.11.17.10.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 17:10:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99691-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QptglPgs; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-99691-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99691-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 543A51F223BB for ; Tue, 12 Mar 2024 00:10:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 873BE37C; Tue, 12 Mar 2024 00:10:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="QptglPgs" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2FDA7A928; Tue, 12 Mar 2024 00:10:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710202223; cv=none; b=IBDoI+VdR+lGP1jS4Crc+YTSD1fjx8Tpzf1VFvYTD8VTHH3IYJEMflZABVcBrfviagtS4sUqsD84GgSsBY4ziGd1sWsY8SvE6hNV78HYzK7pX7sFqUHfuaJJPgQeRJ4GzahQ+lbAaHPZl+1p5uLYLMctqKVkx1uPf1QFoJobke4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710202223; c=relaxed/simple; bh=pPkeMy7fBltTdNYOZZoPxSZoY5kmxQRciVH9Q0F3/DI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=gmIxdLMQkuOJwWZ0kOefcAamkApeji6EOy52mNdpc9P3sG6iuqOOUYttL17fB1bNpCHrskFHqidBsNYBfmQQIHZYT/nFFML8Br0HgKc7LwQ2D3c4Fwi2nCSiAJmsQS0W6P2q0YAJKwWCGZQOcKYXzyEy/i7gEjYw2l2V4dcsz+U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=QptglPgs; arc=none smtp.client-ip=192.198.163.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710202222; x=1741738222; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=pPkeMy7fBltTdNYOZZoPxSZoY5kmxQRciVH9Q0F3/DI=; b=QptglPgsyZ4kpZ4sDJYpjFv2H0Kgnl6yyYGJeol1LIoiwGPRL2FYSOKZ lplEt5Zqs4GZSKzCYtqptuIW8NMm4ekIrbxm0c9JDayNvgYmvz+27B+SM DagBbuMBet1dzLKkGMbh+0PaO7XonTRzFsx9uKZJRE5bOHF3DxU6MKBtg hOqKrIPBdjF13ahC+rSFmDkgVvrevAo7nfldNINuDFVDI8cyLByQOtf19 46036+tSEhulFVX8TG1bAPHZwz3uFP2KweBGdTDD1oYKM7qssXe4zBM3k xkDM/ZmOgo2oPm53Y4twvVyopKVP0E/jXeLm9r8CSsMwtQ4snP4lgujGs Q==; X-IronPort-AV: E=McAfee;i="6600,9927,11010"; a="22409287" X-IronPort-AV: E=Sophos;i="6.07,117,1708416000"; d="scan'208";a="22409287" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2024 17:10:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,117,1708416000"; d="scan'208";a="48797633" Received: from binbinwu-mobl.ccr.corp.intel.com (HELO [10.125.242.247]) ([10.125.242.247]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2024 17:10:17 -0700 Message-ID: Date: Tue, 12 Mar 2024 08:10:14 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] selftests: x86: skip the tests if prerequisites aren't fulfilled To: Muhammad Usama Anjum Cc: Shuah Khan , "Chang S. Bae" , Dave Hansen , "Kirill A. Shutemov" , "Peter Zijlstra (Intel)" , Weihong Zhang , angquan yu , kernel@collabora.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240307183730.2858264-1-usama.anjum@collabora.com> From: Binbin Wu In-Reply-To: <20240307183730.2858264-1-usama.anjum@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/8/2024 2:37 AM, Muhammad Usama Anjum wrote: > diff --git a/tools/testing/selftests/x86/lam.c b/tools/testing/selftests/x86/lam.c > index 215b8150b7cca..c0f016f45ee17 100644 > --- a/tools/testing/selftests/x86/lam.c > +++ b/tools/testing/selftests/x86/lam.c > @@ -1183,7 +1183,7 @@ int main(int argc, char **argv) > > if (!cpu_has_lam()) { > ksft_print_msg("Unsupported LAM feature!\n"); > - return -1; > + return KSFT_SKIP; > } > > while ((c = getopt(argc, argv, "ht:")) != -1) { Looks good to me. Reviewed-by: Binbin Wu