module_param: add __same_type convenience wrapper for __builtin_types_compatible_p
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 13 Jun 2009 03:46:56 +0000 (21:46 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 12 Jun 2009 12:16:57 +0000 (21:46 +0930)
Impact: new API

__builtin_types_compatible_p() is a little awkward to use: it takes two
types rather than types or variables, and it's just damn long.

(typeof(type) == type, so this works on types as well as vars).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

No differences found