diff options
| author | Andrew Morton <akpm@digeo.com> | 2002-10-29 23:31:18 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-10-29 23:31:18 -0800 |
| commit | 0c83f291de08552b82d8e7975444198c43074f55 (patch) | |
| tree | 4a8cdabe6cfbb954ce68c58b98789e61cdd8cdbd /kernel | |
| parent | f98bf5ff9cd852c1c041f51f32666cfdb403182f (diff) | |
[PATCH] percpu: fix compile warning for UP builds
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.
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
