Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp575744lqd; Wed, 24 Apr 2024 10:25:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUxkmsyUb2rM/WnZ5k9O/0VbznIsPo1G2OLGdVmj9MT7kGtlkFQ9eCfgXh7uRr3tAhvq3N8bfnzo6JZBsGpPGRLw7Lg/SVqV0o4aB/i5A== X-Google-Smtp-Source: AGHT+IHldNC9aPobUuyB/+f1MjI8TPXdmGw37TwpJFwKwweIIjoRB71QrP3BWuMJCKAFUYlQBZMO X-Received: by 2002:a2e:91cd:0:b0:2da:aa0:f948 with SMTP id u13-20020a2e91cd000000b002da0aa0f948mr2019302ljg.8.1713979554774; Wed, 24 Apr 2024 10:25:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713979554; cv=pass; d=google.com; s=arc-20160816; b=CCSrVb2sRhwIONC0ejVTqhzwjKpAsq0H9q1CpSAzrEKTIWS73+M2mIXpfjrgRJ5Xo7 NiKyhjmoe5LFNTYjuMrBQxV3Wxq7NsUpLmJ8yIlospA59vUu+RNpQuTF0ykc71s3i3Ar KlNyUnzc21+Bt1w3Qas2G0fl4WVnBf5/ne5h+/HZsYzkyRiXbZT2l1po9b/Ief71yexk jmQ/vsDjqpgP7n2yL1j45gN+ndkwcBJuE6nFYIitbCG3BT3c4H6ITVN9QxvvkPstjz7G phVmH3yYS6VhDNO+Vvckd6yH4DbxqMZGrMC+bFhq2KInvW/w337zVbdHLO5f84GgsZ1c R9jA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=Bf+ZY3T83IAwl4U4FDajEl11fvJxQV1zqV8i1Z7ybFk=; fh=9BphuR8rlxOuuYn9LsIDtrYlmyX1G5N3ZKJNwXhf/Fs=; b=Rvrq1DUZs8JwgAje8EKFSutNUHok+B7yk5enu6rxbGA8VCw8fGxa/8Hahi465q9Foq xUj1bcEVh0safG2qxdHVguiP5uStXvytlyqAAl5HPFMWL8ON8HRQRtgI4Sau+ffq0m4u 07lB0oeTZatP+FBzZTAvPuy5EQHl0oO16iLyF6CHAQnPN//yYFiEIbPjMYIdjM5WPgFC VwtH13jEAGJZeOiHFonMTLrhvdub5mDZf4P1bLCAxbET7XDgONN2ZkIusFmaSeII5Qi5 c7y/WFTQK4geDRX7odAwpHm+1tpOPdrtqjndTzSQVGVvVZxpCRkRooaCJT+DplzvIFeq J8RA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MV21QbgY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-157391-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157391-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t2-20020a508d42000000b00571ba2839c4si8920422edt.130.2024.04.24.10.25.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 10:25:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157391-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MV21QbgY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-157391-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157391-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 554F11F27576 for ; Wed, 24 Apr 2024 17:25:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 416D216DEDF; Wed, 24 Apr 2024 17:24:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MV21QbgY" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5712016DEAF; Wed, 24 Apr 2024 17:24:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713979491; cv=none; b=IhXXExXz0RYKppLErJWkCgXvAmTQPFuFgh7RO+3+XcITI7B+UHCX+5X6z1d7fHbazvOINQ37ND3bWuqa6XKXZlKLltb5xEuv2lzcIMTVsgaXwnsfEgW0efaX5gTQHsTjnrCcJjZV/jqpEyK3aFjPzCq4KFOXYRUB9mTLoBofxLs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713979491; c=relaxed/simple; bh=cbwXLUzf5rGrGLbVqXwjzoKstLI0lqOQorsdMr4ifh8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hcVv9Q20QHW6ls3p1m2JOvNFjEs956xlRTQyWG6d4MwixULWSW8pyAkWFzpiM1p6iN/WoywZVGt2IAc1fxN4drRfDHAmq3Snmf7idCIhJLsNukIBQIrRFSMpShVMtgl8jnwY/VXIcTc5jaR85jdowg0A5W0hsuULECJFiHTFKGE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MV21QbgY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A3EDC3277B; Wed, 24 Apr 2024 17:24:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713979490; bh=cbwXLUzf5rGrGLbVqXwjzoKstLI0lqOQorsdMr4ifh8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=MV21QbgY7CCa9neeHsfXBmUaU96U5y2cNR4uGaqN+fAQTrZth8CH0yiIy3tHlqbn5 EpdoPcmpjff/tRFt+QfUn2/OzmqKPmXpRjqwxUXKZV2fX479Nvl3WmckRGoscSZK+/ PT8Oww/7rSt3UcIO4lT9BNtAdedZa4UIEjRyja3XH4gODxMg5uBvnFk3U2gp1GOJ4B P8a33GWOHsiTsPRPGnDx1YI7v3iRrNozRrB3YN1b68Wl/yCeRrZwQ+rS2Wx2kdUQqA 4xu6kvLVCJc5JSf7Nm1UB61aGTSRJmTcc77QAR1qvHPaoVeW6OVRNyc+Gk+8A9ZHGk kBVITrG4eP/qw== From: Nathan Chancellor Date: Wed, 24 Apr 2024 10:24:09 -0700 Subject: [PATCH v2 06/10] selftests/resctrl: ksft_exit_skip() does not return 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240424-ksft-exit-int-to-void-v2-6-c35f3b8c9ca0@kernel.org> References: <20240424-ksft-exit-int-to-void-v2-0-c35f3b8c9ca0@kernel.org> In-Reply-To: <20240424-ksft-exit-int-to-void-v2-0-c35f3b8c9ca0@kernel.org> To: shuah@kernel.org Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Muhammad Usama Anjum , Thomas Gleixner , Nathan Chancellor , fenghua.yu@intel.com, reinette.chatre@intel.com X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1878; i=nathan@kernel.org; h=from:subject:message-id; bh=cbwXLUzf5rGrGLbVqXwjzoKstLI0lqOQorsdMr4ifh8=; b=owGbwMvMwCUmm602sfCA1DTG02pJDGmaDnHfcs7mOxotzC2KjWT6KNSt9GjeEyGbh09eeWx6s 07jh2FERykLgxgXg6yYIkv1Y9XjhoZzzjLeODUJZg4rE8gQBi5OAZjIbymG/1XCzxwY9meeb+v9 9FpuwuzrOcliy8zkGTbuuyq567pZxRpGht/JNtv2f2BStYq0ve5YdrdpF5vBvMS56zib9S/MezT pKTMA X-Developer-Key: i=nathan@kernel.org; a=openpgp; fpr=2437CB76E544CB6AB3D9DFD399739260CB6CB716 After commit f7d5bcd35d42 ("selftests: kselftest: Mark functions that unconditionally call exit() as __noreturn"), ksft_exit_...() functions are marked as __noreturn, which means the return type should not be 'int' but 'void' because they are not returning anything (and never were since exit() has always been called). To facilitate updating the return type of these functions, remove 'return' before the calls to ksft_exit_skip(), as __noreturn prevents the compiler from warning that a caller of ksft_exit_skip() does not return a value because the program will terminate upon calling these functions. Reviewed-by: Muhammad Usama Anjum Reviewed-by: Thomas Gleixner Signed-off-by: Nathan Chancellor --- Cc: fenghua.yu@intel.com Cc: reinette.chatre@intel.com --- tools/testing/selftests/resctrl/resctrl_tests.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/resctrl/resctrl_tests.c b/tools/testing/selftests/resctrl/resctrl_tests.c index 348d17cb2a84..ecbb7605a981 100644 --- a/tools/testing/selftests/resctrl/resctrl_tests.c +++ b/tools/testing/selftests/resctrl/resctrl_tests.c @@ -247,13 +247,13 @@ int main(int argc, char **argv) * 2. We execute perf commands */ if (geteuid() != 0) - return ksft_exit_skip("Not running as root. Skipping...\n"); + ksft_exit_skip("Not running as root. Skipping...\n"); if (!check_resctrlfs_support()) - return ksft_exit_skip("resctrl FS does not exist. Enable X86_CPU_RESCTRL config option.\n"); + ksft_exit_skip("resctrl FS does not exist. Enable X86_CPU_RESCTRL config option.\n"); if (umount_resctrlfs()) - return ksft_exit_skip("resctrl FS unmount failed.\n"); + ksft_exit_skip("resctrl FS unmount failed.\n"); filter_dmesg(); -- 2.44.0