Messages in this thread Patch in this message | | | Date | Wed, 28 Aug 2002 09:47:19 -0700 | From | Andrew Morton <> | Subject | Re: 2.5.32-mm1 |
| |
Heinz Diehl wrote: > > ... > fs/fs.o(.text+0x5932): undefined reference to cpu_possible'
Bah. Sorry about that. cpu_possible() appears to be undefined for uniprocessor builds.
How about this?
--- 2.5.32/include/linux/smp.h~cpu_possible Wed Aug 28 09:43:05 2002 +++ 2.5.32-akpm/include/linux/smp.h Wed Aug 28 09:44:00 2002 @@ -108,6 +108,9 @@ static inline int register_cpu_notifier( static inline void unregister_cpu_notifier(struct notifier_block *nb) { } + +#define cpu_possible(cpu) ((cpu) == 0) + #endif /* !SMP */ #define get_cpu() ({ preempt_disable(); smp_processor_id(); }) --- 2.5.32/fs/buffer.c~cpu_possible Wed Aug 28 09:43:09 2002 +++ 2.5.32-akpm/fs/buffer.c Wed Aug 28 09:44:17 2002 @@ -22,6 +22,7 @@ #include <linux/kernel.h> #include <linux/fs.h> #include <linux/mm.h> +#include <linux/smp.h> #include <linux/percpu.h> #include <linux/slab.h> #include <linux/smp_lock.h> . - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |