Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp691150ybl; Fri, 10 Jan 2020 05:14:52 -0800 (PST) X-Google-Smtp-Source: APXvYqySZFna+B+drC5bz0mP1Du4eSYUP8rl0KQRAjFMsW7ETUcfKjY8ysqaJd2no9lFwfnffOc6 X-Received: by 2002:aca:a949:: with SMTP id s70mr2238320oie.80.1578662092661; Fri, 10 Jan 2020 05:14:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578662092; cv=none; d=google.com; s=arc-20160816; b=BqSZmTj699ngHwuv1e7/x/3qzxrXoLfpHlbNNBgbqOrg43O5N48gYC1s557DFrLjHn U5SZqhgxxZUkDsy6fREarHETxcUlzaINA2F+vYqpjlOpOGEYy/1xL6N24Lh+Y5qYCsvS avydGTV0/Bg0UItInfGrC0W3mGfNv+G6Gl1cft7eyDbR9Wi6u+reO7TGHQm/mpgOE+RZ VhrftqxtE43wL7Bxe914/Wv/JH+3zQ4MJaSS3d5tTTFEvHeLMJAn1R+/CIuC0TDEP1lU zhcE5uPvQUF6UszTw6SflFP5rWYvIU7hLn+SP7zOwZ2z1tVWIOdLjHPrzQi1BQjmfydC litQ== 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:references:in-reply-to:subject:cc:to:from; bh=4VGM/N1B4K33PowyOBEAUfLVDEMUZXX/8jJredPARK0=; b=Uv0IHmwePfI/BHQ+p7f2rN6w4/H4xIB6HCtMTUeEzr1j+g+DPAU/gjuMwlXU9lIXOz 7hrhEAKpJ0x5HDMjj3+cXIe4rqo55KTvaOhiN9wYuzPxhqocbYorq9MloG0+1G+8SOOb 3bgWv4qsqBErBl3tpcrHjpnt3poRbkeFXTxrXJDTDt6ftcwxRm98OxjDp8aipu7SL6jD LmkyjYNczKxD4sTH3FRQrRjv/9z0eIDjhghK0bGcZcBJ6d/GWqQLgUltHkcv9Giq/q7L JwDhLe99bmVo6D9EtFrEcpMi6llLQbNr8uj/mirAxCfcG0zM46A2I6OTBvHRtcD3av2n kwOQ== 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 s68si1175497oih.275.2020.01.10.05.14.41; Fri, 10 Jan 2020 05:14:52 -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 S1727525AbgAJNNl convert rfc822-to-8bit (ORCPT + 99 others); Fri, 10 Jan 2020 08:13:41 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:57947 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727390AbgAJNNl (ORCPT ); Fri, 10 Jan 2020 08:13:41 -0500 Received: from [5.158.153.52] (helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ipu6P-0004Sw-D7; Fri, 10 Jan 2020 14:13:25 +0100 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id 0DD6A105BE5; Fri, 10 Jan 2020 14:13:25 +0100 (CET) From: Thomas Gleixner To: Zhenzhong Duan Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Chao Fan , Dave Hansen , "Rafael J. Wysocki" Subject: Re: [PATCH v2] x86/boot/KASLR: Fix unused variable warning In-Reply-To: References: <20200103033929.4956-1-zhenzhong.duan@gmail.com> <874kx4bb1m.fsf@nanos.tec.linutronix.de> Date: Fri, 10 Jan 2020 14:13:24 +0100 Message-ID: <8736cne9or.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Zhenzhong Duan writes: > On Fri, Jan 10, 2020 at 5:00 AM Thomas Gleixner wrote: >> >> Zhenzhong Duan writes: >> >> > Local variable 'i' is referenced only when CONFIG_MEMORY_HOTREMOVE and >> > CONFIG_ACPI are defined, but definition of variable 'i' is out of guard. >> > If any of the two macros is undefined, below warning triggers during >> > build, fix it by moving 'i' in the guard. >> > >> > arch/x86/boot/compressed/kaslr.c:698:6: warning: unused variable ā€˜iā€™ [-Wunused-variable] >> > >> > Also use true/false instead of 1/0 for boolean return. >> >> No. This is not the scope of the unused variable issue. This want's to >> be a separate patch. > > I'm trying to combine trivial changes into one, so you maintainers > don't mind to pick two trivial patches? :) See Documentation/process/submitting-patches.rst: Solve only one problem per patch. Thanks, tglx