[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87fvgsjqtn.fsf@rustcorp.com.au>
Date: Wed, 20 Aug 2014 03:37:48 +0930
From: Rusty Russell <rusty@...tcorp.com.au>
To: Andi Kleen <andi@...stfloor.org>, linux-kernel@...r.kernel.org
Cc: Andi Kleen <ak@...ux.intel.com>
Subject: Re: [PATCH 1/2] params: Add a per cpu module param type
Andi Kleen <andi@...stfloor.org> writes:
> From: Andi Kleen <ak@...ux.intel.com>
>
> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists