Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp414685ybz; Wed, 22 Apr 2020 00:22:41 -0700 (PDT) X-Google-Smtp-Source: APiQypJA/zW6GENGCFBLZe8+HmCB6qVsDs0QEbEoxey27rcLsrioPbZRlmUiQInnVWS318PuTBl+ X-Received: by 2002:a05:6402:3125:: with SMTP id dd5mr17006507edb.208.1587540160991; Wed, 22 Apr 2020 00:22:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587540160; cv=none; d=google.com; s=arc-20160816; b=mIb76yQJtxRarsPGrktTjNb1CMaPeYYZKnfahLqw0GGEl6gm9PYrFUsGQ1xPHbLXc1 ItLZIKeWpG9WS5aYe5vLJRQM6bSgdodffO4WA2WxsVYYevRtvbYRIKkc8ExhQpqfu4jb uZkl6NNkV5YWmSHycw2s2JT7Fk0SMTrhCJQL+qD4oeZqlDcZCos0iw3wuzYlqzr7cjhM 9jaOIy1PF60HLTUT8NlpXooNyfhVXDIwgyBR+iQnZtDzBJ2lSh9R1q6+Aok7hJKZZL11 Fs/wnrgdVV3rcMkTBQUiujtTRcRICj/021ueti2B2oVwaxET++X6Icfu8Psvgx6Vyz2C 4fUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=KqEaMs/jypTZ8Cp2pBZDSqBkw2JSaJJhVFQxRrB63O0=; b=JtcC+WTcqWUK2McyiwUlrNcYFy2DcU2+KVrViX2SDA2HHL/+M57RI8q/s4dLEZ7bGV WmeRkDyv9PhbEVQU7XD7DCEfxcc2XNDAEIYWeAAcWJEh6SMogXX0KI/Rpt/v2VrG4lUp orAjOEVm/2pOTiZtAjHnm0K0o7BmAOmQrYcxiLrUbp1GEF1XcZ/rhfSVtC7IzpaeTsJM l7ZG0Fgp48NoIhHdrjtOJMiljoI123AqAwpy4qrr4dXJR5Y5X9kKdxZ5Iz1yOvN4ty8N NVEFeZtCA0F24Vj5LMkUJRBIn2VwFVwfUibjdVlj9bMyNiM25/buTC5MkdWecsOzVLyw A+2g== 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 x21si3044061ejs.38.2020.04.22.00.22.18; Wed, 22 Apr 2020 00:22:40 -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 S1726448AbgDVHS7 (ORCPT + 99 others); Wed, 22 Apr 2020 03:18:59 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2830 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726442AbgDVHS6 (ORCPT ); Wed, 22 Apr 2020 03:18:58 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 3BE0974A871E92F672D4; Wed, 22 Apr 2020 15:18:56 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Wed, 22 Apr 2020 15:18:47 +0800 From: Jason Yan To: , , CC: Jason Yan Subject: [PATCH] mm: return true in cpupid_pid_unset() Date: Wed, 22 Apr 2020 15:18:16 +0800 Message-ID: <20200422071816.48879-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] 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: include/linux/mm.h:1371:8-9: WARNING: return of 0/1 in function 'cpupid_pid_unset' with return type bool Signed-off-by: Jason Yan --- include/linux/mm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index 2b0390017633..35f58a3601ab 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -1368,7 +1368,7 @@ static inline int cpu_pid_to_cpupid(int nid, int pid) static inline bool cpupid_pid_unset(int cpupid) { - return 1; + return true; } static inline void page_cpupid_reset_last(struct page *page) -- 2.21.1