All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/3] sparse: Introduce __private to privatize members of structs
@ 2015-12-12  2:55 Boqun Feng
  2015-12-12  2:56 ` [RFC 1/3] sparse: Add " Boqun Feng
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Boqun Feng @ 2015-12-12  2:55 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,

As I proposed:

http://marc.info/?l=linux-arm-kernel&m=144944469805753

, we can define 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 serves as a POC and 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	5f343fc7f0ce7edfe344e7cc5afdfe145a18f802

because this depends on commits:
	
	"rcu: Create transitive rnp->lock acquisition functions"

and

	"rcu: Add transitivity to remaining rcu_node ->lock acquisitions


I tried to use 0day to test this, but seems the email transfer from 0day to my
mail box is very slow recently, so I haven't received a recent result yet. But
as one can see, this patchset doesn't have any functional modification, the 0day
may not find anything interesting ;-)


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

Regards,
Boqun

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

end of thread, other threads:[~2015-12-15  0:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-12  2:55 [RFC 0/3] sparse: Introduce __private to privatize members of structs Boqun Feng
2015-12-12  2:56 ` [RFC 1/3] sparse: Add " Boqun Feng
2015-12-12  2:56 ` [RFC 2/3] RCU: Privatize rcu_node::lock Boqun Feng
2015-12-12  2:56 ` [RFC 3/3] irq: Privatize irq_common_data::state_use_accessors Boqun Feng
2015-12-14  9:50   ` Peter Zijlstra
2015-12-14 10:03     ` Thomas Gleixner
2015-12-14 12:00       ` Boqun Feng
2015-12-14 12:00         ` Boqun Feng
2015-12-14 15:59         ` Thomas Gleixner
2015-12-15  0:56           ` Boqun Feng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.