• Andrew Morton's avatar
    [PATCH] percpu: fix compile warning for UP builds · 0c83f291
    Andrew Morton authored
    A typical construct is:
    
    	int cpu = get_cpu();
    
    	foo = per_cpu(bar, cpu);
    	put_cpu();
    
    but this generates a compiler warning on uniprocessor builds: unused
    variable `cpu'.
    
    Add a dummy ref to `cpu' to per_cpu() to prevent this.
    0c83f291
percpu.h 1.27 KB