Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2841608pxb; Tue, 24 Aug 2021 08:49:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDDuDzUiz3BwBcCGKdqGN3ZLGu93Svjc1VazWtdyFmkOCzIiTthAypHgcd8rzD8W95+pPq X-Received: by 2002:a17:906:7153:: with SMTP id z19mr41375690ejj.343.1629820141145; Tue, 24 Aug 2021 08:49:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629820141; cv=none; d=google.com; s=arc-20160816; b=qk1V3ZJKol4PiZIg7YDNlfUTuGv8eQYLUWyrQc7A4YpJ44XaCZve5Z8XxGx+oVWlBC D/0Irx/Mz9Drf4kI/isczrP8t1Gp1xpz6p7Rssnl9W3CiWoapEnMU11+SROoKkzA5KEY RTfd7/Spt7+qjLHVBrj6CNVdQX9bisV2kgqnDp2Vu6KoDFhzpn/YB/rYQSzD//+VdO5X C6jNb7yjKSOQJg9622ZQ9epQ3INkZfoPc1XESnhXxl9rGqIM5Wxbiv+9iaCUgnc/4gvf kM6lYgxSi3aXRCSo33aOlOIoNpryBgjTatsleNSom/0NNc04pF65UEZ0wwFq0+5FSvlg O7Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YC5E+Rgqy1RaaUGwDGDqAmOcYoteQikJCT6dUHG4aBA=; b=msoZPVtAibS0K7jidEXWXH0syjr0yNEvknDNnEFnQJEvrp1xBvg/BZ8hlkCqS1q8K6 MG0mHMtpXyk2ho4kcMmWwO3xIA5Q1KDSDp3RtwNi0tGcjhLvpHo7luOKSVqsqap/w/Xw D52hq+q8FT6y1tD6dvVaeI/epjiECdEKW1UxgGgKkvqTLnooSKureo9a6u0leh5/AWdY Qua0rwV4/LhG64SXJ7FZbq+FBPP5IOx0nSjGJqUKhHiBVwWrkMgUjCacVtmAFsYumAFr kxqleNBTqOlvQ9YFuiMJ3VW5zMH8f41GLdwnppd/yeqS6H6omtzXaez8n9Jo9TTsdMqx SvSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=AcQqSJOs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id au25si3256885ejc.642.2021.08.24.08.48.34; Tue, 24 Aug 2021 08:49:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=AcQqSJOs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238421AbhHXPpw (ORCPT + 99 others); Tue, 24 Aug 2021 11:45:52 -0400 Received: from mx0a-002e3701.pphosted.com ([148.163.147.86]:35922 "EHLO mx0a-002e3701.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238294AbhHXPpw (ORCPT ); Tue, 24 Aug 2021 11:45:52 -0400 Received: from pps.filterd (m0134420.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 17OFhX63017455; Tue, 24 Aug 2021 15:44:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pps0720; bh=YC5E+Rgqy1RaaUGwDGDqAmOcYoteQikJCT6dUHG4aBA=; b=AcQqSJOsmEIP6D08L+KatGQufIo5SK8wiIILhZJPoCXDsv6r2tBHUMqROU+rCCb/8u4p VjFpee8AQNStTZHRNCx6cQYTdVT6+3/5gz8SqCYOCqRQ68tJ4OsYBj+03dsdvoo6+DeA /xueRu7zjmV3O3PAo0986HaQfRIhcHESreWVPi0Xp/up9pWy8/nGTeaNMiliKQNvdrRE gStQD4GpcXBFZL+f5+ijNxX/zbc4zUwOMjkt+hwh9dKgZjfnReP6IiKU1vsPN9L+lf6R 9gX+iYDjcTwHZZp0XOWY+L79gxz1bt8u9JrffjIMSgOozcmXyABGeKDJkxg5x2ZGje+P jw== Received: from g4t3425.houston.hpe.com (g4t3425.houston.hpe.com [15.241.140.78]) by mx0b-002e3701.pphosted.com with ESMTP id 3amw5p3p39-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Aug 2021 15:44:55 +0000 Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g4t3425.houston.hpe.com (Postfix) with ESMTP id 61DEC92; Tue, 24 Aug 2021 15:44:54 +0000 (UTC) Received: from swahl-home.5wahls.com (unknown [16.99.161.236]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id 68F3F4F; Tue, 24 Aug 2021 15:44:53 +0000 (UTC) Date: Tue, 24 Aug 2021 10:44:53 -0500 From: Steve Wahl To: CGEL Cc: Steve Wahl , Mike Travis , Dimitri Sivanich , Russ Anderson , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org, Jing Yangyang , Zeal Robot Subject: Re: [PATCH linux-next] x86:uv: fix boolreturn.cocci warnings Message-ID: References: <20210824072124.61750-1-deng.changcheng@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210824072124.61750-1-deng.changcheng@zte.com.cn> X-Proofpoint-GUID: GvpNFgRbvWuxSvYKH33KvGqfH6pLghqV X-Proofpoint-ORIG-GUID: GvpNFgRbvWuxSvYKH33KvGqfH6pLghqV X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-08-24_05:2021-08-24,2021-08-24 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 mlxscore=0 suspectscore=0 bulkscore=0 phishscore=0 mlxlogscore=999 spamscore=0 impostorscore=0 clxscore=1011 lowpriorityscore=0 priorityscore=1501 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108240104 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewed-by: Steve Wahl On Tue, Aug 24, 2021 at 12:21:24AM -0700, CGEL wrote: > From: Jing Yangyang > > ./arch/x86/include/asm/uv/uv.h:36:53-54:WARNING:return of 0/1 in > function 'is_early_uv_system' 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 > --- > arch/x86/include/asm/uv/uv.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/include/asm/uv/uv.h b/arch/x86/include/asm/uv/uv.h > index 648eb23..9395925 100644 > --- a/arch/x86/include/asm/uv/uv.h > +++ b/arch/x86/include/asm/uv/uv.h > @@ -33,7 +33,7 @@ static inline bool is_early_uv_system(void) > #else /* !X86_UV */ > > static inline enum uv_system_type get_uv_system_type(void) { return UV_NONE; } > -static inline bool is_early_uv_system(void) { return 0; } > +static inline bool is_early_uv_system(void) { return false; } > static inline int is_uv_system(void) { return 0; } > static inline int is_uv_hubbed(int uv) { return 0; } > static inline void uv_cpu_init(void) { } > -- > 1.8.3.1 > > -- Steve Wahl, Hewlett Packard Enterprise