Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

suspend: fix ia64 allmodconfig build

kernel/power/main.c:488: error: ‘pm_test_attr’ undeclared here (not in a function)

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by

Rafael J. Wysocki and committed by
Len Brown
7671b8ae a3627f67

+2 -5
+2 -5
kernel/power/main.c
··· 53 53 == NOTIFY_BAD) ? -EINVAL : 0; 54 54 } 55 55 56 - #endif /* CONFIG_PM_SLEEP */ 57 - 58 - #ifdef CONFIG_SUSPEND 59 - 60 56 #ifdef CONFIG_PM_DEBUG 61 57 int pm_test_level = TEST_NONE; 62 58 ··· 128 132 static inline int suspend_test(int level) { return 0; } 129 133 #endif /* !CONFIG_PM_DEBUG */ 130 134 135 + #endif /* CONFIG_PM_SLEEP */ 131 136 132 137 #ifdef CONFIG_SUSPEND 133 138 ··· 492 495 #ifdef CONFIG_PM_TRACE 493 496 &pm_trace_attr.attr, 494 497 #endif 495 - #ifdef CONFIG_PM_DEBUG 498 + #if defined(CONFIG_PM_SLEEP) && defined(CONFIG_PM_DEBUG) 496 499 &pm_test_attr.attr, 497 500 #endif 498 501 NULL,