Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4455481imb; Wed, 6 Mar 2019 13:57:29 -0800 (PST) X-Google-Smtp-Source: APXvYqxNP+1vJB1qxd4e0hoMMOU1um8088aLFpqtT3tL1Zx8+62tFwKIBNdNhV2l3ncvXd5BKTrl X-Received: by 2002:a63:2b82:: with SMTP id r124mr8227763pgr.214.1551909449682; Wed, 06 Mar 2019 13:57:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551909449; cv=none; d=google.com; s=arc-20160816; b=AsT88n+b+40XLFiTLXdu+6LFeB+WcU4Bn+qpTEKso+YU48NLPkOQlu/Ae/kPoTt0uw QzmvbvAeEhrZbLSDDraAoD/U3DsyeMd5SPvDNE/FkIxZp4zlexO8lEjq8q2kX4IW04zn RPMWoE58893IEaGFO1O1GfFzuK5OebeDsV1idF0/ZeDex76ThYTHEl3ggHYtMWen+zJT xxKvMk4XDDoRXkFrqBOOQ7Nx664JOH1xBmp+k06BMkt/9bexsWocVvQBXT2xzc5cEsBc dgciDPlbvD8HVVlv0J6HTXoJtgsCxkyc+dwN667iZE7/aE6xuvamcpEbLc1HUrtp6eqg kn+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=vPXIj5OrRAnk111A22DcojcIUQQIo6fmHsdz5oMHNKw=; b=kKHze5us0It6CpecWiAV2VCifYGKlSPVU5C6SgRNtNOBG31rfwhexaXdVGRlXiMxQ3 hXDMWQezgI/Z1kJVnlwGFxqAyakyla+5e3iAG3qtoR9oPMzsHKzuWEREoY/dsVrKqfXH e282HMyHs4fCjMYwYP0U/rOgRCHErvkbYBPPG31FC/w1PaZWP2fitNmaJ7loaKc6w3rC PLbPU4u8NxE2+bENFI8irBj6fXwq+k/0VLWi6ws3/iUAbW51w9XiQkAQVVoQ+c46MquJ 7N6qRFsj3w5k0K8vB5ZuQIqBc3mR/ZgDT6cLQ7+w2du0W9+zLlI6UepqjBeQWUAArFj3 JgUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q7si2324372pgc.190.2019.03.06.13.57.13; Wed, 06 Mar 2019 13:57:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726334AbfCFVzT (ORCPT + 99 others); Wed, 6 Mar 2019 16:55:19 -0500 Received: from terminus.zytor.com ([198.137.202.136]:34507 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726293AbfCFVzR (ORCPT ); Wed, 6 Mar 2019 16:55:17 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x26Lt8W81896320 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 6 Mar 2019 13:55:08 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x26Lt7vB1896317; Wed, 6 Mar 2019 13:55:07 -0800 Date: Wed, 6 Mar 2019 13:55:07 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Louis Taylor Message-ID: Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, hpa@zytor.com, ndesaulniers@google.com, natechancellor@gmail.com, louis@kragniz.eu, mingo@kernel.org Reply-To: ndesaulniers@google.com, tglx@linutronix.de, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@kernel.org, natechancellor@gmail.com, louis@kragniz.eu In-Reply-To: <20190302184929.28971-1-louis@kragniz.eu> References: <20190302184929.28971-1-louis@kragniz.eu> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/boot] x86/boot/KASLR: Always return a value from process_mem_region Git-Commit-ID: 08c25ca37f0b37311dbac1426c356165182c4c99 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,BAYES_00, FREEMAIL_FORGED_REPLYTO,T_DATE_IN_FUTURE_96_Q autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 08c25ca37f0b37311dbac1426c356165182c4c99 Gitweb: https://git.kernel.org/tip/08c25ca37f0b37311dbac1426c356165182c4c99 Author: Louis Taylor AuthorDate: Sat, 2 Mar 2019 18:49:29 +0000 Committer: Thomas Gleixner CommitDate: Wed, 6 Mar 2019 22:53:16 +0100 x86/boot/KASLR: Always return a value from process_mem_region When compiling with -Wreturn-type, clang warns: arch/x86/boot/compressed/kaslr.c:704:1: warning: control may reach end of non-void function [-Wreturn-type] This function's return statement should have been placed outside the Fixes: 690eaa532057 ("x86/boot/KASLR: Limit KASLR to extract the kernel in immovable memory only") Signed-off-by: Louis Taylor Signed-off-by: Thomas Gleixner Reviewed-by: Nathan Chancellor Reviewed-by: Nick Desaulniers Cc: bp@alien8.de Cc: hpa@zytor.com Cc: fanc.fnst@cn.fujitsu.com Cc: bhe@redhat.com Cc: kirill.shutemov@linux.intel.com Cc: jflat@chromium.org Link: https://lkml.kernel.org/r/20190302184929.28971-1-louis@kragniz.eu --- arch/x86/boot/compressed/kaslr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/boot/compressed/kaslr.c b/arch/x86/boot/compressed/kaslr.c index fa0332dda9f2..2e53c056ba20 100644 --- a/arch/x86/boot/compressed/kaslr.c +++ b/arch/x86/boot/compressed/kaslr.c @@ -697,8 +697,8 @@ static bool process_mem_region(struct mem_vector *region, return 1; } } - return 0; #endif + return 0; } #ifdef CONFIG_EFI