Re: [PATCH 1/2] params: Add a per cpu module param type
From: Rusty Russell
Date: Tue Aug 19 2014 - 14:12:05 EST
Andi Kleen <andi@xxxxxxxxxxxxxx> writes:
> From: Andi Kleen <ak@xxxxxxxxxxxxxxx>
>
> This is mainly useful for simple statistic counters.
> Essentially read-only, writing only clears.
Nice...
> +#define param_check_percpu_uint(name, p) param_check_uint
This is wrong; will it even compile? It should also do the __percpu
annotation so hopefully sparse will catch any misuses, eg:
#define param_check_percpu_uint(name, p) \
__param_check(name, p, __percpu unsigned int)
The rest looks good, but I'll need a user :)
Cheers,
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/