Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762683AbZFKW3f (ORCPT ); Thu, 11 Jun 2009 18:29:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759803AbZFKW30 (ORCPT ); Thu, 11 Jun 2009 18:29:26 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:54687 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759514AbZFKW3Z (ORCPT ); Thu, 11 Jun 2009 18:29:25 -0400 From: "Rafael J. Wysocki" To: Pavel Machek Subject: Re: [PATCH v2] pm: Move nvs routines into a seperate file. Date: Fri, 12 Jun 2009 00:29:57 +0200 User-Agent: KMail/1.11.2 (Linux/2.6.30-rc8-rjw; KDE/4.2.4; x86_64; ; ) Cc: Heiko Carstens , Cornelia Huck , Martin Schwidefsky , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-pm@lists.linux-foundation.org, Ingo Molnar References: <20090604161847.513682672@de.ibm.com> <200906112346.28782.rjw@sisk.pl> <20090611220517.GF27376@elf.ucw.cz> In-Reply-To: <20090611220517.GF27376@elf.ucw.cz> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906120030.00425.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3108 Lines: 66 On Friday 12 June 2009, Pavel Machek wrote: > On Thu 2009-06-11 23:46:27, Rafael J. Wysocki wrote: > > On Thursday 11 June 2009, Pavel Machek wrote: > > > On Thu 2009-06-11 15:32:18, Heiko Carstens wrote: > > > > On Wed, Jun 10, 2009 at 01:09:19AM +0200, Rafael J. Wysocki wrote: > > > > > On Tuesday 09 June 2009, Cornelia Huck wrote: > > > > > > The *_nvs_* routines in swsusp.c make use of the io*map() > > > > > > functions, which are only provided for HAS_IOMEM, thus > > > > > > breaking compilation if HAS_IOMEM is not set. Fix this > > > > > > by moving the *_nvs_* routines into hibernation_nvs.c, which > > > > > > is only compiled if HAS_IOMEM is set. > > > > > > > > > > > > Signed-off-by: Cornelia Huck > > > > > > > > > > Thanks, I added the GPLv2 line to the header comment and changed the name > > > > > of the file to hibernate_nvs.c (to match the other changes in the works). > > > > > > > > > > I'll carry out some compilation testing on it and put it into the tree shortly. > > > > > > > > Rafael, could you add the patch below as well? > > > > Or should that go in via git390? > > > > > > > > Subject: [PATCH] PM: add empty suspend/resume device irq functions > > > > > > > > From: Heiko Carstens > > > > > > > > git commit 0a0c5168 "PM: Introduce functions for suspending and resuming > > > > device interrupts" introduced some helper functions. However these > > > > functions are only available for architectures which support > > > > GENERIC_HARDIRQS. > > > > > > > > Other architectures will see this build error: > > > > > > > > drivers/built-in.o: In function `sysdev_suspend': > > > > (.text+0x15138): undefined reference to `check_wakeup_irqs' > > > > drivers/built-in.o: In function `device_power_up': > > > > (.text+0x1cb66): undefined reference to `resume_device_irqs' > > > > drivers/built-in.o: In function `device_power_down': > > > > (.text+0x1cb92): undefined reference to `suspend_device_irqs' > > > > > > > > To fix this add some empty inline functions for !GENERIC_HARDIRQS. > > > > > > I don't think that's right fix. If architecture does not use > > > GENERIC_HARDIRQS, it may want to implement *_device_irqs() > > > itself. Before your patch, it could, after your patch, it can not. > > > > > > Better put those empty functions in arch/s390/include? > > > > If any of the affected architectures wants to implement *_device_irqs() > > itself, it can do the appropriate change in future. For now, let's not break > > compilation on them, shall we? > > Well, if one of those architectures will want to implement > *_device_irqs(), it will have to either modify s390, and all other > !GENERIC_HARDIRQS architectures. Why will it? I think it will be sufficient to modify the header changed by this patch and the architecture in question. Best, Rafael -- 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/