bitops: fix error on OpenBSD and mingw32
authorBlue Swirl <blauwirbel@gmail.com>
Fri, 25 Feb 2011 17:21:22 +0000 (17:21 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Fri, 25 Feb 2011 17:21:22 +0000 (17:21 +0000)
Fix this error:
  CC    bitops.o
In file included from /src/qemu/bitops.c:14:
/src/qemu/bitops.h:69: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'unsigned'

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
bitops.h

index e2b9df3..07d1a06 100644 (file)
--- a/bitops.h
+++ b/bitops.h
@@ -66,7 +66,7 @@ static unsigned long bitops_ffsl(unsigned long word)
  *
  * Undefined if no set bit exists, so code should check against 0 first.
  */
-static __always_inline unsigned long bitops_flsl(unsigned long word)
+static inline unsigned long bitops_flsl(unsigned long word)
 {
        int num = BITS_PER_LONG - 1;