Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp1508712imb; Sat, 2 Mar 2019 19:06:09 -0800 (PST) X-Google-Smtp-Source: APXvYqy+fQOI39xYTueDFKylET2bxTGv9FBm1RHWmcXfKHhMXrJNz2n2CHxeBgNUPL7TgJ8QRwoX X-Received: by 2002:a65:5c01:: with SMTP id u1mr12285994pgr.197.1551582369618; Sat, 02 Mar 2019 19:06:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551582369; cv=none; d=google.com; s=arc-20160816; b=rDgSdCNv5A4biguvA1fzjyDXtIbjN+6Qu0UgcM7kPjEL6qmwk+26Ay/s2WHa2LMMgj zbTCbyLFzFsXWWpfaKK3anbFVt0682fwH00o8tuFPEBrv0i+0KaRiT4ia+UpKPCKbQwq /9GOoKAyxKsyCqKnE9YRXTqm8GaDJ+WbSXb0Vf87xuhTL0cebBA7lkdMjgT8Y3Sfu6Nx XRqXB3sTNPHtBnXECjBwDrsvjzFEh+pIRpK+YHNE8cpfBc565RtcbMj/NpWiSvkf8M8i 4WdNzOLdhA1pFRcllcIp3TaAsz0H5pGzmro2te5OgPQJRfj2VNpk9KKHPS993aSxrYNH XoSQ== 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:dkim-signature; bh=NT+i6KbSGt97JaAkaMzs+KIYok+NESXIcKEDph3d8mo=; b=v8xyV+SZzG5/BguUjdjVVLubpIlouWakUVYEooyXloexA29nIhERA66QohmVyqUMcz VIBPXlYhCPF2JJkL6knAz6C7KQAJhcxTD0m1yG7PKKujkXrt390LYZYe1yiTqeEPcDdt lvRqu4MobXGFpcASh3lyYuOXvlfhLquETLZTXkgJ+cf6ngdwBLRjmFsw9WLXoLPIeWup P2Meg7SsRR9ShcqFFMQIiyMVDJihzSoCeBVnyADBIio5Ep2HXh2KI2xcfHDz1WJsUYO2 nw/ng6f4Hv+jetIWyEehe4ZxoaKSmjyu0B9e9x8ISsDna5C9hO2IEXQozcUs9KuKkNDZ HIrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="U/omCN80"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16si1947986pgc.312.2019.03.02.19.05.54; Sat, 02 Mar 2019 19:06: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="U/omCN80"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727224AbfCCDEy (ORCPT + 99 others); Sat, 2 Mar 2019 22:04:54 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:37925 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726017AbfCCDEy (ORCPT ); Sat, 2 Mar 2019 22:04:54 -0500 Received: by mail-ed1-f66.google.com with SMTP id h58so1476918edb.5 for ; Sat, 02 Mar 2019 19:04:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=NT+i6KbSGt97JaAkaMzs+KIYok+NESXIcKEDph3d8mo=; b=U/omCN80NV+pQWYvUPS5lGM8EYWAt0rkE53zUe22sHQOhhhG3uzdWcOaX5hg+dA9sN 3vGNhxFqc2YnBS+e4O+u/Htb3VADvWObMV6yfAGekHn7sWE/lgo1+TFsV1+LLTR9tSuB 4w6BQafUr0fiotHfYBP2VlyY1mcMtI2GB2L6VHBsPJDapS6PbM7YTMQ8nl8uU79kaM+k bX2SOAjsOtIgcx52z5sg3+Pdt5XNyrZMQwB9SE3SRWLSxDAa2bBZipCGxa4Axa9zmG0Z l2VAT/wWgm5w53mAXOmadkbE4EFanPYhmiZ/+ZtusppMTtscYN82jI9Il7KXArCQRxua RfTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=NT+i6KbSGt97JaAkaMzs+KIYok+NESXIcKEDph3d8mo=; b=ecGbH3bNEfYw58VVwAG8ETU5ynOM0JaSLkT4HTAoT9IUhwQdywKcOb3vaSAcsDRj7e qSA2qPlhUP5QTQB3F8L27yhN02yg/jH7dalkpSpOPickcmsxYAAa4ruQzzzYtGTto8b8 Zok5KyhBDElQmg3PYEOw/stekcIjohzEg/aFvKFt/QyMs6fg4XC6IZgHVRIixdCSiJAc DScDqjJF+nDmIGwnX280/5xxTCIc4bmj91moTR4IV7b4KasIOe5gVFavbQfDbYGkSqRr cTH1/ScxYdDX+GLFEc7PFbscGoAu5iO4V331RwBpywhR21vNSLxyRVUfcpAjOG+KsZAb 0INA== X-Gm-Message-State: APjAAAWgNgq216pP7+kxe8WKQraxYSRC9NThKL2ZxQNx80Bg3ww2FB3W Sm0cQBCIKgi4cS7diZ6jgE0= X-Received: by 2002:a50:9008:: with SMTP id b8mr10293100eda.199.1551582292184; Sat, 02 Mar 2019 19:04:52 -0800 (PST) Received: from archlinux-ryzen ([2a01:4f9:2a:1fae::2]) by smtp.gmail.com with ESMTPSA id j54sm861755eda.38.2019.03.02.19.04.50 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 02 Mar 2019 19:04:51 -0800 (PST) Date: Sat, 2 Mar 2019 20:04:49 -0700 From: Nathan Chancellor To: Louis Taylor Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, fanc.fnst@cn.fujitsu.com, bhe@redhat.com, kirill.shutemov@linux.intel.com, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, ndesaulniers@google.com, jflat@chromium.org Subject: Re: [PATCH] x86/KASLR: always return a value from process_mem_region Message-ID: <20190303030449.GA21326@archlinux-ryzen> 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.11.3 (2019-02-01) 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 Reviewed-by: Nathan Chancellor Thanks for the patch! > --- > 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 > -- > 2.20.1