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


 144         smb_drv_getinfo,        /* devo_getinfo */
 145         nulldev,                /* devo_identify */
 146         nulldev,                /* devo_probe */
 147         smb_drv_attach,         /* devo_attach */
 148         smb_drv_detach,         /* devo_detach */
 149         nodev,                  /* devo_reset */
 150         &cbops,                     /* devo_cb_ops */
 151         NULL,                   /* devo_bus_ops */
 152         NULL,                   /* devo_power */
 153         ddi_quiesce_not_needed,         /* devo_quiesce */
 154 };
 155 
 156 static struct modldrv modldrv = {
 157         &mod_driverops,                                     /* drv_modops */
 158         "CIFS Server Protocol",                         /* drv_linkinfo */
 159         &devops,
 160 };
 161 
 162 static struct modlinkage modlinkage = {
 163         MODREV_1,       /* revision of the module, must be: MODREV_1    */
 164         &modldrv,   /* ptr to linkage structures                    */
 165         NULL,
 166 };
 167 
 168 static dev_info_t *smb_drv_dip = NULL;
 169 
 170 /*
 171  * ****************************************************************************
 172  *                                  Module Interface
 173  * ****************************************************************************
 174  */
 175 
 176 int
 177 _init(void)
 178 {
 179         int rc;
 180 
 181         if ((rc = smb_server_g_init()) != 0) {
 182                 return (rc);
 183         }
 184 
 185         if ((rc = mod_install(&modlinkage)) != 0) {




 144         smb_drv_getinfo,        /* devo_getinfo */
 145         nulldev,                /* devo_identify */
 146         nulldev,                /* devo_probe */
 147         smb_drv_attach,         /* devo_attach */
 148         smb_drv_detach,         /* devo_detach */
 149         nodev,                  /* devo_reset */
 150         &cbops,                     /* devo_cb_ops */
 151         NULL,                   /* devo_bus_ops */
 152         NULL,                   /* devo_power */
 153         ddi_quiesce_not_needed,         /* devo_quiesce */
 154 };
 155 
 156 static struct modldrv modldrv = {
 157         &mod_driverops,                                     /* drv_modops */
 158         "CIFS Server Protocol",                         /* drv_linkinfo */
 159         &devops,
 160 };
 161 
 162 static struct modlinkage modlinkage = {
 163         MODREV_1,       /* revision of the module, must be: MODREV_1    */
 164         { &modldrv, NULL }  /* ptr to linkage structures            */

 165 };
 166 
 167 static dev_info_t *smb_drv_dip = NULL;
 168 
 169 /*
 170  * ****************************************************************************
 171  *                                  Module Interface
 172  * ****************************************************************************
 173  */
 174 
 175 int
 176 _init(void)
 177 {
 178         int rc;
 179 
 180         if ((rc = smb_server_g_init()) != 0) {
 181                 return (rc);
 182         }
 183 
 184         if ((rc = mod_install(&modlinkage)) != 0) {