Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751479Ab2F0Ed3 (ORCPT ); Wed, 27 Jun 2012 00:33:29 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:45528 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750805Ab2F0Ed1 (ORCPT ); Wed, 27 Jun 2012 00:33:27 -0400 Date: Tue, 26 Jun 2012 21:33:25 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Konrad Rzeszutek Wilk cc: Wen Congyang , lenb@kernel.org, linux-acpi@vger.kernel.org, "linux-kernel@vger.kernel.org" , Yasuaki ISIMATU Subject: Re: [PATCH 7/8] auto bind the memory device which is hotpluged before the driver is loaded In-Reply-To: <20120626170635.GC21579@phenom.dumpdata.com> Message-ID: References: <4FE97DD5.6030205@cn.fujitsu.com> <4FE97F60.90101@cn.fujitsu.com> <20120626170635.GC21579@phenom.dumpdata.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1239 Lines: 33 On Tue, 26 Jun 2012, Konrad Rzeszutek Wilk wrote: > > diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c > > index 148c88a..a682657 100644 > > --- a/drivers/acpi/acpi_memhotplug.c > > +++ b/drivers/acpi/acpi_memhotplug.c > > @@ -52,6 +52,9 @@ MODULE_LICENSE("GPL"); > > #define MEMORY_POWER_ON_STATE 1 > > #define MEMORY_POWER_OFF_STATE 2 > > > > +static bool auto_probe; > > +module_param(auto_probe, bool, S_IRUGO | S_IWUSR); > > + > > static int acpi_memory_device_add(struct acpi_device *device); > > static int acpi_memory_device_remove(struct acpi_device *device, int type); > > > > @@ -515,12 +518,44 @@ acpi_memory_register_notify_handler(acpi_handle handle, > > u32 level, void *ctxt, void **retv) > > { > > acpi_status status; > > - > > + struct acpi_memory_device *mem_device = NULL; > > + unsigned long long current_status; > > Can it just be unsigned long? > Not on 32-bit, the ACPI 2.0 and later specs can handle 64 bit integers. -- 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/