linux/cpumask.h: add typechecking to cpumask_test_cpu
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Tue, 31 Mar 2015 02:55:05 +0000 (13:25 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 31 Mar 2015 03:25:31 +0000 (13:55 +1030)
commit3bbf7f4624856751aa4cf279a472bd14a8eb16fd
treec3b003181e02c575d2f05b234f28dbc5966a585c
parentcdfdef75e795fb5ab76c66f3329e509f3ab8b9b5
linux/cpumask.h: add typechecking to cpumask_test_cpu

The Subtlety (1) referred to vanished with 6ba2ef7baac2 ("cpumask:
Move deprecated functions to end of header."). That used to mention
some suboptimal code generation by a, by now, rather ancient gcc. With
gcc 4.7, I don't see any change in the generated code by making it a
static inline, so let's add type checking and get rid of the ghost
reference.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/cpumask.h