From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755609AbZBVWk6 (ORCPT ); Sun, 22 Feb 2009 17:40:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753333AbZBVWku (ORCPT ); Sun, 22 Feb 2009 17:40:50 -0500 Received: from smtp5.welho.com ([213.243.153.39]:51596 "EHLO smtp5.welho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753073AbZBVWkt (ORCPT ); Sun, 22 Feb 2009 17:40:49 -0500 Date: Mon, 23 Feb 2009 00:42:42 +0200 From: Adrian Bunk To: Linus Torvalds Cc: "Rafael J. Wysocki" , LKML , Ingo Molnar , "Eric W. Biederman" , Benjamin Herrenschmidt , Jeremy Fitzhardinge , pm list , Len Brown , Jesse Barnes , Thomas Gleixner Subject: Re: [RFC][PATCH 1/2] PM: Split up sysdev_[suspend|resume] from device_power_[down|up] Message-ID: <20090222224242.GD4485@localhost.pp.htv.fi> References: <200902221837.49396.rjw@sisk.pl> <200902221838.51548.rjw@sisk.pl> <20090222205654.GC4485@localhost.pp.htv.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 22, 2009 at 01:07:28PM -0800, Linus Torvalds wrote: > > > On Sun, 22 Feb 2009, Adrian Bunk wrote: > > ... > > MODPOST 2586 modules > > ERROR: "sysdev_resume" [arch/x86/kernel/apm.ko] undefined! > > ERROR: "sysdev_suspend" [arch/x86/kernel/apm.ko] undefined! > > make[2]: *** [__modpost] Error 1 > > Ahh. device_power_[down|up] were EXPORT_SYMBOL_GPL, so now that we've > split them, so must sysdev_[suspend|resume] be. > > Does this fix it? Thanks, works fine. > Linus > --- > drivers/base/sys.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/drivers/base/sys.c b/drivers/base/sys.c > index c98c31e..ef2055e 100644 > --- a/drivers/base/sys.c > +++ b/drivers/base/sys.c > @@ -432,6 +432,7 @@ aux_driver: > } > return ret; > } > +EXPORT_SYMBOL_GPL(sysdev_suspend); > > > /** > @@ -463,6 +464,7 @@ int sysdev_resume(void) > } > return 0; > } > +EXPORT_SYMBOL_GPL(sysdev_resume); > > > int __init system_bus_init(void) cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed