From bd825fcad1e51ad0c244d919152910689e7b9834 Mon Sep 17 00:00:00 2001 From: Chuck Ebbert <76306.1226@compuserve.com> Date: Mon, 9 Jan 2006 15:59:17 -0800 Subject: [PATCH] --- yaml --- r: 17462 b: refs/heads/master c: 711a660dc2064013a2b0167ee67389707fc9cac3 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/kernel.h | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 8613bd79e498..c9c0b227f3de 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ffbf670f5cd50501a34a5187981460da2216071e +refs/heads/master: 711a660dc2064013a2b0167ee67389707fc9cac3 diff --git a/trunk/include/linux/kernel.h b/trunk/include/linux/kernel.h index ca7ff8fdd090..d0e6ca3b00ef 100644 --- a/trunk/include/linux/kernel.h +++ b/trunk/include/linux/kernel.h @@ -286,6 +286,15 @@ extern void dump_stack(void); 1; \ }) +/* + * Check at compile time that 'function' is a certain type, or is a pointer + * to that type (needs to use typedef for the function type.) + */ +#define typecheck_fn(type,function) \ +({ typeof(type) __tmp = function; \ + (void)__tmp; \ +}) + #endif /* __KERNEL__ */ #define SI_LOAD_SHIFT 16