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_dev.c
          +++ new/usr/src/uts/common/avs/ns/nsctl/nsc_dev.c
↓ open down ↓ 42 lines elided ↑ open up ↑
  43   43  #include "../nsctl.h"
  44   44  
  45   45  #define NSC_DEVMIN      "DevMin"
  46   46  #define NSC_DEVMAJ      "DevMaj"
  47   47  
  48   48  #define _I(x)   (((long)(&((nsc_io_t *)0)->x))/sizeof (long))
  49   49  #define _F(x)   (((long)(&((nsc_fd_t *)0)->x))/sizeof (long))
  50   50  
  51   51  
  52   52  nsc_def_t _nsc_io_def[] = {
  53      -        "Open",         (uintptr_t)nsc_null,    _I(open),
  54      -        "Close",        (uintptr_t)nsc_null,    _I(close),
  55      -        "Attach",       (uintptr_t)nsc_null,    _I(attach),
  56      -        "Detach",       (uintptr_t)nsc_null,    _I(detach),
  57      -        "Flush",        (uintptr_t)nsc_null,    _I(flush),
  58      -        "Provide",      0,              _I(provide),
  59      -        0,              0,              0
       53 +        { "Open",       (uintptr_t)nsc_null,    _I(open) },
       54 +        { "Close",      (uintptr_t)nsc_null,    _I(close) },
       55 +        { "Attach",     (uintptr_t)nsc_null,    _I(attach) },
       56 +        { "Detach",     (uintptr_t)nsc_null,    _I(detach) },
       57 +        { "Flush",      (uintptr_t)nsc_null,    _I(flush) },
       58 +        { "Provide",    (uintptr_t)NULL,        _I(provide) },
       59 +        { NULL,         (uintptr_t)NULL,        0 }
  60   60  };
  61   61  
  62   62  nsc_def_t _nsc_fd_def[] = {
  63      -        "Pinned",       (uintptr_t)nsc_null,    _F(sf_pinned),
  64      -        "Unpinned",     (uintptr_t)nsc_null,    _F(sf_unpinned),
  65      -        "Attach",       (uintptr_t)nsc_null,    _F(sf_attach),
  66      -        "Detach",       (uintptr_t)nsc_null,    _F(sf_detach),
  67      -        "Flush",        (uintptr_t)nsc_null,    _F(sf_flush),
  68      -        0,              0,              0
       63 +        { "Pinned",     (uintptr_t)nsc_null,    _F(sf_pinned) },
       64 +        { "Unpinned",   (uintptr_t)nsc_null,    _F(sf_unpinned) },
       65 +        { "Attach",     (uintptr_t)nsc_null,    _F(sf_attach) },
       66 +        { "Detach",     (uintptr_t)nsc_null,    _F(sf_detach) },
       67 +        { "Flush",      (uintptr_t)nsc_null,    _F(sf_flush) },
       68 +        { NULL,         (uintptr_t)NULL,        0 }
  69   69  };
  70   70  
  71   71  kmutex_t _nsc_io_lock;
  72   72  kmutex_t _nsc_devval_lock;
  73   73  
  74   74  nsc_io_t *_nsc_io_top = NULL;
  75   75  nsc_io_t *_nsc_null_io = NULL;
  76   76  nsc_dev_t *_nsc_dev_top = NULL;
  77   77  nsc_dev_t *_nsc_dev_pend = NULL;
  78   78  nsc_path_t *_nsc_path_top = NULL;
↓ open down ↓ 2137 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX