Skip to content

Commit 33f1d7e

Browse files
rjwysockilenb
authored andcommitted
PM: Fix freezer compilation if PM_SLEEP is unset
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> Signed-off-by: Len Brown <len.brown@intel.com>
1 parent c597650 commit 33f1d7e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎kernel/power/Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ EXTRA_CFLAGS += -DDEBUG
44
endif
55

66
obj-y := main.o
7-
obj-$(CONFIG_PM_SLEEP) += process.o console.o
7+
obj-$(CONFIG_PM_SLEEP) += console.o
8+
obj-$(CONFIG_FREEZER) += process.o
89
obj-$(CONFIG_HIBERNATION) += swsusp.o disk.o snapshot.o swap.o user.o
910

1011
obj-$(CONFIG_MAGIC_SYSRQ) += poweroff.o

0 commit comments

Comments
 (0)