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


1599         xenconsinfo,            /* devo_getinfo */
1600         nulldev,                /* devo_identify */
1601         nulldev,                /* devo_probe */
1602         xenconsattach,          /* devo_attach */
1603         xenconsdetach,          /* devo_detach */
1604         nodev,                  /* devo_reset */
1605         &cb_xencons_ops,    /* devo_cb_ops */
1606         NULL,                   /* devo_bus_ops */
1607         NULL,                   /* devo_power */
1608         ddi_quiesce_not_needed,         /* devo_quiesce */
1609 };
1610 
1611 static struct modldrv modldrv = {
1612         &mod_driverops, /* Type of module.  This one is a driver */
1613         "virtual console driver",
1614         &xencons_ops,       /* driver ops */
1615 };
1616 
1617 static struct modlinkage modlinkage = {
1618         MODREV_1,
1619         (void *)&modldrv,
1620         NULL
1621 };
1622 
1623 int
1624 _init(void)
1625 {
1626         int rv;
1627 
1628         if ((rv = ddi_soft_state_init(&xencons_soft_state,
1629             sizeof (struct xencons), 1)) != 0)
1630                 return (rv);
1631         if ((rv = mod_install(&modlinkage)) != 0) {
1632                 ddi_soft_state_fini(&xencons_soft_state);
1633                 return (rv);
1634         }
1635         DEBUGCONT2(XENCONS_DEBUG_INIT, "%s, debug = %x\n",
1636             modldrv.drv_linkinfo, debug);
1637         return (0);
1638 }
1639 
1640 int


1599         xenconsinfo,            /* devo_getinfo */
1600         nulldev,                /* devo_identify */
1601         nulldev,                /* devo_probe */
1602         xenconsattach,          /* devo_attach */
1603         xenconsdetach,          /* devo_detach */
1604         nodev,                  /* devo_reset */
1605         &cb_xencons_ops,    /* devo_cb_ops */
1606         NULL,                   /* devo_bus_ops */
1607         NULL,                   /* devo_power */
1608         ddi_quiesce_not_needed,         /* devo_quiesce */
1609 };
1610 
1611 static struct modldrv modldrv = {
1612         &mod_driverops, /* Type of module.  This one is a driver */
1613         "virtual console driver",
1614         &xencons_ops,       /* driver ops */
1615 };
1616 
1617 static struct modlinkage modlinkage = {
1618         MODREV_1,
1619         { (void *)&modldrv, NULL }

1620 };
1621 
1622 int
1623 _init(void)
1624 {
1625         int rv;
1626 
1627         if ((rv = ddi_soft_state_init(&xencons_soft_state,
1628             sizeof (struct xencons), 1)) != 0)
1629                 return (rv);
1630         if ((rv = mod_install(&modlinkage)) != 0) {
1631                 ddi_soft_state_fini(&xencons_soft_state);
1632                 return (rv);
1633         }
1634         DEBUGCONT2(XENCONS_DEBUG_INIT, "%s, debug = %x\n",
1635             modldrv.drv_linkinfo, debug);
1636         return (0);
1637 }
1638 
1639 int