All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]: test_bit returns int in all the architectures
@ 2002-12-20 10:20 Juan Quintela
  2002-12-20 12:59 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Juan Quintela @ 2002-12-20 10:20 UTC (permalink / raw)
  To: Ralf Baechle, mipslist


Hi
        to be consistent with everybody else, test_bit should return a
        int.  Notice that it only returns 0/1, not a big deal.

Later, Juan.

Index: include/asm-mips64/bitops.h
===================================================================
RCS file: /home/cvs/linux/include/asm-mips64/bitops.h,v
retrieving revision 1.15.2.10
diff -u -r1.15.2.10 bitops.h
--- include/asm-mips64/bitops.h	5 Dec 2002 03:25:20 -0000	1.15.2.10
+++ include/asm-mips64/bitops.h	20 Dec 2002 09:55:13 -0000
@@ -302,7 +302,7 @@
  * @nr: bit number to test
  * @addr: Address to start counting from
  */
-static inline unsigned long test_bit(int nr, volatile void * addr)
+static inline unsigned int test_bit(int nr, volatile void * addr)
 {
 	return 1UL & (((volatile unsigned long *) addr)[nr >> 6] >> (nr & 0x3f));
 }


-- 
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-20 13:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-20 10:20 [PATCH]: test_bit returns int in all the architectures Juan Quintela
2002-12-20 12:59 ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.