From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935806AbXHHTB7 (ORCPT ); Wed, 8 Aug 2007 15:01:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1763827AbXHHTBt (ORCPT ); Wed, 8 Aug 2007 15:01:49 -0400 Received: from ms-smtp-03.nyroc.rr.com ([24.24.2.57]:58030 "EHLO ms-smtp-03.nyroc.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763744AbXHHTBs (ORCPT ); Wed, 8 Aug 2007 15:01:48 -0400 Subject: [PATCH RT] fix non SMP compile smp stubs From: Steven Rostedt To: Ingo Molnar Cc: RT , Thomas Gleixner , LKML Content-Type: text/plain Date: Wed, 08 Aug 2007 15:01:07 -0400 Message-Id: <1186599667.29097.4.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Ingo, Some compile errors in the smp stubs are fixed here: I added the cpumask.h file so that it knows the cpumask_t type. I could have just converted it to a macro do { } while(0), but I like having the type check a NULL inline gives. Signed-off-by: Steven Rostedt Index: linux-2.6.23-rc2-rt2/include/linux/smp.h =================================================================== --- linux-2.6.23-rc2-rt2.orig/include/linux/smp.h +++ linux-2.6.23-rc2-rt2/include/linux/smp.h @@ -7,6 +7,7 @@ */ #include +#include extern void cpu_idle(void); @@ -116,7 +117,7 @@ static inline int up_smp_call_function(v }) static inline void smp_send_reschedule(int cpu) { } static inline void smp_send_reschedule_allbutself(void) { } -static inline void smp_send_reschedule_allbutself_cpumask(cpumask_t) { } +static inline void smp_send_reschedule_allbutself_cpumask(cpumask_t mask) { } #define num_booting_cpus() 1 #define smp_prepare_boot_cpu() do {} while (0) #define smp_call_function_single(cpuid, func, info, retry, wait) \