From: Justin Chen <jchen@hpdst41.cup.hp.com>
To: linux-arch@vger.kernel.org
Cc: benh@kernel.crashing.org, bjorn.helgaas@hp.com,
justin.chen@hp.com, linux-kernel@vger.kernel.org,
paulus@samba.org
Subject: [PATCH 11/15] bitops: Change the bitmap index from int to unsigned long [powerpc]
Date: Tue, 24 Feb 2009 20:51:40 -0800 (PST) [thread overview]
Message-ID: <200902250451.UAA12871@hpdst41.cup.hp.com> (raw)
Change the index to unsigned long in all bitops for [powerpc]
Signed-off-by: Justin Chen <justin.chen@hp.com>
Reviewed-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
---
arch/powerpc/include/asm/bitops.h | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff -Nru a/arch/powerpc/include/asm/bitops.h b/arch/powerpc/include/asm/bitops.h
--- a/arch/powerpc/include/asm/bitops.h 2009-02-13 15:31:30.000000000 -0800
+++ b/arch/powerpc/include/asm/bitops.h 2009-02-15 18:19:39.784251959 -0800
@@ -56,7 +56,7 @@
#define BITOP_WORD(nr) ((nr) / BITS_PER_LONG)
#define BITOP_LE_SWIZZLE ((BITS_PER_LONG-1) & ~0x7)
-static __inline__ void set_bit(int nr, volatile unsigned long *addr)
+static __inline__ void set_bit(unsigned long nr, volatile unsigned long *addr)
{
unsigned long old;
unsigned long mask = BITOP_MASK(nr);
@@ -73,7 +73,8 @@
: "cc" );
}
-static __inline__ void clear_bit(int nr, volatile unsigned long *addr)
+static __inline__ void
+clear_bit(unsigned long nr, volatile unsigned long *addr)
{
unsigned long old;
unsigned long mask = BITOP_MASK(nr);
@@ -90,7 +91,8 @@
: "cc" );
}
-static __inline__ void clear_bit_unlock(int nr, volatile unsigned long *addr)
+static __inline__ void
+clear_bit_unlock(unsigned long nr, volatile unsigned long *addr)
{
unsigned long old;
unsigned long mask = BITOP_MASK(nr);
@@ -108,7 +110,8 @@
: "cc", "memory");
}
-static __inline__ void change_bit(int nr, volatile unsigned long *addr)
+static __inline__ void
+change_bit(unsigned long nr, volatile unsigned long *addr)
{
unsigned long old;
unsigned long mask = BITOP_MASK(nr);
@@ -228,7 +231,8 @@
#include <asm-generic/bitops/non-atomic.h>
-static __inline__ void __clear_bit_unlock(int nr, volatile unsigned long *addr)
+static __inline__ void
+__clear_bit_unlock(unsigned long nr, volatile unsigned long *addr)
{
__asm__ __volatile__(LWSYNC_ON_SMP "" ::: "memory");
__clear_bit(nr, addr);
reply other threads:[~2009-02-25 4:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200902250451.UAA12871@hpdst41.cup.hp.com \
--to=jchen@hpdst41.cup.hp.com \
--cc=benh@kernel.crashing.org \
--cc=bjorn.helgaas@hp.com \
--cc=justin.chen@hp.com \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulus@samba.org \
/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
all inboxes | Powered by JetHome®