Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4432263imb; Wed, 6 Mar 2019 13:17:09 -0800 (PST) X-Google-Smtp-Source: APXvYqwN41rXT+Wtkx6TRaZwjZ8v2TWK2hwZNUk6ByopIzm7hDurI7gs/gcbNhEq9QCVjcfjAzyu X-Received: by 2002:a17:902:aa90:: with SMTP id d16mr8763794plr.250.1551907029840; Wed, 06 Mar 2019 13:17:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551907029; cv=none; d=google.com; s=arc-20160816; b=SoDCF48fDlaX9S54/6oPhq9yfj6M6VS0JMb5BjOvNAI5h9+jaC+bTw5AWahb9XwZKE dxdwKAaoQq86M/YEAeG4YxZO5L6v7KTXhgOGlVjxeF0KGAheSfLOYkhFAuamCaY8R1Rn +wixPANc86AwxdnBbKyTxQ9VTBm/Vr1g/22gv00jIJdV3gO2HbQn7VRVLVpPs3jmGQIA 8efujxne4ydEjp9H8q/OWqbaIjLYNoFPZTiItWFXhdEbwVNWEAyyXRhAsxvypz0SyG3w zgdFzP7ts4LoCNN5Me6Tu11wvWeWTN9mVK15Sb+E8fiINsQr8pnPizM3rKXjxzp0DQih uHCA== 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=6BUdmlojwKmO/3pw4RtJBUbFnqc3R0XMrSbx6VaJZeI=; b=P+on6v2G4pNzMREYv3fyNE+ARF03OGUMnQS5AaoSahkteaDUfNSwJ/6nt+CwjFehe7 icElCT+CaXgDLWWNqqH1+gakd9wExJWyGWJS/RpPuQNh7KL/Ivau8kZEdsVx31OoyVOJ qAC4y3TEp9zVPq6mg5GVXFHUoIPUuvxRihaGexs5RF+3fCInlWWD8OhIrx2BHclE73Me 34HzwWpLzDtR4ZtMVIT01VZZ4me0LgrEvqYHRh1NqtHvzUH/lUz0vtO3HAJ4NuUud3ZU 1sX0GItmwQpMhWQ6EsoipQs9AaPpelJZEDaAjevgwWDYTIhw3szCgBgolt63e1Kuimqa 3lOg== 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 o15si2145491pgv.435.2019.03.06.13.16.51; Wed, 06 Mar 2019 13:17:09 -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 S1726195AbfCFUe2 (ORCPT + 99 others); Wed, 6 Mar 2019 15:34:28 -0500 Received: from terminus.zytor.com ([198.137.202.136]:49995 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfCFUe1 (ORCPT ); Wed, 6 Mar 2019 15:34:27 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x26KY9sr1869417 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 6 Mar 2019 12:34:09 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x26KY8Ij1869412; Wed, 6 Mar 2019 12:34:08 -0800 Date: Wed, 6 Mar 2019 12:34:08 -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: ndesaulniers@google.com, louis@kragniz.eu, natechancellor@gmail.com, linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de Reply-To: ndesaulniers@google.com, louis@kragniz.eu, tglx@linutronix.de, hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org, natechancellor@gmail.com 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: d9a9db4625362b062ee40c9065a06307f7b5c0c9 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: d9a9db4625362b062ee40c9065a06307f7b5c0c9 Gitweb: https://git.kernel.org/tip/d9a9db4625362b062ee40c9065a06307f7b5c0c9 Author: Louis Taylor AuthorDate: Sat, 2 Mar 2019 18:49:29 +0000 Committer: Thomas Gleixner CommitDate: Wed, 6 Mar 2019 21:29:23 +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