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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/io/dktp/dcdev/dadk.c
          +++ new/usr/src/uts/intel/io/dktp/dcdev/dadk.c
↓ open down ↓ 69 lines elided ↑ open up ↑
  70   70  static int  dadk_pkt(opaque_t com_data, struct buf *bp, int (*func)(caddr_t),
  71   71      caddr_t arg);
  72   72  static void dadk_transport(opaque_t com_data, struct buf *bp);
  73   73  static int dadk_ctl_ioctl(struct dadk *, uint32_t, uintptr_t, int);
  74   74  
  75   75  struct tgcom_objops dadk_com_ops = {
  76   76          nodev,
  77   77          nodev,
  78   78          dadk_pkt,
  79   79          dadk_transport,
  80      -        0, 0
       80 +        { NULL, NULL }
  81   81  };
  82   82  
  83   83  /*
  84   84   * architecture dependent allocation restrictions for dadk_iob_alloc(). For
  85   85   * x86, we'll set dma_attr_addr_hi to dadk_max_phys_addr and dma_attr_sgllen
  86   86   * to dadk_sgl_size during _init().
  87   87   */
  88   88  #if defined(__sparc)
  89   89  static ddi_dma_attr_t dadk_alloc_attr = {
  90   90          DMA_ATTR_V0,    /* version number */
↓ open down ↓ 55 lines elided ↑ open up ↑
 146  146          dadk_iob_alloc,
 147  147          dadk_iob_free,
 148  148          dadk_iob_htoc,
 149  149          dadk_iob_xfer,
 150  150          dadk_dump,
 151  151          dadk_getphygeom,
 152  152          dadk_set_bbhobj,
 153  153          dadk_check_media,
 154  154          dadk_inquiry,
 155  155          dadk_cleanup,
 156      -        0
      156 +        { NULL }
 157  157  };
 158  158  
 159  159  /*
 160  160   * Local static data
 161  161   */
 162  162  
 163  163  #ifdef  DADK_DEBUG
 164  164  #define DENT    0x0001
 165  165  #define DERR    0x0002
 166  166  #define DIO     0x0004
↓ open down ↓ 74 lines elided ↑ open up ↑
 241  241  #include <sys/modctl.h>
 242  242  
 243  243  extern struct mod_ops mod_miscops;
 244  244  
 245  245  static struct modlmisc modlmisc = {
 246  246          &mod_miscops,   /* Type of module */
 247  247          "Direct Attached Disk"
 248  248  };
 249  249  
 250  250  static struct modlinkage modlinkage = {
 251      -        MODREV_1, (void *)&modlmisc, NULL
      251 +        MODREV_1, { (void *)&modlmisc, NULL }
 252  252  };
 253  253  
 254  254  int
 255  255  _init(void)
 256  256  {
 257  257  #ifdef DADK_DEBUG
 258  258          if (dadk_debug & DENT)
 259  259                  PRF("dadk_init: call\n");
 260  260  #endif
 261  261  
↓ open down ↓ 1579 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX