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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/scsi/targets/sd_xbuf.c
          +++ new/usr/src/uts/common/io/scsi/targets/sd_xbuf.c
↓ open down ↓ 64 lines elided ↑ open up ↑
  65   65   * parameters self-scaling in a real (future) implementation.
  66   66   */
  67   67  #define XBUF_TQ_MINALLOC        64
  68   68  #define XBUF_TQ_MAXALLOC        512
  69   69  #define XBUF_DISPATCH_DELAY     (drv_usectohz(50000))   /* 50 msec */
  70   70  
  71   71  static taskq_t *xbuf_tq = NULL;
  72   72  static int xbuf_attr_tq_minalloc = XBUF_TQ_MINALLOC;
  73   73  static int xbuf_attr_tq_maxalloc = XBUF_TQ_MAXALLOC;
  74   74  
  75      -static kmutex_t xbuf_mutex = { 0 };
       75 +static kmutex_t xbuf_mutex = { {NULL} };
  76   76  static uint32_t xbuf_refcount = 0;
  77   77  
  78   78  /*
  79   79   * Private wrapper for buf cloned via ddi_xbuf_qstrategy()
  80   80   */
  81   81  struct xbuf_brk {
  82   82          kmutex_t mutex;
  83   83          struct buf *bp0;
  84   84          uint8_t nbufs;  /* number of buf allocated */
  85   85          uint8_t active; /* number of active xfer */
↓ open down ↓ 588 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX