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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/callb.c
          +++ new/usr/src/uts/common/os/callb.c
↓ open down ↓ 85 lines elided ↑ open up ↑
  86   86  
  87   87  int callb_timeout_sec = CPR_KTHREAD_TIMEOUT_SEC;
  88   88  
  89   89  static callb_id_t callb_add_common(boolean_t (*)(void *, int),
  90   90      void *, int, char *, kthread_id_t);
  91   91  
  92   92  static callb_table_t callb_table;       /* system level callback table */
  93   93  static callb_table_t *ct = &callb_table;
  94   94  static kmutex_t callb_safe_mutex;
  95   95  callb_cpr_t     callb_cprinfo_safe = {
  96      -        &callb_safe_mutex, CALLB_CPR_ALWAYS_SAFE, 0, 0, 0 };
       96 +        &callb_safe_mutex, CALLB_CPR_ALWAYS_SAFE, NULL, {0}, {0} };
  97   97  
  98   98  /*
  99   99   * Init all callb tables in the system.
 100  100   */
 101  101  void
 102  102  callb_init()
 103  103  {
 104  104          callb_table.ct_busy = 0;        /* mark table open for additions */
 105  105          mutex_init(&callb_safe_mutex, NULL, MUTEX_DEFAULT, NULL);
 106  106          mutex_init(&callb_table.ct_lock, NULL, MUTEX_DEFAULT, NULL);
↓ open down ↓ 304 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX