Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1531234ybj; Tue, 5 May 2020 23:49:21 -0700 (PDT) X-Google-Smtp-Source: APiQypLBIkvg+9DZkc36Rja2SP+vVtlhigdT19FeVxBS7Vjtt460C6lmjkayTt5Z0KE2F/o5y/W6 X-Received: by 2002:a17:906:2548:: with SMTP id j8mr6004303ejb.378.1588747761604; Tue, 05 May 2020 23:49:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588747761; cv=none; d=google.com; s=arc-20160816; b=oi4WPC1f9WD8LOPuOeGNUmof2nCup+RUv7OS0KVZYERXhZ3eW1mwOXpxwHxOWU7cdS +KyJHhrRzZz3lZ6EkmxQczjENPlk7NVgAJ9S0kHjhBG6UUSKstWQ+Afn55qu1ClZFVLB 9OPKGrXx/0gZegMEUSRK1D4k55FlsGE4tUyetu7j9cQRp15RL6UGcmJ2C4p/OIjEtKOj ko0XNQ7To/LGcZFkh85XSQViqqVn2W0USobfGA8rRmbCy5TSOptTg9PD8vTwrUynPmfk xdVcihccXOlQNJ0FBV1O8XthNhigS97i3iuT1+Ak+hn+X2hSz0b4lZyRkfG35SsOVbfH YWMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=HfNlDra4BzOF/q0EA8slLduArWgU4iDKP2oQHZJzQis=; b=Uus5SFkPbz/vUiH0LaywKZZu6k2Vhof8njUHJSRpSMtyb0KvRAETKsHTOa6Jok9pNJ Mwaf463eq4nRKPObHSkFiOHyXG+Fh6XkOaOxuhMvKHAeoXg8GpNaAoP40rrDP9hhobpt JtJ93gKsK0kR9NhB4VWedAQuFyrLb742P6dMOmjCSZ5shbd2qDgBfvnolKMKy0NdnXvr 3PjoTl/jCOPKHncQc4ujHo8n/kNcbSaSoJnQxgJQy6RIQ5me2jWKt39rma3EPdcOPMax lqSjctVnelSF/HbEJdfjKS7MZJx6Z6ogFYOjHcdEqPKMCUmo0swjogbG+3uZ8QInhbRW lGog== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e23si538061edq.517.2020.05.05.23.48.58; Tue, 05 May 2020 23:49:21 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728138AbgEFGrZ (ORCPT + 99 others); Wed, 6 May 2020 02:47:25 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:3812 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727812AbgEFGrY (ORCPT ); Wed, 6 May 2020 02:47:24 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 8D592D9CC630AC67649E; Wed, 6 May 2020 14:47:19 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Wed, 6 May 2020 14:47:13 +0800 From: Samuel Zou To: , , , , CC: , Samuel Zou Subject: [PATCH -next] x86/platform/uv: Use false for return type bool Date: Wed, 6 May 2020 14:53:10 +0800 Message-ID: <1588747990-36348-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: arch/x86/include/asm/uv/uv.h:45:53-54: WARNING: return of 0/1 in function 'is_early_uv_system' with return type bool Reported-by: Hulk Robot Signed-off-by: Samuel Zou --- 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 91e088a..334da92 100644 --- a/arch/x86/include/asm/uv/uv.h +++ b/arch/x86/include/asm/uv/uv.h @@ -42,7 +42,7 @@ extern const struct cpumask *uv_flush_tlb_others(const struct cpumask *cpumask, #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 int is_uv_hubless(int uv) { return 0; } -- 2.6.2