Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1354228pxf; Fri, 19 Mar 2021 05:33:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeols9/5d/XEOtIrW4iITonb8CEucw9An/f8pnQ0V3i5nX+TPVHoBNr9O50j0jTH/I/ly+ X-Received: by 2002:a17:907:3d01:: with SMTP id gm1mr4151608ejc.214.1616157180246; Fri, 19 Mar 2021 05:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616157180; cv=none; d=google.com; s=arc-20160816; b=rf4NaU1VLMZK7+lNy2yYEr4b7W2DWbENdn/CcMAID69rnvLpJz+mgLTUZupayF4EqU /cDwmolkRt3ZqWl7wLirVQf+SqJARtQoVuJJyYQmZFmK9cArkMJgNXTVSJQYDW5Zux5Y 0gUhxXXj5TEH9HDIhTDFeVmntgz0tbUMPWa0EGjYG+S0EHALXohiAfzrN7PhjR9NZsRO W67hlJgWFFqk2zg3iISOnnAllGWBh0tecL8XwXMlM+npM0biWw25ToIXc7UltTQfIUMv BDXFvkrtKnPMWZ5Bh+4WtCk0sHRbI2EcNKwqMpO4otp0GzTUedzaGsmparqtvoeeJm9t ywdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=ta6TbYc2KpxX9Gx0eKTed3N1z7DwvwubHJrt1xszU8w=; b=nIUWTlMll6m3HD4iHwqrE/0yI2bhHPCEPmYIfcloDh+KZzmW25tv4Wt0s2KKGeJqHK qsxonMdbBk9PMLHIZUS8WJhaX2meYxgwnwCtoOPbBqOBHp3fMU+FoECD7a914CHOi9mM 0etTT8sY2v3DDzdouzmDcCk9C/Nvcgk6xm16ytrnYRdWuWvx2aM0jMZdTlycV9/l9dbk oxc7S0b1AqjhsVA1POyeaq509NN+7Krxt/TfF6sHnkt0MhvRyGTzBg4LHomh0S3oN/z/ DyiQvJ32M6N+HpcCkYkkyQnmCUri1SQOkkTJ5khpAI/X8lZ3k64SHQ2zUeywPOqMcVuD Z74Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xegow6TB; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="/jZD7+J4"; 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=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d1si4316501ejz.282.2021.03.19.05.32.36; Fri, 19 Mar 2021 05:33:00 -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=@linutronix.de header.s=2020 header.b=xegow6TB; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="/jZD7+J4"; 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=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229951AbhCSMba (ORCPT + 99 others); Fri, 19 Mar 2021 08:31:30 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:36656 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbhCSMbX (ORCPT ); Fri, 19 Mar 2021 08:31:23 -0400 Date: Fri, 19 Mar 2021 12:31:21 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1616157082; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ta6TbYc2KpxX9Gx0eKTed3N1z7DwvwubHJrt1xszU8w=; b=xegow6TB2ptZo7yiaEQFzsY//u+m5BF3Z9Zt3/gGqZ2j6uTICFb9Hi67Fde7D2nf9G/3+F maXU+RFr1tD9rp5RDO3q566xAzZjBF6ezewqEXN7j2pk7SDhxU4jXyMzz73eR07tplvmg4 UyqcH1Kum8C24BkTlZPVotqtzeDVCSH08s9afgKYAaI06dBVxx4CiWfnZ58bNA3tnwL/JK ecgtTwENnKk0cp1iXWrh4SRDYkOxE7l+HIGHNGkNEgj9d4yrJwPWs/VW5DcdFhCNBDAPAV YgMG4cVoglK/YiS3BSk2sAFbgZ9OFbIFQetg7Ghqv4RRdYCe/S4lBDqAg6Uh5Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1616157082; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ta6TbYc2KpxX9Gx0eKTed3N1z7DwvwubHJrt1xszU8w=; b=/jZD7+J4c6MmBq1r04qAIXozhJgLPakNPBnoRhXd8Fqt8DrKcdRR8MNjnW+UDcIbly4flW tM7EhWR7XEx9dYBg== From: "tip-bot2 for Jiapeng Chong" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86/kaslr: Return boolean values from a function returning bool Cc: Abaci Robot , Jiapeng Chong , Borislav Petkov , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <1615283963-67277-1-git-send-email-jiapeng.chong@linux.alibaba.com> References: <1615283963-67277-1-git-send-email-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Message-ID: <161615708162.398.13397477159993396875.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 21d6a7dcbfba5e7b31f4e9d555a9be362578bfc3 Gitweb: https://git.kernel.org/tip/21d6a7dcbfba5e7b31f4e9d555a9be362578bfc3 Author: Jiapeng Chong AuthorDate: Tue, 09 Mar 2021 17:59:23 +08:00 Committer: Borislav Petkov CommitterDate: Fri, 19 Mar 2021 13:25:07 +01:00 x86/kaslr: Return boolean values from a function returning bool 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 Signed-off-by: Borislav Petkov Link: https://lkml.kernel.org/r/1615283963-67277-1-git-send-email-jiapeng.chong@linux.alibaba.com --- 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)