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


 703 static struct dev_ops ops = {
 704         DEVO_REV,               /* devo_rev */
 705         0,                      /* devo_refcnt  */
 706         nulldev,                /* devo_getinfo */
 707         nulldev,                /* devo_identify */
 708         nulldev,                /* devo_probe */
 709         xnbo_attach,            /* devo_attach */
 710         xnbo_detach,            /* devo_detach */
 711         nodev,                  /* devo_reset */
 712         &cb_ops,            /* devo_cb_ops */
 713         (struct bus_ops *)0,    /* devo_bus_ops */
 714         NULL,                   /* devo_power */
 715         ddi_quiesce_not_needed,         /* devo_quiesce */
 716 };
 717 
 718 static struct modldrv modldrv = {
 719         &mod_driverops, "xnbo driver", &ops,
 720 };
 721 
 722 static struct modlinkage modlinkage = {
 723         MODREV_1, &modldrv, NULL
 724 };
 725 
 726 int
 727 _init(void)
 728 {
 729         return (mod_install(&modlinkage));
 730 }
 731 
 732 int
 733 _info(struct modinfo *modinfop)
 734 {
 735         return (mod_info(&modlinkage, modinfop));
 736 }
 737 
 738 int
 739 _fini(void)
 740 {
 741         return (mod_remove(&modlinkage));
 742 }


 703 static struct dev_ops ops = {
 704         DEVO_REV,               /* devo_rev */
 705         0,                      /* devo_refcnt  */
 706         nulldev,                /* devo_getinfo */
 707         nulldev,                /* devo_identify */
 708         nulldev,                /* devo_probe */
 709         xnbo_attach,            /* devo_attach */
 710         xnbo_detach,            /* devo_detach */
 711         nodev,                  /* devo_reset */
 712         &cb_ops,            /* devo_cb_ops */
 713         (struct bus_ops *)0,    /* devo_bus_ops */
 714         NULL,                   /* devo_power */
 715         ddi_quiesce_not_needed,         /* devo_quiesce */
 716 };
 717 
 718 static struct modldrv modldrv = {
 719         &mod_driverops, "xnbo driver", &ops,
 720 };
 721 
 722 static struct modlinkage modlinkage = {
 723         MODREV_1, { &modldrv, NULL }
 724 };
 725 
 726 int
 727 _init(void)
 728 {
 729         return (mod_install(&modlinkage));
 730 }
 731 
 732 int
 733 _info(struct modinfo *modinfop)
 734 {
 735         return (mod_info(&modlinkage, modinfop));
 736 }
 737 
 738 int
 739 _fini(void)
 740 {
 741         return (mod_remove(&modlinkage));
 742 }