[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20130902000626.GA22111@leaf>
Date: Sun, 1 Sep 2013 17:06:26 -0700
From: Josh Triplett <josh@...htriplett.org>
To: Wang Shilong <wangshilong1991@...il.com>
Cc: linux-kernel@...r.kernel.org, linux-sparse@...r.kernel.org,
sparse@...isli.org, lttng-dev@...ts.lttng.org,
Stephen Hemminger <stephen@...workplumber.org>,
"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
Andy Whitcroft <apw@...onical.com>,
Joe Perches <joe@...ches.com>
Subject: Re: rcu: Make rcu_assign_pointer's assignment volatile and type-safe
On Mon, Sep 02, 2013 at 07:50:09AM +0800, Wang Shilong wrote:
> Hello, Using checkpatch.pl, i get the following warnings(errors):
> WARNING: line over 80 characters
> #57: FILE: include/linux/rcupdate.h:518:
> + extern void __rcu_assign_pointer_typecheck(int, typeof(*(v)) __kernel *); \
It'd get much uglier if wrapped, and the function name needs to stay
unique to avoid conflicts with the macro context. I don't plan to
change this.
> ERROR: need consistent spacing around '*' (ctx:WxB)
> #72: FILE: include/linux/rcupdate.h:568:
> + ACCESS_ONCE(p) = (typeof(*(v)) __force space *)(v); \
False positive; checkpatch.pl seems to parse this as multiplication
rather than a cast.
- Josh Triplett
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists