From mboxrd@z Thu Jan 1 00:00:00 1970 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=-20.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=unavailable 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 9F304C433E6 for ; Sun, 28 Mar 2021 02:15:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7036A6199F for ; Sun, 28 Mar 2021 02:15:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231304AbhC1CO5 (ORCPT ); Sat, 27 Mar 2021 22:14:57 -0400 Received: from mga09.intel.com ([134.134.136.24]:54163 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231205AbhC1COM (ORCPT ); Sat, 27 Mar 2021 22:14:12 -0400 IronPort-SDR: ISxH3CT2y/BU7Vfx0xoO6izXLDVcTUgbQVjw/Rha8ifc2vI1dCTWry6L5WtJRvqZPcRzr4BniF bCM0ud9wnGKg== X-IronPort-AV: E=McAfee;i="6000,8403,9936"; a="191451284" X-IronPort-AV: E=Sophos;i="5.81,284,1610438400"; d="scan'208";a="191451284" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2021 19:14:12 -0700 IronPort-SDR: g8qTqyB94+763uJKedYEmz7tTbf1mIIOz9wbMPnXIL2nn9r7c3WMXbKY6GGGPac9Pi45e503S4 fBVXNIIjdUTw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,284,1610438400"; d="scan'208";a="377690247" Received: from lkp-server01.sh.intel.com (HELO 69d8fcc516b7) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 27 Mar 2021 19:14:09 -0700 Received: from kbuild by 69d8fcc516b7 with local (Exim 4.92) (envelope-from ) id 1lQKwK-0003ms-Np; Sun, 28 Mar 2021 02:14:08 +0000 Date: Sun, 28 Mar 2021 10:13:32 +0800 From: kernel test robot To: Konstantin Komarov , linux-fsdevel@vger.kernel.org Cc: kbuild-all@lists.01.org, viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org, pali@kernel.org, dsterba@suse.cz, aaptel@suse.com, willy@infradead.org, rdunlap@infradead.org, joe@perches.com, mark@harmstone.com Subject: [PATCH] fs/ntfs3: fix boolreturn.cocci warnings Message-ID: <20210328021332.GA68309@116d7529a87d> References: <20210327214023.3214923-10-almaz.alexandrovich@paragon-software.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210327214023.3214923-10-almaz.alexandrovich@paragon-software.com> X-Patchwork-Hint: ignore User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: kernel test robot fs/ntfs3/xattr.c:1037:8-9: WARNING: return of 0/1 in function 'ntfs_xattr_user_list' 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 CC: Konstantin Komarov Reported-by: kernel test robot Signed-off-by: kernel test robot --- url: https://github.com/0day-ci/linux/commits/Konstantin-Komarov/NTFS-read-write-driver-GPL-implementation-by-Paragon-Software/20210328-054516 base: 931294922e65a23e1aad6398b9ae02df74044679 xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/ntfs3/xattr.c +++ b/fs/ntfs3/xattr.c @@ -1034,7 +1034,7 @@ out: static bool ntfs_xattr_user_list(struct dentry *dentry) { - return 1; + return true; } static const struct xattr_handler ntfs_xattr_handler = { From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============2896968527284628575==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [PATCH] fs/ntfs3: fix boolreturn.cocci warnings Date: Sun, 28 Mar 2021 10:13:32 +0800 Message-ID: <20210328021332.GA68309@116d7529a87d> In-Reply-To: <20210327214023.3214923-10-almaz.alexandrovich@paragon-software.com> List-Id: --===============2896968527284628575== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot fs/ntfs3/xattr.c:1037:8-9: WARNING: return of 0/1 in function 'ntfs_xattr_u= ser_list' 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 CC: Konstantin Komarov Reported-by: kernel test robot Signed-off-by: kernel test robot --- url: https://github.com/0day-ci/linux/commits/Konstantin-Komarov/NTFS-re= ad-write-driver-GPL-implementation-by-Paragon-Software/20210328-054516 base: 931294922e65a23e1aad6398b9ae02df74044679 xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/ntfs3/xattr.c +++ b/fs/ntfs3/xattr.c @@ -1034,7 +1034,7 @@ out: = static bool ntfs_xattr_user_list(struct dentry *dentry) { - return 1; + return true; } = static const struct xattr_handler ntfs_xattr_handler =3D { --===============2896968527284628575==--