Print this page
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/avs/ns/nsctl/nsc_power.c
          +++ new/usr/src/uts/common/avs/ns/nsctl/nsc_power.c
↓ open down ↓ 48 lines elided ↑ open up ↑
  49   49          char *name;                     /* module name */
  50   50          void (*pw_power_lost)(int);     /* callback power lost(rideout) */
  51   51          void (*pw_power_ok)(void);      /* callback power ok */
  52   52          void (*pw_power_down)(void);
  53   53                                  /* callback power down (shutdown imminent) */
  54   54  } _nsc_power_t;
  55   55  
  56   56  #define _P(x)   (((long)(&((_nsc_power_t *)0)->x))/sizeof (long))
  57   57  
  58   58  static nsc_def_t _nsc_power_def[] = {
  59      -        "Power_Lost",   (uintptr_t)null_power,  _P(pw_power_lost),
  60      -        "Power_OK",     (uintptr_t)null_power,  _P(pw_power_ok),
  61      -        "Power_Down",   (uintptr_t)null_power,  _P(pw_power_down),
  62      -        0,              0,                      0,
       59 +        { "Power_Lost", (uintptr_t)null_power,  _P(pw_power_lost) },
       60 +        { "Power_OK",   (uintptr_t)null_power,  _P(pw_power_ok) },
       61 +        { "Power_Down", (uintptr_t)null_power,  _P(pw_power_down) },
       62 +        { NULL,         (uintptr_t)NULL,        0}
  63   63  };
  64   64  
  65   65  static _nsc_power_t *_power_clients;
  66   66  static kmutex_t _power_mutex;
  67   67  
  68   68  
  69   69  static int null_power(void)
  70   70  /*
  71   71   * init null_power - dummy power routine for clients that choose not
  72   72   * to implement all the power hooks.
↓ open down ↓ 177 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX