1. 03 Jun, 2016 1 commit
  2. 20 May, 2016 9 commits
  3. 15 Mar, 2016 4 commits
  4. 23 Feb, 2016 1 commit
    • Boqun Feng's avatar
      sparse: Add __private to privatize members of structs · ad315455
      Boqun Feng authored
      In C programming language, we don't have a easy way to privatize a
      member of a structure. However in kernel, sometimes there is a need to
      privatize a member in case of potential bugs or misuses.
      Fortunately, the noderef attribute of sparse is a way to privatize a
      member, as by defining a member as noderef, the address-of operator on
      the member will produce a noderef pointer to that member, and if anyone
      wants to dereference that kind of pointers to read or modify the member,
      sparse will yell.
      Based on this, __private modifier and related operation ACCESS_PRIVATE()
      are introduced, which could help detect undesigned public uses of
      private members of structs. Here is an example of sparse's output if it
      detect an undersigned public use:
      | kernel/rcu/tree.c:4453:25: warning: incorrect type in argument 1 (different modifiers)
      | kernel/rcu/tree.c:4453:25:    expected struct raw_spinlock [usertype] *lock
      | kernel/rcu/tree.c:4453:25:    got struct raw_spinlock [noderef] *<noident>
      Also, this patch improves compiler.h a little bit by adding comments for
      "#else" and "#endif".
      Signed-off-by: default avatarBoqun Feng <boqun.feng@gmail.com>
      Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
  5. 20 Jan, 2016 3 commits
  6. 12 Jan, 2016 3 commits
  7. 06 Nov, 2015 2 commits
  8. 10 Sep, 2015 13 commits
  9. 22 Jul, 2015 1 commit
    • Paul E. McKenney's avatar
      scripts: Make checkpatch.pl warn on expedited RCU grace periods · 3ad81779
      Paul E. McKenney authored
      The synchronize_rcu_expedited() and synchronize_sched_expedited()
      expedited-grace-period primitives induce OS jitter, which can degrade
      real-time response.  This commit therefore adds a checkpatch.pl warning
      on any patch adding them.
      Note that this patch does not warn on synchronize_srcu_expedited()
      because it does not induce OS jitter, courtesy of its otherwise
      much-maligned read-side memory barriers.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      Cc: Andy Whitcroft <apw@canonical.com>
      Cc: Joe Perches <joe@perches.com>
  10. 17 Jul, 2015 1 commit
  11. 25 Jun, 2015 2 commits