1. 18 7月, 2015 1 次提交
    • N
      include, lib: add __printf attributes to several function prototypes · 8db14860
      Nicolas Iooss 提交于
      Using __printf attributes helps to detect several format string issues
      at compile time (even though -Wformat-security is currently disabled in
      Makefile).  For example it can detect when formatting a pointer as a
      number, like the issue fixed in commit a3fa71c4 ("wl18xx: show
      rx_frames_per_rates as an array as it really is"), or when the arguments
      do not match the format string, c.f.  for example commit 5ce1aca8
      ("reiserfs: fix __RASSERT format string").
      
      To prevent similar bugs in the future, add a __printf attribute to every
      function prototype which needs one in include/linux/ and lib/.  These
      functions were mostly found by using gcc's -Wsuggest-attribute=format
      flag.
      Signed-off-by: NNicolas Iooss <nicolas.iooss_linux@m4x.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Felipe Balbi <balbi@ti.com>
      Cc: Joel Becker <jlbec@evilplan.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      8db14860
  2. 06 5月, 2015 3 次提交
    • R
      clkdev: add clkdev_create() helper · 25689998
      Russell King 提交于
      Add a helper to allocate and add a clk_lookup structure.  This can not
      only be used in several places in clkdev.c to simplify the code, but
      more importantly, can be used by callers of the clkdev code to simplify
      their clkdev creation and registration.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      25689998
    • R
      clkdev: const-ify connection id to clk_add_alias() · b3d8d7e8
      Russell King 提交于
      The connection id is only passed to clk_get() which is already const.
      Const-ify this argument too.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      b3d8d7e8
    • R
      clkdev: use clk_hw internally · d5622a9c
      Russell King 提交于
      clk_add_alias() calls clk_get() followed by clk_put() but in between
      those two calls it saves away the struct clk pointer to a clk_lookup
      structure. This leaves the 'clk' member of the clk_lookup pointing at
      freed memory on configurations where CONFIG_COMMON_CLK=y. This is a
      problem because clk_get_sys() will eventually try to dereference the
      freed pointer by calling __clk_get_hw() on it. Fix this by saving away
      the struct clk_hw pointer instead of the struct clk pointer so that when
      we try to create a per-user struct clk in clk_get_sys() we don't
      dereference a junk pointer.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      d5622a9c
  3. 05 12月, 2013 1 次提交
  4. 02 5月, 2012 1 次提交
  5. 13 10月, 2011 1 次提交
  6. 26 11月, 2010 1 次提交
  7. 30 3月, 2010 1 次提交
  8. 13 2月, 2010 1 次提交
  9. 27 11月, 2008 1 次提交