Skip to content

Commit

Permalink
Suspend: Fix compilation warning for CONFIG_SUSPEND unset
Browse files Browse the repository at this point in the history
Suspend: Make debug facility depend on CONFIG_SUSPEND

Make the new suspend debug facility code depend on CONFIG_SUSPEND,
as appropriate, to remove the compiler warning printed when CONFIG_PM is set
and CONFIG_SUSPEND is not set.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Rafael J. Wysocki authored and Len Brown committed Feb 1, 2008
1 parent 8252575 commit 2ed43b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ int pm_notifier_call_chain(unsigned long val)

#endif /* CONFIG_PM_SLEEP */

#ifdef CONFIG_SUSPEND

#ifdef CONFIG_PM_DEBUG
int pm_test_level = TEST_NONE;

Expand Down

0 comments on commit 2ed43b6

Please sign in to comment.