public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Magnus Damm <magnus.damm@gmail.com>
Cc: linux-pm@lists.linux-foundation.org, akpm@linux-foundation.org
Subject: Re: [PATCH] pm: remove unused asm/suspend.h
Date: Thu, 14 May 2009 19:45:07 +0200	[thread overview]
Message-ID: <200905141945.07861.rjw@sisk.pl> (raw)
In-Reply-To: <aec7e5c30905132009u6aa82b2dq2e119d9712730b49@mail.gmail.com>

On Thursday 14 May 2009, Magnus Damm wrote:
> On Wed, May 13, 2009 at 10:24 PM, Rafael J. Wysocki <rjw@sisk.pl> wrote:
> > On Wednesday 13 May 2009, Magnus Damm wrote:
> >> On Wed, May 13, 2009 at 4:32 AM, Pavel Machek <pavel@ucw.cz> wrote:
> >> > On Tue 2009-05-12 22:16:06, Magnus Damm wrote:
> >> >>
> >> >> From: Magnus Damm <damm@igel.co.jp>
> >> >>
> >> >> This patch removes unused asm/suspend.h files for
> >> >> the following architectures:
> >> >>
> >> >>  alpha, arm, ia64, m68k, mips, s390, um
> >> >>
> >> >> Signed-off-by: Magnus Damm <damm@igel.co.jp>
> >> >
> >> > Are you sure? arm does support suspend...
> >>
> >> Not sure, but these days <asm/suspend.h> is only included from
> >> kernel/power/disk.c. And that file is only built if CONFIG_HIBERNATION
> >> is set. I've grepped for arch_prepare_suspend and
> >> ARCH_HIBERNATION_POSSIBLE but I don't get any matches under
> >> arch/arm...
> >>
> >> Or am I misunderstanding? =)
> >
> > Sounds reasonable, but have you actually tested compilation on the
> > architectures you're changing?
> 
> No, I have not. However, grepping shows that it's pretty safe:
> 
> $ find . | xargs grep asm/suspend
> 
> (files in arch/powerpc, arch/x86, arch/sh and kernel/power/disk.c)
> 
> Basically, the patch is doing further cleanups on top of:
> 
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a8af78982ff4c0b3731527b0217d286a343a3089
> 
> Since that patch is included upstream already it is safe to assume
> that <asm/suspend.h> is only needed by architectures setting
> ARCH_HIBERNATION_POSSIBLE. Which means powerpc, x86 and sh. The rest
> of the header files can go away.
> 
> Still want me to compile test for all architectures affected?

No, thanks.

Best,
Rafael

  reply	other threads:[~2009-05-14 17:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-12 13:16 [PATCH] pm: remove unused asm/suspend.h Magnus Damm
2009-05-12 19:32 ` Pavel Machek
2009-05-13 10:04   ` Magnus Damm
2009-05-13 13:24     ` Rafael J. Wysocki
2009-05-14  3:09       ` Magnus Damm
2009-05-14 17:45         ` Rafael J. Wysocki [this message]
2009-05-14  9:31     ` Pavel Machek
2009-05-14 23:11       ` Rafael J. Wysocki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200905141945.07861.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=akpm@linux-foundation.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=magnus.damm@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox