From a756f1413c62a5cd2fd9a688f6a2286643014886 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 12 Jun 2009 21:46:56 -0600 Subject: [PATCH] --- yaml --- r: 147935 b: refs/heads/master c: d2c123c27db841c6c11a63de9c144823d2b1ba76 h: refs/heads/master i: 147933: 0681063ee57c07bc607c9ab0ce624ec28bde2833 147931: 98c930785311ac38e9d67bd21849d81d8706c269 147927: 09a47555be9efe636e20b69a614f051a42771864 147919: 760ae25c297cc48eee22c3d62827030f78317926 147903: a9f0cb080c312d082954c665767ab796787ba5f2 v: v3 --- [refs] | 2 +- trunk/include/linux/compiler.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index dfa77e059157..2f4383a4f7cb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 45fcc70c0b6ee0c508e1fdb5fef735c3546803f4 +refs/heads/master: d2c123c27db841c6c11a63de9c144823d2b1ba76 diff --git a/trunk/include/linux/compiler.h b/trunk/include/linux/compiler.h index 37bcb50a4d7c..04fb5135b4e1 100644 --- a/trunk/include/linux/compiler.h +++ b/trunk/include/linux/compiler.h @@ -261,6 +261,11 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect); # define __section(S) __attribute__ ((__section__(#S))) #endif +/* Are two types/vars the same type (ignoring qualifiers)? */ +#ifndef __same_type +# define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) +#endif + /* * Prevent the compiler from merging or refetching accesses. The compiler * is also forbidden from reordering successive instances of ACCESS_ONCE(),