[PATCH 1/1] MACRO_ARG_REUSE in checkpatch.pl is confused about * in typeof

2018-03-31 Thread rao . shoaib
From: Rao Shoaib Example: CHECK: Macro argument reuse 'ptr' - possible side-effects? +#define kfree_rcu(ptr, rcu_name) \ + do {\ + unsigned long __off = offsetof(typeof(*(ptr)), rcu_name); \ + struct

[PATCH 1/1] MACRO_ARG_REUSE in checkpatch.pl is confused about * in typeof

2018-03-31 Thread rao . shoaib
From: Rao Shoaib Example: CHECK: Macro argument reuse 'ptr' - possible side-effects? +#define kfree_rcu(ptr, rcu_name) \ + do {\ + unsigned long __off = offsetof(typeof(*(ptr)), rcu_name); \ + struct rcu_head *__rptr = (void