Print this page
style updates to uts/intel/io
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/io/dktp/disk/cmdk.c
          +++ new/usr/src/uts/intel/io/dktp/disk/cmdk.c
↓ open down ↓ 107 lines elided ↑ open up ↑
 108  108  static void cmdk_bbh_close(struct cmdk *dkp);
 109  109  static void cmdk_bbh_setalts_idx(struct cmdk *dkp);
 110  110  static int cmdk_bbh_bsearch(struct alts_ent *buf, int cnt, daddr32_t key);
 111  111  
 112  112  static struct bbh_objops cmdk_bbh_ops = {
 113  113          nulldev,
 114  114          nulldev,
 115  115          cmdk_bbh_gethandle,
 116  116          cmdk_bbh_htoc,
 117  117          cmdk_bbh_freehandle,
 118      -        0, 0
      118 +        { NULL, NULL }
 119  119  };
 120  120  
 121  121  static int cmdkopen(dev_t *dev_p, int flag, int otyp, cred_t *credp);
 122  122  static int cmdkclose(dev_t dev, int flag, int otyp, cred_t *credp);
 123  123  static int cmdkstrategy(struct buf *bp);
 124  124  static int cmdkdump(dev_t dev, caddr_t addr, daddr_t blkno, int nblk);
 125  125  static int cmdkioctl(dev_t, int, intptr_t, int, cred_t *, int *);
 126  126  static int cmdkread(dev_t dev, struct uio *uio, cred_t *credp);
 127  127  static int cmdkwrite(dev_t dev, struct uio *uio, cred_t *credp);
 128  128  static int cmdk_prop_op(dev_t dev, dev_info_t *dip, ddi_prop_op_t prop_op,
↓ open down ↓ 58 lines elided ↑ open up ↑
 187  187  #include <sys/modctl.h>
 188  188  
 189  189  #ifndef XPV_HVM_DRIVER
 190  190  static struct modldrv modldrv = {
 191  191          &mod_driverops,         /* Type of module. This one is a driver */
 192  192          "Common Direct Access Disk",
 193  193          &cmdk_ops,                              /* driver ops           */
 194  194  };
 195  195  
 196  196  static struct modlinkage modlinkage = {
 197      -        MODREV_1, (void *)&modldrv, NULL
      197 +        MODREV_1, { (void *)&modldrv, NULL }
 198  198  };
 199  199  
 200  200  
 201  201  #else /* XPV_HVM_DRIVER */
 202  202  static struct modlmisc modlmisc = {
 203  203          &mod_miscops,           /* Type of module. This one is a misc */
 204  204          "HVM Common Direct Access Disk",
 205  205  };
 206  206  
 207  207  static struct modlinkage modlinkage = {
 208      -        MODREV_1, (void *)&modlmisc, NULL
      208 +        MODREV_1, { (void *)&modlmisc, NULL }
 209  209  };
 210  210  
 211  211  #endif /* XPV_HVM_DRIVER */
 212  212  
 213  213  /* Function prototypes for cmlb callbacks */
 214  214  
 215  215  static int cmdk_lb_rdwr(dev_info_t *dip, uchar_t cmd, void *bufaddr,
 216  216      diskaddr_t start, size_t length, void *tg_cookie);
 217  217  
 218  218  static int cmdk_lb_getinfo(dev_info_t *dip, int cmd,  void *arg,
↓ open down ↓ 2009 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX