2007-08-16 23:39:58

by Kevin Hilman

[permalink] [raw]
Subject: [PATCH 2.6.23-rc2-rt2] misc. compile fixes for UP builds

Signed-off-by: Kevin Hilman <[email protected]>
---
include/linux/percpu_list.h | 2 +-
include/linux/smp.h | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)

Index: dev/include/linux/percpu_list.h
===================================================================
--- dev.orig/include/linux/percpu_list.h
+++ dev/include/linux/percpu_list.h
@@ -84,7 +84,7 @@ void percpu_list_fold(struct percpu_list

struct percpu_list {
struct lock_list_head list;
-}
+};

static inline
void percpu_list_init(struct percpu_list *pcl)
Index: dev/include/linux/smp.h
===================================================================
--- dev.orig/include/linux/smp.h
+++ dev/include/linux/smp.h
@@ -7,6 +7,7 @@
*/

#include <linux/errno.h>
+#include <linux/cpumask.h>

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) \
--