Print this page
12724 update smatch to 0.6.1-rc1-il-5

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/smatch_return_to_param.c
          +++ new/usr/src/tools/smatch/src/smatch_return_to_param.c
↓ open down ↓ 20 lines elided ↑ open up ↑
  21   21   * does "struct whatever *p = get_data(dev);" then we want to record that p is
  22   22   * now the same as "dev->data".  Then if we update "p->foo" it means we can
  23   23   * update "dev->data->foo" as well.
  24   24   *
  25   25   */
  26   26  
  27   27  #include "smatch.h"
  28   28  #include "smatch_slist.h"
  29   29  #include "smatch_extra.h"
  30   30  
  31      -extern int check_assigned_expr_id;
  32   31  static int my_id;
  33   32  static int link_id;
  34   33  
  35   34  static struct smatch_state *alloc_my_state(const char *name, struct symbol *sym)
  36   35  {
  37   36          struct smatch_state *state;
  38   37  
  39   38          state = __alloc_smatch_state(0);
  40   39          state->name = alloc_sname(name);
  41   40          state->data = sym;
↓ open down ↓ 199 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX