1. 15 8月, 2016 5 次提交
  2. 11 8月, 2016 1 次提交
  3. 10 8月, 2016 3 次提交
  4. 09 8月, 2016 1 次提交
  5. 06 8月, 2016 1 次提交
  6. 05 8月, 2016 6 次提交
  7. 04 8月, 2016 8 次提交
  8. 03 8月, 2016 2 次提交
  9. 02 8月, 2016 1 次提交
  10. 01 8月, 2016 1 次提交
  11. 28 7月, 2016 1 次提交
    • L
      Add braces to avoid "ambiguous ‘else’" compiler warnings · 194dc870
      Linus Torvalds 提交于
      Some of our "for_each_xyz()" macro constructs make gcc unhappy about
      lack of braces around if-statements inside or outside the loop, because
      the loop construct itself has a "if-then-else" statement inside of it.
      
      The resulting warnings look something like this:
      
        drivers/gpu/drm/i915/i915_debugfs.c: In function ‘i915_dump_lrc’:
        drivers/gpu/drm/i915/i915_debugfs.c:2103:6: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
           if (ctx != dev_priv->kernel_context)
              ^
      
      even if the code itself is fine.
      
      Since the warning is fairly easy to avoid by adding a braces around the
      if-statement near the for_each_xyz() construct, do so, rather than
      disabling the otherwise potentially useful warning.
      
      (The if-then-else statements used in the "for_each_xyz()" constructs are
      designed to be inherently safe even with no braces, but in this case
      it's quite understandable that gcc isn't really able to tell that).
      
      This finally leaves the standard "allmodconfig" build with just a
      handful of remaining warnings, so new and valid warnings hopefully will
      stand out.
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      194dc870
  12. 20 7月, 2016 3 次提交
  13. 14 7月, 2016 2 次提交
  14. 07 7月, 2016 1 次提交
  15. 06 7月, 2016 1 次提交
  16. 05 7月, 2016 1 次提交
  17. 04 7月, 2016 2 次提交