Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2421879pxb; Tue, 9 Mar 2021 02:02:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwbW+KTGYACle9/zQR+MVhhVtWN3wHeEC8sAIoGX7+E3e3DiUlSeym1OCO+U9rvhY8/QLaJ X-Received: by 2002:a17:906:c181:: with SMTP id g1mr18770982ejz.96.1615284154841; Tue, 09 Mar 2021 02:02:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615284154; cv=none; d=google.com; s=arc-20160816; b=vKDM6FCW/TpLv+k+2vP1GhUjKP97dT1UIuwKod+NysBaG4oM2ys0/oxlzbjcUCs+GY 5ZHPjNc45f1t2jJHxP3xTi7rOcG3r7zAfT9pVwm+eSz/YnfFZQANFglJnM1w62WqKGva Xv2ZmI6eZrhQPaKFN6xG9MTRUgTiDz2UAsh9b0usxgbrSnh3f5/J4pYurHJrRPN+vFLI SfQN5iV461vdvLKtGl0e+7VC3MC7dZU7YNYLDUVwHmEDcE2irzCrEZ3E3NOMtB1RttRd FS30/DYPXZOyWbrXo/L9+sE06BoV221+7JqLRCzK+K0p6PYHwkzlkPR46ErFX7QhNkYI mz0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=JtMWeYwGGHOmfTjKn5qeCERG+IJHVtzaaa2rlA079wE=; b=Vnzc2P6iHHpfAUW7Q2m1mKIGWH0PhM8mUACZIeQ03rq6QH+sO4WD1rgTQUa/Fzu5zp oYhkXs1U4nmZCN+GFLPncBEv+zfV3C5ZL/ypdgZcqw2H75Ep/UhrACpOlsuguylqo0pd NKHfNsIPPftMJFMavinnecpIxFoU1tmHugTFmF3mYrL1qfmYVro5RsL7O4a7mqszKWHy 1+7tNPOvSzsVdgx81PoB3wTANHHOR9K3btGxclTOtNbXUp/oQ9p5P9LWhGkSaFusuxqV v+numXT4ekXfQOnGgwxnvauVJ9bLCZY+Wy7DE0MNXzW+kKIhKOCGhnSnDhJ9Q/Nha0vK O9Rg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n5si8651796eji.285.2021.03.09.02.02.12; Tue, 09 Mar 2021 02:02:34 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230111AbhCIJ7p (ORCPT + 99 others); Tue, 9 Mar 2021 04:59:45 -0500 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:53478 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230033AbhCIJ7d (ORCPT ); Tue, 9 Mar 2021 04:59:33 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R421e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0UR6tfTj_1615283966; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UR6tfTj_1615283966) by smtp.aliyun-inc.com(127.0.0.1); Tue, 09 Mar 2021 17:59:31 +0800 From: Jiapeng Chong To: tglx@linutronix.de Cc: mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] x86/kaslr: Assign boolean values to a bool variable Date: Tue, 9 Mar 2021 17:59:23 +0800 Message-Id: <1615283963-67277-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warnings: ./arch/x86/boot/compressed/kaslr.c:642:10-11: WARNING: return of 0/1 in function 'process_mem_region' with return type bool. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- arch/x86/boot/compressed/kaslr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/boot/compressed/kaslr.c b/arch/x86/boot/compressed/kaslr.c index b92fffb..e366907 100644 --- a/arch/x86/boot/compressed/kaslr.c +++ b/arch/x86/boot/compressed/kaslr.c @@ -639,9 +639,9 @@ static bool process_mem_region(struct mem_vector *region, if (slot_area_index == MAX_SLOT_AREA) { debug_putstr("Aborted e820/efi memmap scan (slot_areas full)!\n"); - return 1; + return true; } - return 0; + return false; } #if defined(CONFIG_MEMORY_HOTREMOVE) && defined(CONFIG_ACPI) -- 1.8.3.1