Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2509862pxb; Tue, 24 Aug 2021 00:23:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDghS9b4oOzpgqqeVzzbBuJjH5ak9E9cS5rwy5NIwJ8qA0ifR0Xwf1/JDym5f9myjNC7GP X-Received: by 2002:a17:906:7847:: with SMTP id p7mr31901031ejm.335.1629789792154; Tue, 24 Aug 2021 00:23:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629789792; cv=none; d=google.com; s=arc-20160816; b=ae3i5jYQEOcvPwySYNPbwSK5M+7v/0TQvL6a93h9sEamibsTMyJwcbq8/yyYd9ACxa tOikcZxBcb4bfD+lSJRTLRHJA8Z6kSQLeRyQ38MYDwukU5XMrSdJnY2rb0A7h87gusTA 9a5YpWX4iOFdnTb7s5x56V1ULEZqsz43iqLclldiuJm0F1TBRCiHDRmWoz9wX6U+vLEJ 6QxeslU1k/QcbjwIUNNYCypGHrnqKE5eqc2im2rSv6iLToNJTMZDVWrKb85zfCTY44zm Lm3sZGr/q82dYofauOADTslt4zbexucWoLYh5Qtple/DXBWmNd0puNsTtz+Hjkxb1zwb +Slg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=EXEw0YHebXp7XbzjSzJV0jI/BHO0fdfjhG7OETjh8as=; b=XzGHl4tcZFYmU+sYKNdBKXDV2pco4r7A8ZgOJpz9AXuwLBAC7vnruNVAJbZthzVS1i vfzSxXYR6Ga7stGThDVaUbS8AvrlKT0ZEx1hsZ2ap68fqr86vu+yt1cPlu82WdMq4iFV bVr2a+B5/dpax5fIoOPnsp7WT4I4tLkKuK6UksFpysm3qW9gmvxwiEkeQBJYwrm8udxs 2dmLVHVoTwXWeNLgFACTvY7JiSV7ceJb/e+B02RWA+fgIihEQFk46j1NJV07RdMNomVF Y7XoVYDqUZpA9yiX6qqQADQ/C/BwUDL/Mwr8ca21QJavDqgwLrA0av8gfL36SNgSbB12 PagQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gDOUuArV; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si1842892eje.410.2021.08.24.00.22.48; Tue, 24 Aug 2021 00:23:12 -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=@gmail.com header.s=20161025 header.b=gDOUuArV; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233481AbhHXHWR (ORCPT + 99 others); Tue, 24 Aug 2021 03:22:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232004AbhHXHWQ (ORCPT ); Tue, 24 Aug 2021 03:22:16 -0400 Received: from mail-qv1-xf31.google.com (mail-qv1-xf31.google.com [IPv6:2607:f8b0:4864:20::f31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10498C061575 for ; Tue, 24 Aug 2021 00:21:33 -0700 (PDT) Received: by mail-qv1-xf31.google.com with SMTP id z2so6590778qvl.10 for ; Tue, 24 Aug 2021 00:21:33 -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=EXEw0YHebXp7XbzjSzJV0jI/BHO0fdfjhG7OETjh8as=; b=gDOUuArVgRB6gTtcNAFpm7LiLec6ZWraiG8vZH6hBHBvPYe/ILnj9EXWgM2srM5lKc BJpXWMNvZrpsQufh9RYjxP9p8phot+Gq/6pBKd3LiDdP8AAJ3EQn13r6zueSDIRFdm3C dgjy5ByaftGNttDYabI+4CwiMVhuwxsnCdyd/HYn0CaVrgMoIsg6TBIZdf9ODAXGGXcq y09PzVnbuvCs8YOnOOoMym84KNJJLtjjM6rM42rK1oC83SgDe/u2kyr/9h0Uy8MRk1wO yfUhtHeFyYBED4pAgV3fdE/tnaxGcsGIkTaTMdlJBJreE/leNZ2gc0uQgmkH7g5UTplC 7jmg== 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=EXEw0YHebXp7XbzjSzJV0jI/BHO0fdfjhG7OETjh8as=; b=uU6RvFC0XksESf9gI+LSxZAPXFsfw2QrM2HGQGJDRoAL9CufSlZjOnea+sVO+aILlY mizUrvSXJIqoJXD/H4KyrEDv3Vg+hiYFFeXUl0z4VB6d7bAHSPQ8H9nH0rmXDPobOQHk VkzV1GbOUmK7hrenYDCp3fJQQ6Ii60uLeC/6rLOwCN1xfssN6i4oETD3gMDVbcq9RWmI mh4F4Nau/co19x0rhz5zE24r5Qs5nwHcCrYVR1TJjF+6jVCYReScUV8jqAssiDhk+bSd jLmRDozkTebKC/Wz0YYuJJRgSXd3pnklUvmutrACM1/4CyVkf25QSmQIMAVS5DIz/QFM s+1w== X-Gm-Message-State: AOAM530djt7z/DKiWPtFVOBIE44FVmvESrJ3uxv+xqdvaOPVJ4kqyTvj KJDOUuMCXg1/qYOBOzhUvDI= X-Received: by 2002:a05:6214:a45:: with SMTP id ee5mr37263446qvb.9.1629789692347; Tue, 24 Aug 2021 00:21:32 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id 9sm7467786qtz.83.2021.08.24.00.21.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Aug 2021 00:21:32 -0700 (PDT) From: CGEL X-Google-Original-From: CGEL To: Steve Wahl Cc: Mike Travis , Dimitri Sivanich , Russ Anderson , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org, Jing Yangyang , Zeal Robot Subject: [PATCH linux-next] x86:uv: fix boolreturn.cocci warnings Date: Tue, 24 Aug 2021 00:21:24 -0700 Message-Id: <20210824072124.61750-1-deng.changcheng@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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