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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/log.c
          +++ new/usr/src/uts/common/io/log.c
↓ open down ↓ 305 lines elided ↑ open up ↑
 306  306  
 307  307  static struct streamtab loginfo = { &logrinit, &logwinit, NULL, NULL };
 308  308  
 309  309  DDI_DEFINE_STREAM_OPS(log_ops, nulldev, nulldev, log_attach, nodev,
 310  310          nodev, log_info, D_NEW | D_MP | D_MTPERMOD, &loginfo,
 311  311          ddi_quiesce_not_needed);
 312  312  
 313  313  static struct modldrv modldrv =
 314  314          { &mod_driverops, "streams log driver", &log_ops };
 315  315  
 316      -static struct modlinkage modlinkage = { MODREV_1, (void *)&modldrv, NULL };
      316 +static struct modlinkage modlinkage = { MODREV_1, { (void *)&modldrv, NULL } };
 317  317  
 318  318  int
 319  319  _init()
 320  320  {
 321  321          return (mod_install(&modlinkage));
 322  322  }
 323  323  
 324  324  int
 325  325  _fini()
 326  326  {
 327  327          return (mod_remove(&modlinkage));
 328  328  }
 329  329  
 330  330  int
 331  331  _info(struct modinfo *modinfop)
 332  332  {
 333  333          return (mod_info(&modlinkage, modinfop));
 334  334  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX