Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757952AbYHZJdm (ORCPT ); Tue, 26 Aug 2008 05:33:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753401AbYHZJdf (ORCPT ); Tue, 26 Aug 2008 05:33:35 -0400 Received: from bigben2.bytemark.co.uk ([80.68.81.132]:58443 "EHLO bigben2.bytemark.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752915AbYHZJde (ORCPT ); Tue, 26 Aug 2008 05:33:34 -0400 Date: Tue, 26 Aug 2008 10:33:35 +0100 From: Andy Whitcroft To: Adrian Bunk Cc: Mel Gorman , wli@holomorphy.com, Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [2.6 patch] mm/hugetlb.c: make resv_map_{alloc,release}() static Message-ID: <20080826093335.GE29207@brain> References: <20080819134657.GD8852@cs181140183.pp.htv.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080819134657.GD8852@cs181140183.pp.htv.fi> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1174 Lines: 37 On Tue, Aug 19, 2008 at 04:46:57PM +0300, Adrian Bunk wrote: > This patch makes the needlessly global resv_map_{alloc,release}() > static. > > Signed-off-by: Adrian Bunk Acked-by: Andy Whitcroft > 99bcfd48d93a0c6286b6345f52d10a0a1a43f8c4 > diff --git a/mm/hugetlb.c b/mm/hugetlb.c > index 28a2980..c3bb4d6 100644 > --- a/mm/hugetlb.c > +++ b/mm/hugetlb.c > @@ -262,7 +262,7 @@ struct resv_map { > struct list_head regions; > }; > > -struct resv_map *resv_map_alloc(void) > +static struct resv_map *resv_map_alloc(void) > { > struct resv_map *resv_map = kmalloc(sizeof(*resv_map), GFP_KERNEL); > if (!resv_map) > @@ -274,7 +274,7 @@ struct resv_map *resv_map_alloc(void) > return resv_map; > } > > -void resv_map_release(struct kref *ref) > +static void resv_map_release(struct kref *ref) > { > struct resv_map *resv_map = container_of(ref, struct resv_map, refs); -apw -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/