From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH] Define smp_call_function_mask() on uniprocessor builds Date: Wed, 24 Oct 2007 10:51:25 +0200 Message-ID: <11932158852325-git-send-email-avi@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Andrew Morton , bunk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, jeff-o2qLIJkoznsdnm+yROfE0A@public.gmane.org, kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Avi Kivity To: Linus Torvalds Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Rather than #ifdef users of smp_call_function_mask(), define it as an empty macro to avoid build errors. The function explicitly prohibits callers from specifying the current cpu, so nothing needs to be done. This unbreaks uniprocessor KVM builds. Signed-off-by: Avi Kivity diff --git a/include/linux/smp.h b/include/linux/smp.h index 259a13c..24e2e31 100644 --- a/include/linux/smp.h +++ b/include/linux/smp.h @@ -108,6 +108,9 @@ static inline void smp_send_reschedule(int cpu) { } 0; \ }) +#define smp_call_function_mask(mask, func, info, wait) \ + do { (void)(mask); (void)(func); (void)(info); (void)(wait); } while (0) + #endif /* !SMP */ /* ------------------------------------------------------------------------- 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/