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


 240         sv_detach,
 241         nodev,          /* reset */
 242         &sv_cb_ops,
 243         (struct bus_ops *)0
 244 };
 245 
 246 /*
 247  * Module linkage.
 248  */
 249 
 250 extern struct mod_ops mod_driverops;
 251 
 252 static struct modldrv modldrv = {
 253         &mod_driverops,
 254         "nws:Storage Volume:" ISS_VERSION_STR,
 255         &sv_ops
 256 };
 257 
 258 static struct modlinkage modlinkage = {
 259         MODREV_1,
 260         &modldrv,
 261         0
 262 };
 263 
 264 
 265 int
 266 _init(void)
 267 {
 268         int error;
 269 
 270         mutex_init(&sv_mutex, NULL, MUTEX_DRIVER, NULL);
 271 
 272         if ((error = mod_install(&modlinkage)) != 0) {
 273                 mutex_destroy(&sv_mutex);
 274                 return (error);
 275         }
 276 
 277 #ifdef DEBUG
 278         cmn_err(CE_CONT, "!sv (revision %d.%d.%d.%d, %s, %s)\n",
 279             sv_major_rev, sv_minor_rev, sv_micro_rev, sv_baseline_rev,
 280             ISS_VERSION_STR, BUILD_DATE_STR);
 281 #else




 240         sv_detach,
 241         nodev,          /* reset */
 242         &sv_cb_ops,
 243         (struct bus_ops *)0
 244 };
 245 
 246 /*
 247  * Module linkage.
 248  */
 249 
 250 extern struct mod_ops mod_driverops;
 251 
 252 static struct modldrv modldrv = {
 253         &mod_driverops,
 254         "nws:Storage Volume:" ISS_VERSION_STR,
 255         &sv_ops
 256 };
 257 
 258 static struct modlinkage modlinkage = {
 259         MODREV_1,
 260         { &modldrv, NULL }

 261 };
 262 
 263 
 264 int
 265 _init(void)
 266 {
 267         int error;
 268 
 269         mutex_init(&sv_mutex, NULL, MUTEX_DRIVER, NULL);
 270 
 271         if ((error = mod_install(&modlinkage)) != 0) {
 272                 mutex_destroy(&sv_mutex);
 273                 return (error);
 274         }
 275 
 276 #ifdef DEBUG
 277         cmn_err(CE_CONT, "!sv (revision %d.%d.%d.%d, %s, %s)\n",
 278             sv_major_rev, sv_minor_rev, sv_micro_rev, sv_baseline_rev,
 279             ISS_VERSION_STR, BUILD_DATE_STR);
 280 #else