Print this page
12257 resync smatch to 0.6.1-rc1-il-4

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/validation/sm_locking4.c
          +++ new/usr/src/tools/smatch/src/validation/sm_locking4.c
↓ open down ↓ 20 lines elided ↑ open up ↑
  21   21          if (b)
  22   22                  return;
  23   23          if (!1)
  24   24                  _spin_lock(mylock);
  25   25  }
  26   26  /*
  27   27   * check-name: Smatch locking #4
  28   28   * check-command: smatch --project=kernel sm_locking4.c
  29   29   *
  30   30   * check-output-start
  31      -sm_locking4.c:23 func() warn: inconsistent returns 'spin_lock:mylock'.
  32      -  Locked on:   line 22
  33      -               line 23
  34      -  Unlocked on: line 16
       31 +sm_locking4.c:23 func() warn: inconsistent returns 'mylock'.
       32 +  Locked on  : 22-23
       33 +  Unlocked on: 16
  35   34   * check-output-end
  36   35   */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX