From patchwork Wed Jul 10 02:16:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhu Jun X-Patchwork-Id: 13728791 Received: from cmccmta3.chinamobile.com (cmccmta6.chinamobile.com [111.22.67.139]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5929763D5; Wed, 10 Jul 2024 02:16:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=111.22.67.139 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720577777; cv=none; b=VTwKYO8KqKIsEKXkUsPyskC5o0Wm8stjGjNK43r3eAine9DFce1xA0mvoDnPRwEwfROQg+f1PX+EShuBZv67DA7LT70ueVBO7L1vrAZrCs7KY3qnwFQqczQUnv8ebUqwZVQNH4Inp8RxXJgOl9hMqutC+9z7VXde72X+Iyb6KyA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720577777; c=relaxed/simple; bh=DOGW/SuP52Dx9q39n8AavwewDZ9sDGiFEV4TVBlfYrc=; h=From:To:Cc:Subject:Date:Message-Id; b=aZMTMV0dboH0CSLXD7+gAuDYEacwVbPU2rlgmbA2nWK+fmou/+JBR5LDuIgjxXRfT03yD88HBMLtyVc2mpRbn6U8YsuaacyoKhZXoLdQL2r0YQZ7EKLKsShzWhxhlYmPZh3MwG24aPMdS14pCR1L2lEf43jSF1XjHbOg6W6wrFU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; arc=none smtp.client-ip=111.22.67.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app09-12009 (RichMail) with SMTP id 2ee9668deee775f-2d75f; Wed, 10 Jul 2024 10:16:07 +0800 (CST) X-RM-TRANSID: 2ee9668deee775f-2d75f X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from ubuntu.localdomain (unknown[10.54.5.255]) by rmsmtp-syy-appsvr01-12001 (RichMail) with SMTP id 2ee1668deee6a5a-d35b6; Wed, 10 Jul 2024 10:16:07 +0800 (CST) X-RM-TRANSID: 2ee1668deee6a5a-d35b6 From: Zhu Jun To: shuah@kernel.org Cc: zhujun2@cmss.chinamobile.com, angquan21@gmail.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] selftests/breakpoints:Add return value in main function Date: Tue, 9 Jul 2024 19:16:05 -0700 Message-Id: <20240710021605.2900-1-zhujun2@cmss.chinamobile.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Main function return value is int type, so add return value in the end that this problem was discovered by reading the code Signed-off-by: Zhu Jun --- Changes in v2: - modify commit info tools/testing/selftests/breakpoints/step_after_suspend_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/breakpoints/step_after_suspend_test.c b/tools/testing/selftests/breakpoints/step_after_suspend_test.c index dfec31fb9b30..b473131fce3e 100644 --- a/tools/testing/selftests/breakpoints/step_after_suspend_test.c +++ b/tools/testing/selftests/breakpoints/step_after_suspend_test.c @@ -166,7 +166,7 @@ int main(int argc, char **argv) bool succeeded = true; unsigned int tests = 0; cpu_set_t available_cpus; - int err; + int err = 0; int cpu; ksft_print_header(); @@ -222,4 +222,6 @@ int main(int argc, char **argv) ksft_exit_pass(); else ksft_exit_fail(); + + return err; }