From patchwork Tue Aug 24 06:51:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lv Ruyi X-Patchwork-Id: 502016 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A386C4338F for ; Tue, 24 Aug 2021 06:51:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D42C561165 for ; Tue, 24 Aug 2021 06:51:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230321AbhHXGwX (ORCPT ); Tue, 24 Aug 2021 02:52:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230192AbhHXGwX (ORCPT ); Tue, 24 Aug 2021 02:52:23 -0400 Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D93F2C061575; Mon, 23 Aug 2021 23:51:39 -0700 (PDT) Received: by mail-qk1-x72d.google.com with SMTP id f22so12362397qkm.5; Mon, 23 Aug 2021 23:51:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9bXzP9AccmLjICuepUxLURd1sxphELP7cg9OUJmQk8k=; b=sgRuXm8UcU+ymjyMMug5mWWNeHnEmI2GY2HvWTxnsUZUtcUl9yu6z9jLR5pLEWiiZX KKHS9SUwx+VKyoinjAXa4DCKaf1ciipyJkntHav5RgPfizFm21CtjVJmYpDC3GHJKnlK e5L5NDIQQTENjWy772S5s475kLsPiDZbjJvTQ6EV15SFtaXcFqZSKlZ4Ls8fmZJ0c4dB 5PgC8VAHcVnx4P/ci080R1AWZQufg16j+gT88Mv5GYnBXKGS5Sf7H2pYrBBcaTZOwn50 aNq8KL8ALAn3/N4MraCFtaqtiaQsvEsyG5EVKHm7PcbGI8+VuV+zv/YamKMCqJ2jUJst +uPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9bXzP9AccmLjICuepUxLURd1sxphELP7cg9OUJmQk8k=; b=KZhv3sMozjUbT8R3irFaDloRAwCK86HC1Sc0C7R8OPM3RRIEFDRXg55mkwgXQfEn2K Qght5bFuGZWfDxcdbTWxnbMiYrS0NFZCEcynVNEz9zBV55nTdExR7c2P5Z3FFam09MHc tAo3k7T42MR/R4IYxHugVOPb5K7FP9gPvHKVpAcW7PWsei8WB3XfROQY/rXAhuRaSlbn Pir1ItpDEDgAwDUlHtAhb+l/spXhsErMGf+/CKQZl98HPV9Vk18u6yxrTXVUGQF6rOwc xgWswThZG5RIFjkTNS/L6miOV8pmktb96/KY9PGqhZtB9pAEse1Y36YUOhR8CHjMF2Lf waMA== X-Gm-Message-State: AOAM532yLtVdIoHGzhJ7LHq7kaDIYniYTDX629FehuT3S0xvjbSK1PAk 9Iim6ke4z0lAVntH88iiTII= X-Google-Smtp-Source: ABdhPJw9WUKIgMexvVMGueH0cdrv8901NgCsdWwQtFs5+rk565HIc85Yif8E7x1MRHC1GJw3cgb0iA== X-Received: by 2002:a05:620a:2a0f:: with SMTP id o15mr25600738qkp.404.1629787898991; Mon, 23 Aug 2021 23:51:38 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id g13sm1856934qkk.110.2021.08.23.23.51.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Aug 2021 23:51:38 -0700 (PDT) From: CGEL X-Google-Original-From: CGEL To: Catalin Marinas Cc: Will Deacon , Shuah Khan , linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Jing Yangyang , Zeal Robot Subject: [PATCH linux-next] tools:signal: fix boolreturn.cocci warnings Date: Mon, 23 Aug 2021 23:51:31 -0700 Message-Id: <20210824065131.60346-1-deng.changcheng@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org From: Jing Yangyang ./tools/testing/selftests/arm64/signal/test_signals_utils.h:112:9-10 WARNING: return of 0/1 in function 'get_current_context' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci Reported-by: Zeal Robot Signed-off-by: Jing Yangyang --- tools/testing/selftests/arm64/signal/test_signals_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/arm64/signal/test_signals_utils.h b/tools/testing/selftests/arm64/signal/test_signals_utils.h index 6772b5c..66122e6 100644 --- a/tools/testing/selftests/arm64/signal/test_signals_utils.h +++ b/tools/testing/selftests/arm64/signal/test_signals_utils.h @@ -109,7 +109,7 @@ static __always_inline bool get_current_context(struct tdescr *td, if (seen_already) { fprintf(stdout, "Unexpected successful sigreturn detected: live_uc is stale !\n"); - return 0; + return false; } seen_already = 1;