Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2079827imb; Sun, 3 Mar 2019 17:21:47 -0800 (PST) X-Google-Smtp-Source: APXvYqzpVADSwzBz0lQwCNlwaFoCNuyzp0k4L3pjNKUiXk6hB9gAxkjz5IHKfkYzOhNfeqdjkr9a X-Received: by 2002:a17:902:5e2:: with SMTP id f89mr18016390plf.107.1551662507836; Sun, 03 Mar 2019 17:21:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551662507; cv=none; d=google.com; s=arc-20160816; b=h3KLVSIOOV8LWKaux7DGTnJxinfzBnqBcnP+DDgJChneVNWkIYU+sNrwyPXFCup2eb QgUnuBtbEWOJPXJhi5SsuSziAkaRI8qW/0s6Fy0ROzd9I1ch0gJipKXWa/KenFKgfYWd Tnc9ygJ9fffcGfx4wPNEZ3nll/ObkcOrsmOLGpFEkFx3vrgMk+k1SiVcwts1uwsAgRbc 8t1Mv2fj7h/kxMcmmVUidJUBsgepLrqXB/L1gO6eUP93noB0IyWmPjty/Ssmv/QmqZwh IlW0Z2EoOm1mBXwF3pCddDGpXJId26P8jed5QPFIEXmtOE7DXfyjBUlMsROd7MRTL/Yl yAbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=UtuituJnpS/dhth8XnN5f1KUmYU4F0PCvA0fkpArkuw=; b=Ko69Kwo/XjRAoWHerfFNbc/QXDCbOlhbPgZ11Auwn+iCups1ae+fbiusqCkuDxqd/r h/MSQH68qglmsW99+leqtc4vWykN64x0WH1bMgxQVBKp6GbTsvNu2W/Vaqkozha+625Z mtp5MPHA8rJiMjYza3I5N5+Qrb2JWAATHp70lPdwtkSbds0SjN29iP1GT31yW2cBcyPn YgeWtCnly+SFvgN54B2Q8tBa/XdPjH1wq6Tq7n2lQLfqQHnNq3R+WJrPoCX9I91SfHMn ISW2N1BikNu+sFolzJqHNFhMuK7LM8TzHRIp1DVLy5r9b5GygrrbeIuu/BK8ZeaDE7yx 1lWw== 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 m9si4169443pgt.73.2019.03.03.17.21.31; Sun, 03 Mar 2019 17:21:47 -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 S1726090AbfCDBVM (ORCPT + 99 others); Sun, 3 Mar 2019 20:21:12 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:40100 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726012AbfCDBVL (ORCPT ); Sun, 3 Mar 2019 20:21:11 -0500 X-IronPort-AV: E=Sophos;i="5.58,438,1544457600"; d="scan'208";a="55826740" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 04 Mar 2019 09:21:09 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id E54AC4C5347A; Mon, 4 Mar 2019 09:20:53 +0800 (CST) Received: from localhost.localdomain (10.167.225.56) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 4 Mar 2019 09:21:14 +0800 Date: Mon, 4 Mar 2019 09:20:58 +0800 From: Chao Fan To: Louis Taylor CC: , , , , , , , , , , Subject: Re: [PATCH] x86/KASLR: always return a value from process_mem_region Message-ID: <20190304012058.GA28322@localhost.localdomain> References: <20190302184929.28971-1-louis@kragniz.eu> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20190302184929.28971-1-louis@kragniz.eu> User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: [10.167.225.56] X-yoursite-MailScanner-ID: E54AC4C5347A.AB7B5 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: fanc.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 02, 2019 at 06:49:29PM +0000, Louis Taylor wrote: >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 probably have been placed >outside the #endif, so move it there > >Link: https://github.com/ClangBuiltLinux/linux/issues/360 >Signed-off-by: Louis Taylor >--- > 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; Make sense, thanks for your PATCH. Thanks, Chao Fan > } > > #ifdef CONFIG_EFI >-- >2.20.1 > > >