Commit efa428ef authored by Andrew Morton's avatar Andrew Morton Committed by Christoph Hellwig

[PATCH] percpu counters cause UML compilation errors in with SMP

The percpu counters break UML SMP compilation (in current 2.5.58 bk snapshot)
(first NR_CPUS undeclared in header, then dereference of incomplete structure
in .c file)
parent 2bfd7eda
......@@ -7,7 +7,7 @@
#include <linux/config.h>
#include <linux/spinlock.h>
#include <linux/smp.h>
#include <linux/preempt.h>
#include <linux/threads.h>
#ifdef CONFIG_SMP
......
#include <linux/percpu_counter.h>
#include <linux/sched.h>
void percpu_counter_mod(struct percpu_counter *fbc, long amount)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment