From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Len Brown <lenb@kernel.org>
Cc: pm list <linux-pm@lists.linux-foundation.org>,
Pavel Machek <pavel@suse.cz>, LKML <linux-kernel@vger.kernel.org>,
Ingo Molnar <mingo@elte.hu>,
Masami Hiramatsu <mhiramat@redhat.com>,
Cheng Renquan <crquan@gmail.com>
Subject: [PATCH 1/2] PM: Fix freezer compilation if PM_SLEEP is unset
Date: Tue, 6 Jan 2009 21:14:04 +0100 [thread overview]
Message-ID: <200901062114.04649.rjw@sisk.pl> (raw)
In-Reply-To: <200901062112.29227.rjw@sisk.pl>
From: Rafael J. Wysocki <rjw@sisk.pl>
Freezer fails to compile if with the following configuration
settings:
CONFIG_CGROUPS=y
CONFIG_CGROUP_FREEZER=y
CONFIG_MODULES=y
CONFIG_FREEZER=y
CONFIG_PM=y
CONFIG_PM_SLEEP=n
Fix this by making process.o compilation depend on CONFIG_FREEZER.
Reported-by: Cheng Renquan <crquan@gmail.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@suse.cz>
---
kernel/power/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: linux-2.6/kernel/power/Makefile
===================================================================
--- linux-2.6.orig/kernel/power/Makefile
+++ linux-2.6/kernel/power/Makefile
@@ -4,7 +4,8 @@ EXTRA_CFLAGS += -DDEBUG
endif
obj-y := main.o
-obj-$(CONFIG_PM_SLEEP) += process.o console.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_MAGIC_SYSRQ) += poweroff.o
next prev parent reply other threads:[~2009-01-06 20:17 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-06 20:12 [PATCH 0/2] PM: Compilation fixes related to the freezer Rafael J. Wysocki
2009-01-06 20:14 ` Rafael J. Wysocki [this message]
2009-01-06 20:15 ` [PATCH 2/2] kprobes: check CONFIG_FREEZER instead of CONFIG_PM Rafael J. Wysocki
2009-01-07 12:16 ` Ingo Molnar
2009-01-09 20:30 ` Len Brown
2009-01-11 3:49 ` Ingo Molnar
2009-02-10 1:05 ` Ingo Molnar
2009-02-09 20:51 ` Masami Hiramatsu
2009-02-10 12:37 ` Ingo Molnar
2009-02-10 13:56 ` Rafael J. Wysocki
2009-02-10 15:54 ` Masami Hiramatsu
2009-02-10 21:40 ` Rafael J. Wysocki
2009-02-11 1:23 ` Masami Hiramatsu
2009-02-11 9:38 ` Rafael J. Wysocki
2009-02-11 21:33 ` [PATCH] PM: Fix build for CONFIG_PM unset Rafael J. Wysocki
2009-02-08 23:47 ` Pavel Machek
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=200901062114.04649.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=crquan@gmail.com \
--cc=lenb@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=mhiramat@redhat.com \
--cc=mingo@elte.hu \
--cc=pavel@suse.cz \
/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