From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e31.co.us.ibm.com (e31.co.us.ibm.com [32.97.110.149]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e31.co.us.ibm.com", Issuer "Equifax" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 1B6D9B7B7A for ; Sat, 19 Sep 2009 01:02:48 +1000 (EST) Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e31.co.us.ibm.com (8.14.3/8.13.1) with ESMTP id n8IEucZd028983 for ; Fri, 18 Sep 2009 08:56:38 -0600 Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n8IF2VBa230606 for ; Fri, 18 Sep 2009 09:02:32 -0600 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n8IF2USm022747 for ; Fri, 18 Sep 2009 09:02:30 -0600 Message-ID: <4AB3A102.90406@austin.ibm.com> Date: Fri, 18 Sep 2009 10:02:26 -0500 From: Nathan Fontenot MIME-Version: 1.0 To: linuxppc-dev@ozlabs.org Subject: [PATCH 3/5 v2] Export memory_sysdev_class References: <4AB39FB3.1020608@austin.ibm.com> In-Reply-To: <4AB39FB3.1020608@austin.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Export the memory_sysdev_class structure. This is needed so we can create a 'release' file in sysfs in addition to the existing 'probe' file in order to support DLPAR removal of memory on the powerpc/pseries platform. The new 'release' file will be powerpc/pseries only. Signed-off-by: Nathan Fontenot --- Index: powerpc/drivers/base/memory.c =================================================================== --- powerpc.orig/drivers/base/memory.c 2009-09-15 14:52:12.000000000 -0500 +++ powerpc/drivers/base/memory.c 2009-09-15 14:53:32.000000000 -0500 @@ -28,9 +28,10 @@ #define MEMORY_CLASS_NAME "memory" -static struct sysdev_class memory_sysdev_class = { +struct sysdev_class memory_sysdev_class = { .name = MEMORY_CLASS_NAME, }; +EXPORT_SYMBOL(memory_sysdev_class); static const char *memory_uevent_name(struct kset *kset, struct kobject *kobj) { Index: powerpc/include/linux/memory_hotplug.h =================================================================== --- powerpc.orig/include/linux/memory_hotplug.h 2009-09-15 14:52:12.000000000 -0500 +++ powerpc/include/linux/memory_hotplug.h 2009-09-15 14:53:32.000000000 -0500 @@ -12,6 +12,8 @@ #ifdef CONFIG_MEMORY_HOTPLUG +extern struct sysdev_class memory_sysdev_class; + /* * Types for free bootmem. * The normal smallest mapcount is -1. Here is smaller value than it.