Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp1327859imb; Sat, 2 Mar 2019 10:55:18 -0800 (PST) X-Google-Smtp-Source: APXvYqwvPs/QqR75P7O3JkPJAUhv5qgpQ85cNVcn0Vxm9WmtY+FCgeic6LCzcfid4DLDi63ev95D X-Received: by 2002:a63:234c:: with SMTP id u12mr11125819pgm.282.1551552918574; Sat, 02 Mar 2019 10:55:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551552918; cv=none; d=google.com; s=arc-20160816; b=GqV6olzl22tSAlHSRp4ML9SJ1eodTOHP5aw5WvbBzMW4bWLuSe/diU1u45SUhuywYE +LdveX2TYd6qvNHZdfpIi+yRAVzV1Vw1IcSl/jPoUSrRH4s+mI2vptCjR9fDzd+IbxlT Ji8DfdlDeIM4optt1rKQrrM4Wl7irQp3M1KSq9Hb6vHowAj5tnK24zs1eVq3tThCoR82 h/FR/Jll5mEHeSOY/SY7KEEiGU09UHBgkCWUYbPMU6dUNFyycRjGHWls6Xbk6gU7r6Sg KzD5grFTBgabDq0SiJaeZzGthWYPOupmo2sQs0iAfI2PiSA0ePW2jbJWsxUVtVvTiRlN ZKAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=4FGOdncDHbK3s78NRDogLsHrdNSs3gwwfJvuwuycjTQ=; b=zevR5oQD/V6b5SSUoWrzvdl6hf6bSkp9TadHXVpV31vhcZwc1C0IOAR3beQvH5GAFI cpB46940jeOeRtwJMWWVJnjhg4FvRWGkFz/nni61Wyre6Z/m8+/3CJfYGy8FOvtojxqS wTIflr0aob0yvve9aaZ4D9eDX1ZZP+/yHHWfsfOsWHY9tFZvnmXd11+QgVBwc2bjKYR1 GTIbnJRaJCInyakaerG86BCj+iRkyrhqwLxZ+U5VIv81/9w9B3wfXtFSggK1EZ+GJr3/ kVx0XnRmEJM/MJwjMeDFOMHbLugag3wsmbRnM55A/z0VLWeKyYZ5FsrxIMedA6SV9sSX NuwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kragniz.eu header.s=google header.b=otXMEY+g; 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 34si1185945plp.195.2019.03.02.10.55.03; Sat, 02 Mar 2019 10:55:18 -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=@kragniz.eu header.s=google header.b=otXMEY+g; 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 S1727270AbfCBSx2 (ORCPT + 99 others); Sat, 2 Mar 2019 13:53:28 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:53582 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726648AbfCBSx2 (ORCPT ); Sat, 2 Mar 2019 13:53:28 -0500 Received: by mail-wm1-f67.google.com with SMTP id e74so1068441wmg.3 for ; Sat, 02 Mar 2019 10:53:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kragniz.eu; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4FGOdncDHbK3s78NRDogLsHrdNSs3gwwfJvuwuycjTQ=; b=otXMEY+gZCA/3ap302sSLJrGQrHSnokNs3qisAPmBJx5yAulqo5HTlLFUW+6e2PX2c 7s9ihcJMg+UOxfgGV+xcnp+8AgXeFYF0GY0oJY1SSMe7+sHuMiDae4hWaU8kwGXTIR/p erYk0Y90MH8cnwnfpdqlkJs5vu5xDKjUzEfhs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4FGOdncDHbK3s78NRDogLsHrdNSs3gwwfJvuwuycjTQ=; b=paC1PIiA/QJA7w7mRKuIEnzwwQCTvyAbv66t4p1Xn4T7f7BdAGF3T5J9TfrJ0cIUBg Q5MGBXbs5Nkwpzh5H3yvUV2SK7V09CTNIrzpTaqjAkth7VAfOtLdluvSQnCvJy8j1Hpi lEumbtEsO8XvdGX9w1iFvgNltJ4+f5NWnMfCZhsPJLF9SURhU8tqmGDra51q8+lUERUq LnbcqJcFfCDBHURQfpwUnaYFnIqaO213Xz+DJQ2IFTRrB1oEp9KmxU+DqRtMFGhEPt/E ZqO66M3PPHS0ob8NHQE70p27VXtro2uZ8Q9xLdh4cs0UWQi/hnTTY4cQ0QnQp0V+EwKo aJqg== X-Gm-Message-State: APjAAAWKP4GpHMQK36+MjMlvpXukOo7Jacmzd18wMhvIqzM+nyQ0XWUg KBJYPAFCU6iTqNY0D8HInBkPEQ== X-Received: by 2002:a1c:6505:: with SMTP id z5mr7090681wmb.7.1551552806252; Sat, 02 Mar 2019 10:53:26 -0800 (PST) Received: from localhost.localdomain ([95.149.160.3]) by smtp.gmail.com with ESMTPSA id a24sm3285691wmm.1.2019.03.02.10.53.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Mar 2019 10:53:25 -0800 (PST) From: Louis Taylor To: tglx@linutronix.de Cc: 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, Louis Taylor Subject: [PATCH] x86/KASLR: always return a value from process_mem_region Date: Sat, 2 Mar 2019 18:49:29 +0000 Message-Id: <20190302184929.28971-1-louis@kragniz.eu> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; } #ifdef CONFIG_EFI -- 2.20.1