Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp963535rwe; Wed, 31 Aug 2022 14:26:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR4wZa8uMS8calaDNM0N/o9QNiigyTQ/ZBU94sjnGD6Ma6wrudfczc6QpmX1+UDZ0X0Cjq7u X-Received: by 2002:a05:6402:34cd:b0:448:8286:23f0 with SMTP id w13-20020a05640234cd00b00448828623f0mr12416965edc.40.1661981205724; Wed, 31 Aug 2022 14:26:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661981205; cv=none; d=google.com; s=arc-20160816; b=k3LRolxQBA27+B3qBAkCaH8r6wAr70LlPsyltp6WGoNaEN648/mU2QJ7cjZ6GuOx57 JlC81WeefsTcR+8SeGYwdFUIuMrJzVvUeGD1XuwZgKL7KD6GUm8Zqx6BDcEz6Z8leJMb LRU0VDvAaVQtp+ziX0ZnwaVZ8TdnSnqlitUI4qVYieipu6SqNZWtBe0c1GCYq169xu1+ s8adOf3yNxb3l5Wb0QcNEF/vyUOy8Kl1g+ObgNZDoqVF4lLibIWyQZMeW6P7B3mwtNbS GlL0LhV9dQrR23lM/GutJks2POlu5DikCeoeP/JkT0GGLxeSJlYhz8Ys+X8YkICxqOAy SfzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature:dkim-signature; bh=EIkkMFs4sIWKssfSNTOzhO+kTBYbdsRJaTCSHYW0Ch0=; b=BPiEynXWgTE2lOLTdwPB1BLWn+GTpJyME7uZpoJJGQ7cf6hHoXPUXAJULaWx+KHfdf RkFjy5EmpQ0fJKtmBOvh2nKPgSCrg/ZzQOOr9J1sY0oujM2F7TdDRYY2HnMQJ1XHpwy9 ijDDO/zvY2ojODSS9/Ciak3DTqTrhnMRsG+1xjN7RI7I1JRpxsaagY+hXE6x4xdiNKTy zD9QLPIMo1PxxOY1qNj1AJb3n0b0UVqGj/kIHZhonpBzgp2KQidMDxgkShgCWXuWITSk YMLfghxd0RE9/PqbV5RCHKjG7hHzo61YxDR0KJL8KoLzJTM1I2UxCTWiIAwEDEokHfSI poAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (no key) header.i=@lespinasse.org; dkim=pass (test mode) header.i=@lespinasse.org header.s=srv-83-rsa header.b=HzO+HykJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lespinasse.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c12-20020a056402120c00b0043e85391923si272233edw.55.2022.08.31.14.26.19; Wed, 31 Aug 2022 14:26:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=neutral (no key) header.i=@lespinasse.org; dkim=pass (test mode) header.i=@lespinasse.org header.s=srv-83-rsa header.b=HzO+HykJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lespinasse.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232159AbiHaVSg (ORCPT + 99 others); Wed, 31 Aug 2022 17:18:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232153AbiHaVSd (ORCPT ); Wed, 31 Aug 2022 17:18:33 -0400 Received: from server.lespinasse.org (server.lespinasse.org [63.205.204.226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24794E0FC5 for ; Wed, 31 Aug 2022 14:18:32 -0700 (PDT) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-83-ed; t=1661980711; h=date : from : to : cc : subject : message-id : mime-version : content-type : from; bh=EIkkMFs4sIWKssfSNTOzhO+kTBYbdsRJaTCSHYW0Ch0=; b=gSqVZ+SmMaoPDYgt8MdFoinD5wP2S76LO+D+5R3+tCR+K8W97mMxuJrFxurggN0TH6h+L UnlcgWe/a81okHOBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-83-rsa; t=1661980710; h=date : from : to : cc : subject : message-id : mime-version : content-type : from; bh=EIkkMFs4sIWKssfSNTOzhO+kTBYbdsRJaTCSHYW0Ch0=; b=HzO+HykJrTNDbxNUrHxNGpGNqrAoK1HtMmSgKfX5LdehdR1852JhlcR9ehGn0/XCkxV0w m8Pmi7AKxIXNTzBOo8JVPiegR/GLYCE9jX81fpmUSYUELOHBhsslef4f9NX0Orox7hKecPn 4XNg+TVm1pf9G/tBiGtnQfOGGdMgG1FZM4w5CJQXfb11YGHaGWDGKwEs8TIjLMxFWnfGyNO yJAhqGR7h0z/tb7XjaO6cS9M4BeMke5rk5uK6RT9ykrmtvj5kXMLm/juX2SvdRbow9+mLup pnkdwIvyXITEYQne7hN0FgtAiIYD69MOEVSsvchpt5+HvEz0T078jhne7Q3Q== Received: by server.lespinasse.org (Postfix, from userid 1000) id ED80F160522; Wed, 31 Aug 2022 14:18:30 -0700 (PDT) Date: Wed, 31 Aug 2022 14:18:30 -0700 From: Michel Lespinasse To: Jiri Kosina Cc: linux-kernel@vger.kernel.org, Michel Lespinasse Subject: [PATCH] Remove unused variable i in process_mem_region() Message-ID: <20220831211830.GA16578@lespinasse.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tiny fix for a build warning. Could you get this queued ? ---------------------------- 8< ----------------------------------- This avoids a build warning when CONFIG_MEMORY_HOTREMOVE or CONFIG_ACPI are unset. Signed-off-by: Michel Lespinasse --- arch/x86/boot/compressed/kaslr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/boot/compressed/kaslr.c b/arch/x86/boot/compressed/kaslr.c index 4a3f223973f4..5ae2ecb16ad7 100644 --- a/arch/x86/boot/compressed/kaslr.c +++ b/arch/x86/boot/compressed/kaslr.c @@ -624,7 +624,9 @@ static bool process_mem_region(struct mem_vector *region, unsigned long minimum, unsigned long image_size) { +#if defined(CONFIG_MEMORY_HOTREMOVE) && defined(CONFIG_ACPI) int i; +#endif /* * If no immovable memory found, or MEMORY_HOTREMOVE disabled, * use @region directly. base-commit: b90cb1053190353cc30f0fef0ef1f378ccc063c5 -- 2.20.1