Skip to contentSkip to conversation

bitops.h: fls(unsigned long )

parisc-linux Joel Soete 1 participant 1 message Aug 25, 2004 1 message not in the archive

lore
Share & tools
lore

Joel Soete

author
#1 lore raw
In reply to a message not in the archive
Quoted 3 lines · Joel Soete
Quoted 1 line

Sorry for this auto-reply but I just reboot with success my N4k (smp

64bit

Quoted 11 lines
Quoted 6 lines

kernel 2.6.8.1-pa7) with this patch and all works fine :)

If Ok for everybody can somebody ci for me (no cvs access :) )?

Review

Quoted 2 lines
(quoted diff) +1 -1
-static __inline__ int fls(int x)
+static __inline__ int fls(unsigned long x)

This is absolutely not OK. fls is prototyped to have an int parameter,=

not an unsigned long. Why do you want to do this, anyway?

Oops: the original idea was to propose the equivalence of  __ffs(unsingne=

d
long).

My bad.

Anyway it's tested fully ok and if we need it later, it's at least availa= ble
in the list ;)

Thanks for advise,
Joel

-------------------------------------------------------------------------=
--
Tiscali ADSL LIGHT, 19,95 EUR/mois pendant 6 mois, c'est le moment de fai= re
le pas!
http://reg.tiscali.be/default.asp?lg=3Dfr

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux