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


 139         nsmb_detach,    /* detach */
 140         nodev,          /* reset */
 141         &nsmb_cbops,        /* driver ops - devctl interfaces */
 142         NULL,           /* bus operations */
 143         NULL,           /* power */
 144         ddi_quiesce_not_needed, /* quiesce */
 145 };
 146 
 147 /*
 148  * Module linkage information.
 149  */
 150 
 151 static struct modldrv nsmb_modldrv = {
 152         &mod_driverops,                             /* Driver module */
 153         "SMBFS network driver",
 154         &nsmb_ops                           /* Driver ops */
 155 };
 156 
 157 static struct modlinkage nsmb_modlinkage = {
 158         MODREV_1,
 159         (void *)&nsmb_modldrv,
 160         NULL
 161 };
 162 
 163 int
 164 _init(void)
 165 {
 166         int error;
 167 
 168         (void) ddi_soft_state_init(&statep, sizeof (smb_dev_t), 1);
 169 
 170         /* Can initialize some mutexes also. */
 171         mutex_init(&dev_lck, NULL, MUTEX_DRIVER, NULL);
 172 
 173         /* Connection data structures. */
 174         (void) smb_sm_init();
 175 
 176         /* Initialize password Key chain DB. */
 177         smb_pkey_init();
 178 
 179         /* Time conversion stuff. */
 180         smb_time_init();




 139         nsmb_detach,    /* detach */
 140         nodev,          /* reset */
 141         &nsmb_cbops,        /* driver ops - devctl interfaces */
 142         NULL,           /* bus operations */
 143         NULL,           /* power */
 144         ddi_quiesce_not_needed, /* quiesce */
 145 };
 146 
 147 /*
 148  * Module linkage information.
 149  */
 150 
 151 static struct modldrv nsmb_modldrv = {
 152         &mod_driverops,                             /* Driver module */
 153         "SMBFS network driver",
 154         &nsmb_ops                           /* Driver ops */
 155 };
 156 
 157 static struct modlinkage nsmb_modlinkage = {
 158         MODREV_1,
 159         { (void *)&nsmb_modldrv, NULL }

 160 };
 161 
 162 int
 163 _init(void)
 164 {
 165         int error;
 166 
 167         (void) ddi_soft_state_init(&statep, sizeof (smb_dev_t), 1);
 168 
 169         /* Can initialize some mutexes also. */
 170         mutex_init(&dev_lck, NULL, MUTEX_DRIVER, NULL);
 171 
 172         /* Connection data structures. */
 173         (void) smb_sm_init();
 174 
 175         /* Initialize password Key chain DB. */
 176         smb_pkey_init();
 177 
 178         /* Time conversion stuff. */
 179         smb_time_init();