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


 135         DEVO_REV,                       /* Driver build version */
 136         0,                              /* device reference count */
 137         _sdbc_getinfo,
 138         nulldev,
 139         _sdbc_probe,
 140         _sdbc_attach,
 141         _sdbc_detach,
 142         _sdbc_reset,
 143         &sdbc_cb_ops,
 144         (struct bus_ops *)NULL
 145 };
 146 
 147 static struct modldrv sdbc_ldrv = {
 148         &mod_driverops,
 149         "nws:Storage Cache:" ISS_VERSION_STR,
 150         &sdbc_ops
 151 };
 152 
 153 static  struct modlinkage sdbc_modlinkage = {
 154         MODREV_1,
 155         &sdbc_ldrv,
 156         NULL
 157 };
 158 
 159 /*
 160  * dynmem interface
 161  */
 162 static int mutex_and_condvar_flag;
 163 
 164 /*
 165  * Solaris module load time code
 166  */
 167 int
 168 _init(void)
 169 {
 170 
 171         int err;
 172 
 173         mutex_and_condvar_flag = 0;
 174 
 175 #ifdef USES_SOFT_STATE
 176         ddi_soft_state_init(&sdbc_statep, sizeof (struct sdbc_state),




 135         DEVO_REV,                       /* Driver build version */
 136         0,                              /* device reference count */
 137         _sdbc_getinfo,
 138         nulldev,
 139         _sdbc_probe,
 140         _sdbc_attach,
 141         _sdbc_detach,
 142         _sdbc_reset,
 143         &sdbc_cb_ops,
 144         (struct bus_ops *)NULL
 145 };
 146 
 147 static struct modldrv sdbc_ldrv = {
 148         &mod_driverops,
 149         "nws:Storage Cache:" ISS_VERSION_STR,
 150         &sdbc_ops
 151 };
 152 
 153 static  struct modlinkage sdbc_modlinkage = {
 154         MODREV_1,
 155         { &sdbc_ldrv, NULL }

 156 };
 157 
 158 /*
 159  * dynmem interface
 160  */
 161 static int mutex_and_condvar_flag;
 162 
 163 /*
 164  * Solaris module load time code
 165  */
 166 int
 167 _init(void)
 168 {
 169 
 170         int err;
 171 
 172         mutex_and_condvar_flag = 0;
 173 
 174 #ifdef USES_SOFT_STATE
 175         ddi_soft_state_init(&sdbc_statep, sizeof (struct sdbc_state),