Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp343460pxb; Wed, 25 Aug 2021 04:50:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCmJ3HFsfL/nqxBBjwvQNwDebvUEL9UMKUlSHpsdNhY8Xw5hT91ALouAJUss643E28+hW7 X-Received: by 2002:a17:906:270f:: with SMTP id z15mr45689020ejc.348.1629892243030; Wed, 25 Aug 2021 04:50:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629892243; cv=none; d=google.com; s=arc-20160816; b=SlbVdjSCHGLbaJ9GMVWZgMYeLcA17RmpLgA8ZtPHrDIZenRieKt6RrShEe2z2OvcRn CfJlMCm9LADF2m+YAVfTjxb+ZcddAL1+p9arppPSb/z6p/f/v+QoboUrEH4A0A7KRPIe 1k/u3GAvMFGtFxT7isetQhGxqIfoAd4OJX9MC2YSZ87OId+QRNI0u+uQPjG5URJTVOJ8 UhnynE8favW3+z9DAJSxMwCF1X7xFHI9Gj16iq3b1wQvpZrMh+/cPXrTHDtbBKNPtBWO eTC8WUM76oCrq6elDdr/WpcAax48krG56YE0C1uq8RTLYz7TOgPQVAzezlEjky+ozi68 1k6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=q5lBuCquj8VPyJGSSbwLWSE4zXdsxyWh1DTmaoEQWp0=; b=0tLFWNjIeybJ9vpkHZuZebnEaLIXJPJY920nxd1SNvCYn5d1YqaNC828CPtgGcghwI 7MBuYfT5g8LGX1s4bdToyCNZnLOByUoTOxY3cNDOt336VFSAApIaYQcoPvMBPHTSo+Z8 IG5rHWgPoo3q8pqRUwur3AyNGxHWWFrSxNxDqRPs2gAHuw4Py6pdla2YLKyVoygPC2rU nYMRMOgb8RU2X4/tOCe9bQHqLA/ucirDxj3GqBe8qTAIl0Bd8cdEKjcEsKBYiEgBJyQj pPetLJ5O/ect45zn3iyfk1nd7Tr+bn+pkt5kKs1n8INISn0PgNaQXh6TPg2XT78cQ95C bMtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nd36si12837702ejc.253.2021.08.25.04.50.19; Wed, 25 Aug 2021 04:50:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240295AbhHYLtZ (ORCPT + 99 others); Wed, 25 Aug 2021 07:49:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240154AbhHYLtW (ORCPT ); Wed, 25 Aug 2021 07:49:22 -0400 Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [IPv6:2a02:1800:110:4::f00:19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA940C06179A for ; Wed, 25 Aug 2021 04:48:35 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:91f7:1ea1:147b:586f]) by laurent.telenet-ops.be with bizsmtp id lnoX2500234CCxU01noXjY; Wed, 25 Aug 2021 13:48:34 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1mIrOQ-005kYT-OX; Wed, 25 Aug 2021 13:48:30 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1mIrOQ-00DDKU-7r; Wed, 25 Aug 2021 13:48:30 +0200 From: Geert Uytterhoeven To: Andrew Morton , Simon Horman , Tony Luck , Jay Lan , Magnus Damm , Mike Rapoport Cc: Rob Herring , Frank Rowand , linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 3/3] ia64: Make num_rsvd_regions static Date: Wed, 25 Aug 2021 13:48:29 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit f62800992e5917f2 ("ia64: switch to NO_BOOTMEM") removed the last user of num_rsvd_regions outside arch/ia64/kernel/setup.c. Signed-off-by: Geert Uytterhoeven --- arch/ia64/include/asm/meminit.h | 1 - arch/ia64/kernel/setup.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/ia64/include/asm/meminit.h b/arch/ia64/include/asm/meminit.h index 2738f62b5f989492..f1d5bf2ba847a135 100644 --- a/arch/ia64/include/asm/meminit.h +++ b/arch/ia64/include/asm/meminit.h @@ -29,7 +29,6 @@ struct rsvd_region { }; extern struct rsvd_region rsvd_region[IA64_MAX_RSVD_REGIONS + 1]; -extern int num_rsvd_regions; extern void find_memory (void); extern void reserve_memory (void); diff --git a/arch/ia64/kernel/setup.c b/arch/ia64/kernel/setup.c index 5e6ee8939092a2df..31fb84de2d21469a 100644 --- a/arch/ia64/kernel/setup.c +++ b/arch/ia64/kernel/setup.c @@ -131,7 +131,7 @@ unsigned long ia64_cache_stride_shift = ~0; * We use a special marker for the end of memory and it uses the extra (+1) slot */ struct rsvd_region rsvd_region[IA64_MAX_RSVD_REGIONS + 1] __initdata; -int num_rsvd_regions __initdata; +static int num_rsvd_regions __initdata; /* -- 2.25.1