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_cache.c
          +++ new/usr/src/uts/common/avs/ns/nsctl/nsc_cache.c
↓ open down ↓ 35 lines elided ↑ open up ↑
  36   36  #include "../contract.h"
  37   37  #endif
  38   38  
  39   39  #include "../nsctl.h"
  40   40  
  41   41  
  42   42  #define _I(x)   (((long)(&((nsc_io_t *)0)->x))/sizeof (long))
  43   43  
  44   44  
  45   45  nsc_def_t _nsc_cache_def[] = {
  46      -        "AllocBuf",     (uintptr_t)nsc_ioerr,   _I(alloc_buf),
  47      -        "FreeBuf",      (uintptr_t)nsc_fatal,   _I(free_buf),
  48      -        "Read",         (uintptr_t)nsc_fatal,   _I(read),
  49      -        "Write",        (uintptr_t)nsc_fatal,   _I(write),
  50      -        "Zero",         (uintptr_t)nsc_fatal,   _I(zero),
  51      -        "Copy",         (uintptr_t)nsc_ioerr,   _I(copy),
  52      -        "CopyDirect",   (uintptr_t)nsc_ioerr,   _I(copy_direct),
  53      -        "Uncommit",     (uintptr_t)nsc_null,    _I(uncommit),
  54      -        "AllocHandle",  (uintptr_t)nsc_null,    _I(alloc_h),
  55      -        "FreeHandle",   (uintptr_t)nsc_fatal,   _I(free_h),
  56      -        "TrackSize",    (uintptr_t)nsc_null,    _I(trksize),
  57      -        "Discard",      (uintptr_t)nsc_null,    _I(discard),
  58      -        "Sizes",        (uintptr_t)nsc_null,    _I(sizes),
  59      -        "GetPinned",    (uintptr_t)nsc_null,    _I(getpin),
  60      -        "NodeHints",    (uintptr_t)nsc_inval,   _I(nodehints),
  61      -        0,              0,              0
       46 +        { "AllocBuf",   (uintptr_t)nsc_ioerr,   _I(alloc_buf) },
       47 +        { "FreeBuf",    (uintptr_t)nsc_fatal,   _I(free_buf) },
       48 +        { "Read",       (uintptr_t)nsc_fatal,   _I(read) },
       49 +        { "Write",      (uintptr_t)nsc_fatal,   _I(write) },
       50 +        { "Zero",       (uintptr_t)nsc_fatal,   _I(zero) },
       51 +        { "Copy",       (uintptr_t)nsc_ioerr,   _I(copy) },
       52 +        { "CopyDirect", (uintptr_t)nsc_ioerr,   _I(copy_direct) },
       53 +        { "Uncommit",   (uintptr_t)nsc_null,    _I(uncommit) },
       54 +        { "AllocHandle", (uintptr_t)nsc_null,   _I(alloc_h) },
       55 +        { "FreeHandle", (uintptr_t)nsc_fatal,   _I(free_h) },
       56 +        { "TrackSize",  (uintptr_t)nsc_null,    _I(trksize) },
       57 +        { "Discard",    (uintptr_t)nsc_null,    _I(discard) },
       58 +        { "Sizes",      (uintptr_t)nsc_null,    _I(sizes) },
       59 +        { "GetPinned",  (uintptr_t)nsc_null,    _I(getpin) },
       60 +        { "NodeHints",  (uintptr_t)nsc_inval,   _I(nodehints) },
       61 +        { NULL,         (uintptr_t)NULL,        0 }
  62   62  };
  63   63  
  64   64  
  65   65  static int _nsc_alloc_buf_h(blind_t, nsc_off_t, nsc_size_t, int,
  66   66      nsc_buf_t **, nsc_fd_t *);
  67   67  static int _nsc_copy_h(nsc_buf_t *, nsc_buf_t *, nsc_off_t,
  68   68      nsc_off_t, nsc_size_t);
  69   69  
  70   70  extern nsc_io_t *_nsc_reserve_io(char *, int);
  71   71  extern void _nsc_release_io(nsc_io_t *);
↓ open down ↓ 428 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX