[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1287149245-31169-1-git-send-email-robert.richter@amd.com>
Date: Fri, 15 Oct 2010 15:27:25 +0200
From: Robert Richter <robert.richter@....com>
To: Ingo Molnar <mingo@...e.hu>
CC: oprofile-list <oprofile-list@...ts.sf.net>,
lkml <linux-kernel@...r.kernel.org>,
Matt Fleming <matt@...sole-pimps.org>,
Will Deacon <will.deacon@....com>,
Robert Richter <robert.richter@....com>
Subject: [PATCH] oprofile: make !CONFIG_PM function stubs static inline
Make !CONFIG_PM function stubs static inline and remove section
attribute.
Signed-off-by: Robert Richter <robert.richter@....com>
---
drivers/oprofile/oprofile_perf.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/oprofile/oprofile_perf.c b/drivers/oprofile/oprofile_perf.c
index 36ec67e..9046f7b 100644
--- a/drivers/oprofile/oprofile_perf.c
+++ b/drivers/oprofile/oprofile_perf.c
@@ -190,6 +190,7 @@ static void oprofile_perf_stop(void)
}
#ifdef CONFIG_PM
+
static int oprofile_perf_suspend(struct platform_device *dev, pm_message_t state)
{
mutex_lock(&oprofile_perf_mutex);
@@ -241,9 +242,12 @@ static void exit_driverfs(void)
platform_device_unregister(oprofile_pdev);
platform_driver_unregister(&oprofile_driver);
}
+
#else
-static int __init init_driverfs(void) { return 0; }
-#define exit_driverfs() do { } while (0)
+
+static inline int init_driverfs(void) { return 0; }
+static inline void exit_driverfs(void) { }
+
#endif /* CONFIG_PM */
void oprofile_perf_exit(void)
--
1.7.3.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists