1. 15 10月, 2021 5 次提交
  2. 14 10月, 2021 7 次提交
  3. 07 10月, 2021 4 次提交
  4. 06 10月, 2021 1 次提交
    • P
      sched: Fix DEBUG && !SCHEDSTATS warn · 769fdf83
      Peter Zijlstra 提交于
      When !SCHEDSTATS schedstat_enabled() is an unconditional 0 and the
      whole block doesn't exist, however GCC figures the scoped variable
      'stats' is unused and complains about it.
      
      Upgrade the warning from -Wunused-variable to -Wunused-but-set-variable
      by writing it in two statements. This fixes the build because the new
      warning is in W=1.
      
      Given that whole if(0) {} thing, I don't feel motivated to change
      things overly much and quite strongly feel this is the compiler being
      daft.
      
      Fixes: cb3e971c435d ("sched: Make struct sched_statistics independent of fair sched class")
      Reported-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
      769fdf83
  5. 05 10月, 2021 23 次提交