linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC v2 0/3] sparse: Introduce __private to privatize members of structs
@ 2015-12-29  4:18 Boqun Feng
  2015-12-29  4:18 ` [RFC v2 1/3] sparse: Add " Boqun Feng
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Boqun Feng @ 2015-12-29  4:18 UTC (permalink / raw)
  To: linux-sparse, linux-kernel
  Cc: Christopher Li, Paul E . McKenney, Josh Triplett, Steven Rostedt,
	Mathieu Desnoyers, Lai Jiangshan, Andy Whitcroft, Joe Perches,
	Thomas Gleixner, Jiang Liu, Marc Zyngier, Mika Westerberg,
	Russell King, Brian Norris, Peter Zijlstra, Boqun Feng

Hi all,

This is v2 of __private.

Link for v1: http://marc.info/?l=linux-sparse&m=144988906932520&w=2

Change since v1:

*	#undef __irqd_to_state after used (Peter Zijlstra)


This patchset introduces a __private modifier for sparse to detect misuses of
private members of structs. This could make maintenace a little easier and
prevent some potential bugs.


This patchset consists of three patches:

1.	Introduce __private and related macro, also improve compiler.h a litte
	bit

2.	Privatize rcu_node::lock

3.	Privatize irq_common_data::state_use_accessors

This patchset is against

	-rcu/rcu/next	c95a158356397844a5a6deb0bd58758084f891df

because it depends on commits:
	
	"rcu: Create transitive rnp->lock acquisition functions"
and
	"rcu: Add transitivity to remaining rcu_node ->lock acquisitions


Tested by 0day.

Looking forward to any suggestion, question and comment ;-)

Regards,
Boqun

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-01-04 22:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-29  4:18 [RFC v2 0/3] sparse: Introduce __private to privatize members of structs Boqun Feng
2015-12-29  4:18 ` [RFC v2 1/3] sparse: Add " Boqun Feng
2015-12-29  4:18 ` [RFC v2 2/3] RCU: Privatize rcu_node::lock Boqun Feng
2015-12-29  4:18 ` [RFC v2 3/3] irq: Privatize irq_common_data::state_use_accessors Boqun Feng
2015-12-29  9:46   ` Thomas Gleixner
2016-01-04 22:21 ` [RFC v2 0/3] sparse: Introduce __private to privatize members of structs Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).