Re: building kvm-31 against linux-2.6.22-git16

Avi Kivity
2007-07-22T09:43:25Z

Chris Clayton wrote:
> Hi,
>
> Due to changes to kmem_cache_create, kvm-31 fails to build against
> linux-2.6.22-git16:
>
> CC [M] /home/users/chris/rpm/BUILD/kvm-31/kernel/vmx-debug.o
> CC [M] /home/users/chris/rpm/BUILD/kvm-31/kernel/kvm_main.o
> CC [M] /home/users/chris/rpm/BUILD/kvm-31/kernel/mmu.o
> /home/users/chris/rpm/BUILD/kvm-31/kernel/mmu.c: In
> function 'kvm_mmu_module_init':
> /home/users/chris/rpm/BUILD/kvm-31/kernel/mmu.c:1314: error: too many
> arguments to function 'kmem_cache_create'
> /home/users/chris/rpm/BUILD/kvm-31/kernel/mmu.c:1319: error: too many
> arguments to function 'kmem_cache_create'
> /home/users/chris/rpm/BUILD/kvm-31/kernel/mmu.c:1325: error: too many
> arguments to function 'kmem_cache_create'
> /home/users/chris/rpm/BUILD/kvm-31/kernel/mmu.c:1331: error: too many
> arguments to function 'kmem_cache_create'
> make[3]: *** [/home/users/chris/rpm/BUILD/kvm-31/kernel/mmu.o] Error 1
>
>
> The patch below fixes this:
>
> --- kvm-31/kernel/mmu.c~ 2007-07-21 11:12:45.000000000 +0000
> +++ kvm-31/kernel/mmu.c 2007-07-21 11:14:09.000000000 +0000
> @@ -1311,24 +1311,24 @@
> {
> pte_chain_cache = kmem_cache_create("kvm_pte_chain",
> sizeof(struct kvm_pte_chain),
> - 0, 0, NULL, NULL);
> + 0, 0, NULL);
>

This has already been fixed in mainline. I added some hacks so kvm-32
will be buildable both on 2.6.23-rc1 and on 2.6.22 (but not on
2.6.22-git16).

--
error compiling committee.c: too many arguments to function

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/