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


 102         nodev,
 103         nulldev,
 104         nulldev,
 105         fcoei_attach,
 106         fcoei_detach,
 107         nodev,
 108         &fcoei_cb_ops,
 109         NULL,
 110         ddi_power,
 111         ddi_quiesce_not_needed
 112 };
 113 
 114 static struct modldrv modldrv = {
 115         &mod_driverops,
 116         FCOEI_NAME_VERSION,
 117         &fcoei_ops,
 118 };
 119 
 120 static struct modlinkage modlinkage = {
 121         MODREV_1,
 122         &modldrv,
 123         NULL
 124 };
 125 
 126 /*
 127  * Driver's global variables
 128  */
 129 void    *fcoei_state       = NULL;
 130 int      fcoei_use_ext_log = 0;
 131 
 132 /*
 133  * Common loadable module entry points _init, _fini, _info
 134  */
 135 int
 136 _init(void)
 137 {
 138         int ret;
 139 
 140         ret = ddi_soft_state_init(&fcoei_state, sizeof (fcoei_soft_state_t), 0);
 141         if (ret != DDI_SUCCESS) {
 142                 FCOEI_LOG(__FUNCTION__, "soft state init failed: %x", ret);
 143                 return (ret);




 102         nodev,
 103         nulldev,
 104         nulldev,
 105         fcoei_attach,
 106         fcoei_detach,
 107         nodev,
 108         &fcoei_cb_ops,
 109         NULL,
 110         ddi_power,
 111         ddi_quiesce_not_needed
 112 };
 113 
 114 static struct modldrv modldrv = {
 115         &mod_driverops,
 116         FCOEI_NAME_VERSION,
 117         &fcoei_ops,
 118 };
 119 
 120 static struct modlinkage modlinkage = {
 121         MODREV_1,
 122         { &modldrv, NULL }

 123 };
 124 
 125 /*
 126  * Driver's global variables
 127  */
 128 void    *fcoei_state       = NULL;
 129 int      fcoei_use_ext_log = 0;
 130 
 131 /*
 132  * Common loadable module entry points _init, _fini, _info
 133  */
 134 int
 135 _init(void)
 136 {
 137         int ret;
 138 
 139         ret = ddi_soft_state_init(&fcoei_state, sizeof (fcoei_soft_state_t), 0);
 140         if (ret != DDI_SUCCESS) {
 141                 FCOEI_LOG(__FUNCTION__, "soft state init failed: %x", ret);
 142                 return (ret);