[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200906082048.28779.rjw@sisk.pl>
Date: Mon, 8 Jun 2009 20:48:28 +0200
From: "Rafael J. Wysocki" <rjw@...k.pl>
To: Cornelia Huck <cornelia.huck@...ibm.com>
Cc: Pavel Machek <pavel@....cz>,
Martin Schwidefsky <schwidefsky@...ibm.com>,
linux-kernel@...r.kernel.org, linux-s390@...r.kernel.org,
linux-pm@...ts.linux-foundation.org,
Heiko Carstens <heiko.carstens@...ibm.com>
Subject: Re: [patch 01/38] pm: Move nvs routines into a seperate file.
On Monday 08 June 2009, Cornelia Huck wrote:
> On Mon, 8 Jun 2009 08:35:01 +0200,
> Pavel Machek <pavel@....cz> wrote:
>
> > On Thu 2009-06-04 18:18:48, Martin Schwidefsky wrote:
> > > From: Cornelia Huck <cornelia.huck@...ibm.com>
> > >
> > > 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 nvs.c, which is only
> > > compiled if HAS_IOMEM is set.
> > >
> > > Signed-off-by: Cornelia Huck <cornelia.huck@...ibm.com>
> > > Signed-off-by: Martin Schwidefsky <schwidefsky@...ibm.com>
> > > ---
> > > include/linux/suspend.h | 18 ++++--
> > > kernel/power/Kconfig | 4 +
> > > kernel/power/Makefile | 1
> > > kernel/power/nvs.c | 131 ++++++++++++++++++++++++++++++++++++++++++++++++
> > > kernel/power/swsusp.c | 122 --------------------------------------------
> > > 5 files changed, 147 insertions(+), 129 deletions(-)
> > >
> > > Index: linux-2.6/kernel/power/nvs.c
> > > ===================================================================
> > > --- /dev/null
> > > +++ linux-2.6/kernel/power/nvs.c
> >
> > Ideally, filename would be a bit more descriptive.
>
> hibernate_nvs.c?
Yes, please.
> > > @@ -0,0 +1,131 @@
> > > +/*
> > > + * Routines for NVS memory handling
> > > + */
> >
> > If you copy&pasted code, you need to copy&paste copyright notices, too.
>
> Which ones? Rafael, it seems you wrote the NVS code - which copyright
> should I use?
Same as in kernel/irq/pm.c , please.
> > > --- linux-2.6.orig/kernel/power/Makefile
> > > +++ linux-2.6/kernel/power/Makefile
> > > @@ -7,5 +7,6 @@ obj-$(CONFIG_PM) += main.o
> > > obj-$(CONFIG_PM_SLEEP) += console.o
> > > obj-$(CONFIG_FREEZER) += process.o
> > > obj-$(CONFIG_HIBERNATION) += swsusp.o disk.o snapshot.o swap.o user.o
> > > +obj-$(CONFIG_NVS) += nvs.o
> > >
> > > obj-$(CONFIG_MAGIC_SYSRQ) += poweroff.o
> >
> > CONFIG_NVS is definitely not descriptive enough. C_HIBERNATION_NVS?
>
> It's a hidden config variable - but I can change it to
> CONFIG_HIBERNATION_NVS.
Please do that too.
When you're done, please send the patch to me and I'll put it into the suspend
tree for 2.6.31.
Best,
Rafael
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists