Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp375566lql; Mon, 11 Mar 2024 05:39:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUSyYz8QQchaZN7e80CCyu/yi2OQ8lx4XNi70e1So5ir1mNHhjX1eOfiDX3cMgBq4fiCNmcXCTuOVomruXYOXDZe9TKmZw4CxkDyB7T5g== X-Google-Smtp-Source: AGHT+IGtWy8nDmi2CHX9AO362sZb8c00t9SmHOn8MWbWxSVDj675o357jZlRRTJeQSSacQHeRoCf X-Received: by 2002:a05:6a00:238c:b0:6e3:b1b3:139f with SMTP id f12-20020a056a00238c00b006e3b1b3139fmr8000419pfc.17.1710160793748; Mon, 11 Mar 2024 05:39:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710160793; cv=pass; d=google.com; s=arc-20160816; b=nHdyyJfYn7u3S6Hl/DxEf7bwp99db3y9TAxcrGiSrzyPLRqdy+3gqHzi+B8+OXuSXC wHUjGDzxJZEMzuOoDVCz37AUxlsdaL+dU6UErqhA5MudVZsX9KRNnPbrGhXspcOZNi+Z jdKKJ+WgmRbgJ3TW0f0t1qLTNdYXWqV8AZu4CIo4q53zOuSRdVJUbrJdpmUi3PMT+EE8 SzGsoMb5fl97wWSUL5+1U8YKetocfnyhAjqnkVw6DtFwwy7CB2CkQ0GQS/gMSNKdMqIf rILhLH38W2XHfmnYu9EKbbI1iK76jMCMeOaLV4B5R/UTWGN4VqjEtWp/TBspa+x7WQQ8 cpVQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fGa7QNSgQKcw8EJ+D0IM0T5NeBDf7y2vUg4OcGS+tYQ=; fh=lDa3IKdmw5vkezKMidPnJacfbnZ+tLB9AQ1RLMtRRQg=; b=KaDub6ZI5k6Il3iONX/P/mIG9yrFjP5M1mcSCPigerscWfQ4WpW1rgpYsJNZq2GPLk Zb/CPT4EZnrpROfTT/tcryUbaWW025cAyTt3tDs9jVRXzfvsKTRr9FWHT5VMo/49xEtx izLYiN9qek7pmFyTHFXes8L4BK1OXCkFWxTPLqQq8RErRSmzlvKbrYa70NYwJK6A3aIt ZJWnzW1LHE6IjAPOTb4A00jnKu2ndCPtm5bJoLwgH2/04uAur9M1WSFZdN0diyazSU9Z d6BBARYAdTCxjnA/RMWD/4Qte427xZt9o7e6dB+RMZbazv1n3e5FZbyhMkvd2LX+gWr4 QcIQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=K3ctDCSQ; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-98834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98834-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f19-20020a63f113000000b005dcd296e2bcsi4758668pgi.665.2024.03.11.05.39.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 05:39:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=K3ctDCSQ; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-98834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98834-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 52B5B2832D6 for ; Mon, 11 Mar 2024 12:39:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA75636AE4; Mon, 11 Mar 2024 12:39:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="K3ctDCSQ" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (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 433B122075; Mon, 11 Mar 2024 12:39:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710160787; cv=none; b=LyzgJU7K8YpRWbtNt20n2+ZnO1NXUwI58SVDyizqjkuRBIeqR3Ng5w/L0byC07LYxmzM12cJ7RosH85eXkqlUllAjmJLxC+z2LI3f5Qw9HRR0uCHwxCCNAjyJrrEWox4spEOhSOTWLEPLOE4J9ZYYOgQLoGDAEjG1++aZQ4FAjE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710160787; c=relaxed/simple; bh=Mue2Gxnjnz+y7+UdTMk/8YtlTakb04KMp4OBMQYNzDg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gp/3LzqtP3o6z6cOV1I0WJczRPkvYTFRvTjH2eKblmW3+/zhqBtt+ag3K/lfbiEBipxq9vHdP/076IJY8egzbrCuiPkEd+RTDCkWF4tAnmINekP2/O+UMuyx1RfVo3V2cbEQb7zdAccvnTgqbMIfPj99yD8lzbdj9AAIo2Bs6Cc= 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=K3ctDCSQ; arc=none smtp.client-ip=192.198.163.18 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=1710160785; x=1741696785; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Mue2Gxnjnz+y7+UdTMk/8YtlTakb04KMp4OBMQYNzDg=; b=K3ctDCSQOySKh2R6R0GSMH/ghRMFHoeXjozvWwlEIxLp8nQRnJIi3nUh RvDzQBGI2PmgUhqwJLWAh32fjaeLCkMDM0bN76/WV+swu0U9cqTKX16Ut qZj4L3uzmPYfhVRbSDqtBmShU0aTLicH9WZDxi+9Uaj9ixARhzscL2qz7 B0NWK/toJibNR8tTnH636oaZBwPSIRkBbZNJUGbbtDhv/1RY2DjqGUj3v 7plHpLcpJzZpzFwl2dEx5BaehfJYtZOmKDPkmTOSTVo9aGIih+dBb/wkW lZDQ2AwVRZotYJkByhSkgbuVLnri4Ku1tECJcLk7Chu6aWakZKuIFXlWA w==; X-IronPort-AV: E=McAfee;i="6600,9927,11009"; a="4663042" X-IronPort-AV: E=Sophos;i="6.07,116,1708416000"; d="scan'208";a="4663042" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2024 05:39:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11009"; a="937049752" X-IronPort-AV: E=Sophos;i="6.07,116,1708416000"; d="scan'208";a="937049752" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 11 Mar 2024 05:39:41 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id 5D6FF177; Mon, 11 Mar 2024 14:39:40 +0200 (EET) Date: Mon, 11 Mar 2024 14:39:40 +0200 From: "Kirill A. Shutemov" To: Muhammad Usama Anjum Cc: Shuah Khan , "Chang S. Bae" , Dave Hansen , "Peter Zijlstra (Intel)" , Weihong Zhang , Binbin Wu , angquan yu , kernel@collabora.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] selftests: x86: skip the tests if prerequisites aren't fulfilled Message-ID: References: <20240307183730.2858264-1-usama.anjum@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240307183730.2858264-1-usama.anjum@collabora.com> On Thu, Mar 07, 2024 at 11:37:22PM +0500, 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: Acked-by: Kirill A. Shutemov -- Kiryl Shutsemau / Kirill A. Shutemov