]> git.hungrycats.org Git - linux/commit
[PATCH] fix gcc-3.4 warning in percpu code
authorAndrew Morton <akpm@osdl.org>
Mon, 19 Jan 2004 02:27:34 +0000 (18:27 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 19 Jan 2004 02:27:34 +0000 (18:27 -0800)
commit7ce3f0f70365af971f658d773924c52b8bc1ca34
treeb769951b427cedb1641aa67be81f784ad9b2bb92
parent96aae35560014f06496667d13c0981551e073e1c
[PATCH] fix gcc-3.4 warning in percpu code

From: Rusty Russell <rusty@rustcorp.com.au>

It's complaining about:

#define per_cpu(var, cpu) ((void)cpu, per_cpu__##var)

There are several ways of fixing this, but the simplest is:

#define per_cpu(var, cpu) (*((void)cpu, &per_cpu__##var))
include/asm-generic/percpu.h