From: Robert Richter <robert.richter@amd.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: oprofile-list <oprofile-list@lists.sf.net>,
lkml <linux-kernel@vger.kernel.org>,
Matt Fleming <matt@console-pimps.org>,
Will Deacon <will.deacon@arm.com>,
Robert Richter <robert.richter@amd.com>
Subject: [PATCH] oprofile: make !CONFIG_PM function stubs static inline
Date: Fri, 15 Oct 2010 15:27:25 +0200 [thread overview]
Message-ID: <1287149245-31169-1-git-send-email-robert.richter@amd.com> (raw)
Make !CONFIG_PM function stubs static inline and remove section
attribute.
Signed-off-by: Robert Richter <robert.richter@amd.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
next reply other threads:[~2010-10-15 13:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-15 13:27 Robert Richter [this message]
2010-10-15 13:31 ` Robert Richter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1287149245-31169-1-git-send-email-robert.richter@amd.com \
--to=robert.richter@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=matt@console-pimps.org \
--cc=mingo@elte.hu \
--cc=oprofile-list@lists.sf.net \
--cc=will.deacon@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome