check_kernel: look harder for the container_of() macro
commitad71730fd2f67b4063b681f94b474b89e878608d
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 8 Apr 2013 06:49:45 +0000 (8 09:49 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 8 Apr 2013 06:49:45 +0000 (8 09:49 +0300)
treec0247f7869714e421811d32e1abe96ce603b19bb
parent1c5f3ea4008392ab9e1346078c2de3e20eed6ee4
check_kernel: look harder for the container_of() macro

The container_of() macro is sometimes hidden inside a second macro so
add_macro_assign_hook_extra() doesn't find it.  Look for the
"__mptr - offsetof()" assignment as well.

This is obviously brittle risky code.  But that's how I roll.  ;)

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_kernel.c
check_list.h