Skip to content
Snippets Groups Projects
  1. Oct 24, 2016
  2. Sep 21, 2016
  3. Aug 14, 2016
  4. Jul 20, 2016
  5. Jan 25, 2016
  6. Jan 12, 2016
  7. Jul 10, 2015
  8. May 07, 2015
  9. Apr 17, 2015
  10. Feb 27, 2015
  11. Jan 28, 2015
  12. Dec 02, 2014
    • Dan Carpenter's avatar
      CodingStyle: add some more error handling guidelines · ea040360
      Dan Carpenter authored
      
      I added a paragraph on choosing label names, and updated the example
      code to use a better label name.  I also cleaned up the example code to
      more modern style by moving the allocation out of the initializer and
      changing the NULL check.
      
      Perhaps the most common type of error handling bug in the kernel is "one
      err bugs".  CodingStyle already says that we should "avoid nesting" by
      using error labels and one err style error handling tends to have
      multiple indent levels, so this was already bad style.  But I've added a
      new paragraph explaining how to avoid one err bugs by using multiple
      error labels which is, hopefully, more clear.
      
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
      [jc: added GFP_KERNEL to kmalloc() call]
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      ea040360
  13. Nov 03, 2014
  14. Aug 26, 2014
  15. Jun 04, 2014
    • Dan Streetman's avatar
      Documentation: expand/clarify debug documentation · 6e099f55
      Dan Streetman authored
      
      The pr_debug() and related debug print macros all differ from the normal
      pr_XXX() macros, in that the normal ones print unconditionally, while
      the debug macros are compiled out unless DEBUG is defined or
      CONFIG_DYNAMIC_DEBUG is set.  This isn't obvious, and the only way to
      find this out is either to review the actual printk.h code or to read
      CodingStyle, and the message there doesn't highlight the fact.
      
      Change Documentation/CodingStyle to clearly indicate that pr_debug() and
      related debug printing macros behave differently than all other pr_XXX()
      macros, and attempt to clarify when and where the different debug
      printing methods might be used.
      
      Add short comment to printk.h above the pr_XXX() macros indicating that
      while these macros print unconditionally, pr_debug() does not.
      
      Signed-off-by: default avatarDan Streetman <ddstreet@ieee.org>
      Cc: Joe Perches <joe@perches.com>
      Cc: Fabian Frederick <fabf@skynet.be>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6e099f55
  16. Jul 03, 2013
  17. Jan 11, 2013
    • Kees Cook's avatar
      Documentation: remove depends on CONFIG_EXPERIMENTAL · 0335cb46
      Kees Cook authored
      
      The CONFIG_EXPERIMENTAL config item has not carried much meaning for a
      while now and is almost always enabled by default. As agreed during the
      Linux kernel summit, remove it from any "depends on" lines in Kconfigs.
      
      CC: Rob Landley <rob@landley.net>
      CC: Jiri Kosina <jkosina@suse.cz>
      CC: Masanari Iida <standby24x7@gmail.com>
      CC: Jason Wessel <jason.wessel@windriver.com>
      CC: Richard L Maliszewski <richard.l.maliszewski@intel.com>
      CC: Gang Wei <gang.wei@intel.com>
      CC: Shane Wang <shane.wang@intel.com>
      CC: Harry Wei <harryxiyou@gmail.com>
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Acked-by: default avatarJason Wessel <jason.wessel@windriver.com>
      0335cb46
  18. Oct 05, 2012
  19. Jun 01, 2012
  20. Mar 30, 2012
  21. Nov 04, 2011
  22. Aug 06, 2011
  23. Jul 06, 2011
  24. Mar 23, 2011
  25. Mar 16, 2011
  26. Jun 12, 2009
  27. Jan 30, 2009
  28. Jul 25, 2008
  29. Oct 17, 2007
  30. Jul 18, 2007
  31. Jul 16, 2007
Loading