From: Ian Jackson Date: Wed, 24 Mar 2010 17:16:51 +0000 (+0000) Subject: Make hweight32 function static X-Git-Tag: xen-4.0.0-rc8 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f1d909f0f854194f5a40d850886d1413fb8b63c2;p=qemu-xen-4.1-testing.git Make hweight32 function static Avoids compiler warning. Signed-off-by: Ian Jackson --- diff --git a/vl.c b/vl.c index 9f95c2f3e..a49bf0896 100644 --- a/vl.c +++ b/vl.c @@ -4707,7 +4707,7 @@ static void termsig_setup(void) #endif /* 32bit Hamming weight */ -unsigned int hweight32(unsigned int w) +static unsigned int hweight32(unsigned int w) { unsigned int res = w - ((w >> 1) & 0x55555555); res = (res & 0x33333333) + ((res >> 2) & 0x33333333);