[RFC PATCH v5 05/19] memory-hotplug: check whether memory is present or not
Tony Luck
tony.luck at intel.com
Sat Jul 28 06:17:20 EST 2012
On Fri, Jul 27, 2012 at 3:28 AM, Wen Congyang <wency at cn.fujitsu.com> wrote:
> +static inline int pfns_present(unsigned long pfn, unsigned long nr_pages)
> +{
> + int i;
> + for (i = 0; i < nr_pages; i++) {
> + if (pfn_present(pfn + 1))
Typo? I think you meant "pfn + i"
> + continue;
> + else
> + return -EINVAL;
> + }
> + return 0;
> +}
-Tony
More information about the Linuxppc-dev
mailing list