]> xenbits.xensource.com Git - qemu-xen-3.4-testing.git/commitdiff
Make hweight32 function static
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 24 Mar 2010 17:16:51 +0000 (17:16 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 24 Mar 2010 17:16:51 +0000 (17:16 +0000)
Avoids compiler warning.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
vl.c

diff --git a/vl.c b/vl.c
index 9f95c2f3ec6ad23137f31c3cc373f5d67dae5bfa..a49bf0896405673ced5a8db5e3a8cda0bfeb40db 100644 (file)
--- 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);