Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2583853pxb; Mon, 6 Sep 2021 00:06:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykIlS0yaEVjZtCSKGdPUF1KdGlOpJTTfCiUGioWZOMIr0Q8xXbW0tDYPYtNQgf/S01SfrN X-Received: by 2002:a05:6e02:503:: with SMTP id d3mr7654894ils.107.1630912009734; Mon, 06 Sep 2021 00:06:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630912009; cv=none; d=google.com; s=arc-20160816; b=z7k9OYSPw4hK4GOxVWhFqVvbsVBncdfhmpvC3viBUbPHqy9wEB8Hk7VTHWU/JSPLMI 25XUKvdQOTw8wXxx4UPRtlddcoYTEFsp2t29OZYHZBFtK3t0HBacP9bBMBlosi3khazH yVwR/PA2BfAR23xEE178ET8LeJr8+QhuEMqDb/G4KffXMBwrBDxv+xgC435jwN+uib8r FZi6KhGncv9OD46qi5edSvWgB1VcyRfr1pymKGAUDJHc7u+c6xSkW+LlS3HZYkrCAD4L L4tmATLJaiTxCraEHWFvqN8Nr5ZobYWlZeyZCIw1y98BLc59W18QGLqd0olF3by/zLdw W5VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:organisation:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=4oJEy0kqaD5w5qS8QTMbJFAB54obEJoKFqKG4GSRcuM=; b=GiBnimHEJp0yhV0y/A2Wh1glnwmgO7YXoh9thKz5YJbCTryBHmIiMbl1CDb/WkVpL1 2+qPyhSQ+KxN2HIrU69JoJH0P3BIMC/rUNk1f9RbkySHafjnooIWiI4mW9z7jE52Rap0 W0Ul5jbFRKQ9SCwqxaugudhNhDms2+ovRdHBvMw4iAqn0N9XZgQyzpVhuZTYPoaQ62P6 54B91+QLWwCXNkOO1kji4B4eK6wolJ6m68MxuPiOju67+onmaojJuee1gY+rvEdH5GDB hiYKV2Zmcp9xSfwNsZVMGTFQvvpuUJZirOtp+3j7AP2QJEILNFzzaYsgbLSxx/CGEz0L vdFA== 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 t10si8254378ilu.150.2021.09.06.00.06.25; Mon, 06 Sep 2021 00:06:49 -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 S239860AbhIFHGc (ORCPT + 99 others); Mon, 6 Sep 2021 03:06:32 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:33196 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239824AbhIFHG3 (ORCPT ); Mon, 6 Sep 2021 03:06:29 -0400 Received: from madeliefje.horms.nl (tulip.horms.nl [83.161.246.101]) by kirsty.vergenet.net (Postfix) with ESMTPA id 656A025B849; Mon, 6 Sep 2021 17:05:23 +1000 (AEST) Received: by madeliefje.horms.nl (Postfix, from userid 7100) id BFFF641AB; Mon, 6 Sep 2021 09:05:21 +0200 (CEST) Date: Mon, 6 Sep 2021 09:05:21 +0200 From: Simon Horman To: Geert Uytterhoeven Cc: Andrew Morton , Tony Luck , Jay Lan , Magnus Damm , Mike Rapoport , Rob Herring , Frank Rowand , linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 3/3] ia64: Make num_rsvd_regions static Message-ID: <20210906070521.GC19281@vergenet.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organisation: Horms Solutions BV User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 25, 2021 at 01:48:29PM +0200, Geert Uytterhoeven wrote: > 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 Reviewed-by: Simon Horman > --- > 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 >