[PATCH] Define smp_call_function_mask() on uniprocessor builds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>

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 */
 
 /*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux