From: Justin Chen <jchen@hpdst41.cup.hp.com>
To: linux-arch@vger.kernel.org
Cc: bjorn.helgaas@hp.com, justin.chen@hp.com,
linux-kernel@vger.kernel.org, ysato@users.sourceforge.jp
Subject: [PATCH 06/15] bitops: Change the bitmap index from int to unsigned long [h8300]
Date: Tue, 24 Feb 2009 20:49:21 -0800 (PST) [thread overview]
Message-ID: <200902250449.UAA12785@hpdst41.cup.hp.com> (raw)
Change the index to unsigned long in all bitops for [h8300]
Signed-off-by: Justin Chen <justin.chen@hp.com>
Reviewed-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
---
arch/h8300/include/asm/bitops.h | 8 ++++----
1 file changed, 1 insertion(+), 1 deletion(-)
diff -Nru a/arch/h8300/include/asm/bitops.h b/arch/h8300/include/asm/bitops.h
--- a/arch/h8300/include/asm/bitops.h 2009-02-13 15:31:30.000000000 -0800
+++ b/arch/h8300/include/asm/bitops.h 2009-02-15 18:19:39.771556647 -0800
@@ -43,7 +43,7 @@
break;
#define H8300_GEN_BITOP(FNAME,OP) \
-static __inline__ void FNAME(int nr, volatile unsigned long* addr) \
+static __inline__ void FNAME(unsigned long nr, volatile unsigned long* addr) \
{ \
volatile unsigned char *b_addr; \
b_addr = (volatile unsigned char *)addr + ((nr >> 3) ^ 3); \
@@ -79,7 +79,7 @@
#undef H8300_GEN_BITOP
#undef H8300_GEN_BITOP_CONST
-static __inline__ int test_bit(int nr, const unsigned long* addr)
+static __inline__ int test_bit(unsigned long nr, const unsigned long* addr)
{
return (*((volatile unsigned char *)addr +
((nr >> 3) ^ 3)) & (1UL << (nr & 7))) != 0;
@@ -111,7 +111,7 @@
break;
#define H8300_GEN_TEST_BITOP(FNNAME,OP) \
-static __inline__ int FNNAME(int nr, volatile void * addr) \
+static __inline__ int FNNAME(unsigned long nr, volatile void * addr) \
{ \
int retval = 0; \
char ccrsave; \
@@ -144,7 +144,7 @@
return retval; \
} \
\
-static __inline__ int __ ## FNNAME(int nr, volatile void * addr) \
+static __inline__ int __ ## FNNAME(unsigned long nr, volatile void * addr) \
{ \
int retval = 0; \
volatile unsigned char *b_addr; \
reply other threads:[~2009-02-25 4:47 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=200902250449.UAA12785@hpdst41.cup.hp.com \
--to=jchen@hpdst41.cup.hp.com \
--cc=bjorn.helgaas@hp.com \
--cc=justin.chen@hp.com \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ysato@users.sourceforge.jp \
/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®