public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Miguel Botón" <mboton.lkml@gmail.com>
To: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Linux 2.6.24-rc2 build fails: implicit declaration of function ‘smp_call_function_mask'
Date: Wed, 7 Nov 2007 16:06:41 +0100	[thread overview]
Message-ID: <200711071606.41786.mboton.lkml@gmail.com> (raw)
In-Reply-To: <20071107095555.GB26962@traven>

On Wednesday 07 November 2007 10:55:55 Matthias Kaehlcke wrote:
>
> v2.6.24-rc2 fails to build on my box with the following error:
>
> CC [M]  drivers/kvm/kvm_main.o
> drivers/kvm/kvm_main.c: In function ???kvm_flush_remote_tlbs???:
> drivers/kvm/kvm_main.c:220: error: implicit declaration of function
> ???smp_call_function_mask???
> make[3]: *** [drivers/kvm/kvm_main.o] Error 1
> make[2]: *** [drivers/kvm] Error 2
> make[1]: *** [drivers] Error 2
> make[1]: Leaving directory `/data/kernel/linux-2.6.24-rc2'
> make: *** [debian/stamp-build-kernel] Error 2
>
> the .config file is attached

This patch should fix this error.

Signed-off-by: Miguel Boton <mboton@gmail.com>

Index: linux-2.6.24-rc2/drivers/kvm/kvm_main.c
===================================================================
--- linux-2.6.24-rc2.orig/drivers/kvm/kvm_main.c
+++ linux-2.6.24-rc2/drivers/kvm/kvm_main.c
@@ -217,7 +217,10 @@
 		if (cpu != -1 && cpu != raw_smp_processor_id())
 			cpu_set(cpu, cpus);
 	}
+
+#ifdef CONFIG_SMP
 	smp_call_function_mask(cpus, ack_flush, NULL, 1);
+#endif
 }
 
 int kvm_vcpu_init(struct kvm_vcpu *vcpu, struct kvm *kvm, unsigned id)


-- 
	Miguel Botón

  reply	other threads:[~2007-11-07 15:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-07  0:26 Linux 2.6.24-rc2 Linus Torvalds
2007-11-07  7:17 ` [BUG] Linux 2.6.24-rc2 - oom-killer gets invoked Kamalesh Babulal
2007-11-07  7:55   ` Balbir Singh
2007-11-07 12:24     ` Kamalesh Babulal
2007-11-07 18:20   ` Andrew Morton
2007-11-07  9:55 ` Linux 2.6.24-rc2 build fails: implicit declaration of function ‘smp_call_function_mask' Matthias Kaehlcke
2007-11-07 15:06   ` Miguel Botón [this message]
2007-11-07 16:21   ` Randy Dunlap
2007-11-08  1:23 ` 2.6.24-rc2: Reported regressions from 2.6.23 Rafael J. Wysocki
     [not found]   ` <E1IqqkQ-0001F3-9E@faramir.fjphome.nl>
2007-11-11 19:04     ` Rafael J. Wysocki
2007-11-09 12:07 ` Linux 2.6.24-rc2 Jon Masters

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=200711071606.41786.mboton.lkml@gmail.com \
    --to=mboton.lkml@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthias.kaehlcke@gmail.com \
    --cc=torvalds@linux-foundation.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