]> git.karo-electronics.de Git - linux-beck.git/commit
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)
commitd2c123c27db841c6c11a63de9c144823d2b1ba76
treeee9de1ca10681c1f632020783e8a31ec61f35c4e
parent45fcc70c0b6ee0c508e1fdb5fef735c3546803f4
module_param: add __same_type convenience wrapper for __builtin_types_compatible_p

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>
include/linux/compiler.h