From feb037e957149f0dc405b80b4bb9cdafec6fcb0f Mon Sep 17 00:00:00 2001 From: Ming Lei Date: Wed, 28 Sep 2011 13:07:04 +0800 Subject: [PATCH] kernel/trace/rpm-traces.c: fix build failure if RUNTIME_PM unset Signed-off-by: Ming Lei --- kernel/trace/rpm-traces.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/kernel/trace/rpm-traces.c b/kernel/trace/rpm-traces.c index 998949e..c161c5e 100644 --- a/kernel/trace/rpm-traces.c +++ b/kernel/trace/rpm-traces.c @@ -11,6 +11,7 @@ #include #include +#ifdef CONFIG_PM_RUNTIME #define CREATE_TRACE_POINTS #include @@ -18,4 +19,5 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(rpm_return_int); EXPORT_TRACEPOINT_SYMBOL_GPL(rpm_idle); EXPORT_TRACEPOINT_SYMBOL_GPL(rpm_suspend); EXPORT_TRACEPOINT_SYMBOL_GPL(rpm_resume); +#endif -- 1.7.5.4