]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] trigger a syntax error if percpu macros are incorrectly used
authorJan Blunck <jblunck@suse.de>
Tue, 26 Sep 2006 06:30:53 +0000 (23:30 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Sep 2006 15:48:44 +0000 (08:48 -0700)
commita416a91f8a9e54dbd4ab53fdf1ebf7cb6174baf8
treece67b5fa4bec38610fc0ecb9b20be6aa69763bb3
parente5e6f7c00ea6da9604f3f34d5c4ac8cbc430d36e
[PATCH] trigger a syntax error if percpu macros are incorrectly used

get_cpu_var()/per_cpu()/__get_cpu_var() arguments must be simple
identifiers.  Otherwise the arch dependent implementations might break.

This patch enforces the correct usage of the macros by producing a syntax
error if the variable is not a simple identifier.

Signed-off-by: Jan Blunck <jblunck@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-generic/percpu.h
include/asm-s390/percpu.h
include/asm-x86_64/percpu.h
include/linux/percpu.h