public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
* find_next_bit return type
@ 2004-08-01  6:24 Andrew Morton
  2004-08-01  6:25 ` Andrew Morton
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Andrew Morton @ 2004-08-01  6:24 UTC (permalink / raw)
  To: linux-arch


Seems that several 64-bit architectures are returning longs from
find_next_bit(), find_next_zero_bit(), etc.  x86 returns an int.  wli sent
me a patch which does

	return min(NR_CPUS, find_first_bit(srcp->bits, nbits));

so these architectures now get a zillion warnings.

We should be consistent here.  Is there any reason why these functions
cannot return integers?

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

end of thread, other threads:[~2004-08-02 10:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-01  6:24 find_next_bit return type Andrew Morton
2004-08-01  6:25 ` Andrew Morton
2004-08-01  6:58   ` David S. Miller
2004-08-01  7:02     ` Andrew Morton
2004-08-01  7:10       ` David S. Miller
2004-08-02 10:40         ` Andi Kleen
2004-08-01  6:25 ` Andrew Morton
2004-08-01  6:26 ` Andrew Morton
2004-08-01 11:53 ` William Lee Irwin III
2004-08-01 13:51   ` William Lee Irwin III
2004-08-01 15:05 ` James Bottomley
2004-08-01 15:07   ` William Lee Irwin III
2004-08-01 22:09   ` Paul Mackerras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox