Skip to content
Snippets Groups Projects
Commit cd254f29 authored by Robert Richter's avatar Robert Richter
Browse files

oprofile: make !CONFIG_PM function stubs static inline


Make !CONFIG_PM function stubs static inline and remove section
attribute.

Signed-off-by: default avatarRobert Richter <robert.richter@amd.com>
parent b3b3a9b6
No related branches found
No related tags found
No related merge requests found
...@@ -190,6 +190,7 @@ static void oprofile_perf_stop(void) ...@@ -190,6 +190,7 @@ static void oprofile_perf_stop(void)
} }
#ifdef CONFIG_PM #ifdef CONFIG_PM
static int oprofile_perf_suspend(struct platform_device *dev, pm_message_t state) static int oprofile_perf_suspend(struct platform_device *dev, pm_message_t state)
{ {
mutex_lock(&oprofile_perf_mutex); mutex_lock(&oprofile_perf_mutex);
...@@ -241,9 +242,12 @@ static void exit_driverfs(void) ...@@ -241,9 +242,12 @@ static void exit_driverfs(void)
platform_device_unregister(oprofile_pdev); platform_device_unregister(oprofile_pdev);
platform_driver_unregister(&oprofile_driver); platform_driver_unregister(&oprofile_driver);
} }
#else #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 */ #endif /* CONFIG_PM */
void oprofile_perf_exit(void) void oprofile_perf_exit(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment