public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Chris Clayton <chris2553-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: building kvm-31 against linux-2.6.22-git16
Date: Sat, 21 Jul 2007 11:26:32 +0000	[thread overview]
Message-ID: <200707211126.32042.chris2553@googlemail.com> (raw)

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);
        if (!pte_chain_cache)
                goto nomem;
        rmap_desc_cache = kmem_cache_create("kvm_rmap_desc",
                                            sizeof(struct kvm_rmap_desc),
-                                           0, 0, NULL, NULL);
+                                           0, 0, NULL);
        if (!rmap_desc_cache)
                goto nomem;

        mmu_page_cache = kmem_cache_create("kvm_mmu_page",
                                           PAGE_SIZE,
-                                          PAGE_SIZE, 0, NULL, NULL);
+                                          PAGE_SIZE, 0, NULL);
        if (!mmu_page_cache)
                goto nomem;

        mmu_page_header_cache = kmem_cache_create("kvm_mmu_page_header",
                                                  sizeof(struct kvm_mmu_page),
-                                                 0, 0, NULL, NULL);
+                                                 0, 0, NULL);
        if (!mmu_page_header_cache)
                goto nomem;


Chris

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

             reply	other threads:[~2007-07-21 11:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-21 11:26 Chris Clayton [this message]
     [not found] ` <200707211126.32042.chris2553-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2007-07-22  9:43   ` building kvm-31 against linux-2.6.22-git16 Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200707211126.32042.chris2553@googlemail.com \
    --to=chris2553-gm/ye1e23mwn+bqq9rbeug@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox