Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752023Ab0F2Rvq (ORCPT ); Tue, 29 Jun 2010 13:51:46 -0400 Received: from g4t0016.houston.hp.com ([15.201.24.19]:10497 "EHLO g4t0016.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751359Ab0F2Rvp (ORCPT ); Tue, 29 Jun 2010 13:51:45 -0400 From: Bjorn Helgaas To: Yinghai Lu Subject: Re: [PATCH 11/25] x86,lmb: Add lmb_reserve_range/lmb_free_range Date: Tue, 29 Jun 2010 11:52:27 -0600 User-Agent: KMail/1.13.2 (Linux/2.6.32-22-generic; KDE/4.4.2; i686; ; ) Cc: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Andrew Morton , David Miller , Benjamin Herrenschmidt , Linus Torvalds , Johannes Weiner , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org References: <1277227614-11581-1-git-send-email-yinghai@kernel.org> <1277227614-11581-12-git-send-email-yinghai@kernel.org> In-Reply-To: <1277227614-11581-12-git-send-email-yinghai@kernel.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201006291152.29199.bjorn.helgaas@hp.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 839 Lines: 32 On Tuesday, June 22, 2010 11:26:40 am Yinghai Lu wrote: > +void __init lmb_reserve_range(u64 start, u64 end, char *name) > +{ > + if (start == end) > + return; > + > + if (WARN_ONCE(start > end, "lmb_reserve_range: wrong range [%#llx, %#llx]\n", start, end)) Please use %pR format. > + return; > + > + lmb_reserve(start, end - start); > +} > + > +void __init lmb_free_range(u64 start, u64 end) > +{ > + if (start == end) > + return; > + > + if (WARN_ONCE(start > end, "lmb_free_range: wrong range [%#llx, %#llx]\n", start, end)) > + return; > + > + lmb_free(start, end - start); > +} > -- 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/