From: Gautham R Shenoy <ego@in•ibm.com>
To: linuxppc-dev@lists•ozlabs.org
Cc: Benjamin Herrenschmidt <benh@au1•ibm.com>
Subject: [PATCH 2/2] pseries: Make declarations of cpu_hotplug_driver_lock() ANSI compatible.
Date: Thu, 10 Dec 2009 16:49:42 +0530 [thread overview]
Message-ID: <20091210111942.18281.33401.stgit@sofia.in.ibm.com> (raw)
In-Reply-To: <20091210111937.18281.5146.stgit@sofia.in.ibm.com>
And add the __acquires() and __releases() annotations, while at it.
Signed-off-by: Gautham R Shenoy <ego@in•ibm.com>
---
arch/powerpc/platforms/pseries/dlpar.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/platforms/pseries/dlpar.c b/arch/powerpc/platforms/pseries/dlpar.c
index 12df9e8..67b7a10 100644
--- a/arch/powerpc/platforms/pseries/dlpar.c
+++ b/arch/powerpc/platforms/pseries/dlpar.c
@@ -346,12 +346,14 @@ int dlpar_release_drc(u32 drc_index)
static DEFINE_MUTEX(pseries_cpu_hotplug_mutex);
-void cpu_hotplug_driver_lock()
+void cpu_hotplug_driver_lock(void)
+__acquires(pseries_cpu_hotplug_mutex)
{
mutex_lock(&pseries_cpu_hotplug_mutex);
}
-void cpu_hotplug_driver_unlock()
+void cpu_hotplug_driver_unlock(void)
+__releases(pseries_cpu_hotplug_mutex)
{
mutex_unlock(&pseries_cpu_hotplug_mutex);
}
prev parent reply other threads:[~2009-12-10 11:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-10 11:19 [PATCH 1/2] pseries: Don't panic when H_PROD fails during cpu-online Gautham R Shenoy
2009-12-10 11:19 ` Gautham R Shenoy [this message]
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=20091210111942.18281.33401.stgit@sofia.in.ibm.com \
--to=ego@in$(echo .)ibm.com \
--cc=benh@au1$(echo .)ibm.com \
--cc=linuxppc-dev@lists$(echo .)ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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