Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2658151imb; Mon, 4 Mar 2019 10:36:59 -0800 (PST) X-Google-Smtp-Source: APXvYqw3o9wDaktr8KY8h62pYSSOrXYxmVOOShHh1WbzK9ttNBbYSqfgFNUv6k5CzuQVKXBVmuF9 X-Received: by 2002:a62:20d2:: with SMTP id m79mr16870999pfj.135.1551724619366; Mon, 04 Mar 2019 10:36:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551724619; cv=none; d=google.com; s=arc-20160816; b=0zG6Zj4vFgkIObeugBd1RfYMWX3s08fXeWkZKSrrfalXX2BHnvhRHYGlGYZliZE1gh PVciLjyUtOhLyQS6iHNv8VIXIkNmySZ8NSywddg/fbTd26+f+8JbdMQtuMLZWtruciPo Apsuiz/QnHbf69ED0CJ2pV3RNuq+XrZ5Cs4+S3puDamoBHETflcbJGEneQI5BcIuPghO D1qd2Ww1h56O6fZWpSQx/Y0tN/blWc6eca+prSiMJCrdmR6RvjjIZykVIy/QzBVA3/vu XVWbl5VpmYbAdlF9qXrTYQhwZz8IirtH//jsTjgQ4ceu1H5Ey6f30tqFwNOxqe9N9Ht3 Cl/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=lkoxNTZDcsFMaDTSvIUmNcE2tFbmczPzpSYXcIp7qV0=; b=RbhRw4s+3vRWAYRx1Z9DREVfG9Qpcw06hgraQUmGA6FJYhS2yQhoTTqJHnfidj2U/o CeZrgDKT7LU5ofh5sH0buSpENWCO0OaxYZIiwUFlIywrhnBEnjJJarccxmT6ouvT99Lh tQR9yNUl9WyMmS31fLUmQ/LI+rmowfSBD4dO0OXtDqwDV4kOkd5lDlgfKAPbDbpgLBjj 1lb0wGLDRCxh+SjQeAoOUkuP+mFRXXfowLF9c37URhpoeJXqxA5lLSbGu1GnTdTz8Bxr eSApmb3mDs9k14A4MW2q5dEy3BimNqyXeQRK+D8iBIZiYDu7jQ//e+QqvC31BzIyXsHs ZTsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=oTjBkYIp; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k185si5778850pge.2.2019.03.04.10.36.44; Mon, 04 Mar 2019 10:36:59 -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=@google.com header.s=20161025 header.b=oTjBkYIp; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726998AbfCDSKR (ORCPT + 99 others); Mon, 4 Mar 2019 13:10:17 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:33052 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726095AbfCDSKQ (ORCPT ); Mon, 4 Mar 2019 13:10:16 -0500 Received: by mail-pg1-f193.google.com with SMTP id h11so3645123pgl.0 for ; Mon, 04 Mar 2019 10:10:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lkoxNTZDcsFMaDTSvIUmNcE2tFbmczPzpSYXcIp7qV0=; b=oTjBkYIpmbfkPGeQ57WHi7qZ3ZYDjqP3ktujllxjIR4Bdo31IpHkyID0BnACkxPDkF SCYJgaCQbJLGafqe3jix+KWEXspDIg2KLH60oas3p+atMqdRQRs2o0JVosEDoB16zLXj UgVnHa2kjCacB74Ik5HqW13NLLlU3Urc3fKaLWqT9eqREg3Bv7HDfORcSEDDVk2UAaEj 35euhzHpXdUla7b8kurkS46ZYFYysieVTp/9wVIIm827gM3tu0FWgA9vF2PYxOhkKfyy LIkYf/PbkShHb712bhUkQ5kd4mS4PL1pPcTK9pz46gu2f4lJnTxt8ptt9J2UZWqSREoQ DPIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lkoxNTZDcsFMaDTSvIUmNcE2tFbmczPzpSYXcIp7qV0=; b=bp6Xe34rwl6tKBKbuEWhPHn3oGJUTgD1+2UHULXA1aLqY6K2iKlE38pgUIDLN0bvMX exCe2ED+6TTMa9H3t03LC3Hqu6oXVA2zkcKfnC8YLlBtuXnIH6nYNxKq0YtBj1NpNR3o 2/nJ9w+/sdpDaEfbMjHba9iURqAt4E1Mzqyimt2u5EATsrhoJdZjwujpZALs+98THGJ2 NRJwRSm10pBKT5jAxEWZfom3dTcIB6oR2jHTs0ELwmnw2RqEP1rfQDEDovPXe6yxmzV8 ULa+Vq00BDmWNAbkv0saKsCCZZSGESYAib0vgXVnKuOXT5tZAOAVmdCqoBCVTHPjc/n0 gC2g== X-Gm-Message-State: APjAAAVStbttgVn2LoeOxlI7tuXyzUlUNJhmgGbbojXpRKVmgANK0DBJ VE75wSNTE41mfJo4YEMWY6QvlemEdvAfIXfdZQ5FtQ== X-Received: by 2002:a63:5506:: with SMTP id j6mr19674498pgb.202.1551723015909; Mon, 04 Mar 2019 10:10:15 -0800 (PST) MIME-Version: 1.0 References: <20190302184929.28971-1-louis@kragniz.eu> In-Reply-To: <20190302184929.28971-1-louis@kragniz.eu> From: Nick Desaulniers Date: Mon, 4 Mar 2019 10:10:04 -0800 Message-ID: Subject: Re: [PATCH] x86/KASLR: always return a value from process_mem_region To: Louis Taylor Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , hpa@zytor.com, x86@kernel.org, fanc.fnst@cn.fujitsu.com, bhe@redhat.com, "Kirill A . Shutemov" , LKML , clang-built-linux@googlegroups.com, Jon Flatley Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 2, 2019 at 10:53 AM 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 Thanks for the patch! Reviewed-by: Nick Desaulniers -- Thanks, ~Nick Desaulniers