Skip to content
Snippets Groups Projects
Commit 84803d7a authored by Blue Swirl's avatar Blue Swirl
Browse files

bitops: fix error on OpenBSD and mingw32


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: default avatarBlue Swirl <blauwirbel@gmail.com>
parent 04483e15
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment