lkml.org 
[lkml]   [2002]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: 2.5.24 on alpha; fls redefined!? HELP NEEDED
Date
Oliver Pitzeier wrote:
> Where comes this from and _why_???
>
> /usr/src/linux-2.5.24/include/asm/bitops.h:471:1: warning:
> "fls" redefined
> ^^^^^^^^^^^^^^^^^^^^^^^^

OK. Found it... Here...
467 /*
468 * fls: find last bit set.
469 */
470
471 #define fls(x) generic_fls(x)

I took it out. I guess it's not needed anymore because of this:

318 /*
319 * fls: find last bit set.
320 */
321 #if defined(__alpha_cix__) && defined(__alpha_fix__)
322 static inline int fls(int word)
323 {
324 long result;
325 __asm__("ctlz %1,%0" : "=r"(result) : "r"(word &
0xffffffff));
326 return 64 - result;
327 }
328 #else
329 #define fls generic_fls
330 #endif

Right? :o)

Greetz,
Oliver


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.080 / U:31.952 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site