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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/dtrace/lockstat.c
          +++ new/usr/src/uts/common/dtrace/lockstat.c
↓ open down ↓ 313 lines elided ↑ open up ↑
 314  314          ddi_quiesce_not_needed,         /* quiesce */
 315  315  };
 316  316  
 317  317  static struct modldrv modldrv = {
 318  318          &mod_driverops,         /* Type of module.  This one is a driver */
 319  319          "Lock Statistics",      /* name of module */
 320  320          &lockstat_ops,          /* driver ops */
 321  321  };
 322  322  
 323  323  static struct modlinkage modlinkage = {
 324      -        MODREV_1, (void *)&modldrv, NULL
      324 +        MODREV_1, { (void *)&modldrv, NULL }
 325  325  };
 326  326  
 327  327  int
 328  328  _init(void)
 329  329  {
 330  330          return (mod_install(&modlinkage));
 331  331  }
 332  332  
 333  333  int
 334  334  _fini(void)
 335  335  {
 336  336          return (mod_remove(&modlinkage));
 337  337  }
 338  338  
 339  339  int
 340  340  _info(struct modinfo *modinfop)
 341  341  {
 342  342          return (mod_info(&modlinkage, modinfop));
 343  343  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX