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


 362 _NOTE(READ_ONLY_DATA(ibcm_taskq))
 363 
 364 _NOTE(MUTEX_PROTECTS_DATA(ibcm_timeout_list_lock, ibcm_timeout_list_flags))
 365 _NOTE(MUTEX_PROTECTS_DATA(ibcm_timeout_list_lock, ibcm_timeout_list_hdr))
 366 _NOTE(MUTEX_PROTECTS_DATA(ibcm_timeout_list_lock, ibcm_ud_timeout_list_hdr))
 367 
 368 #ifdef DEBUG
 369 int             ibcm_test_mode = 0;     /* set to 1, if running tests */
 370 #endif
 371 
 372 
 373 /* Module Driver Info */
 374 static struct modlmisc ibcm_modlmisc = {
 375         &mod_miscops,
 376         "IB Communication Manager"
 377 };
 378 
 379 /* Module Linkage */
 380 static struct modlinkage ibcm_modlinkage = {
 381         MODREV_1,
 382         &ibcm_modlmisc,
 383         NULL
 384 };
 385 
 386 
 387 int
 388 _init(void)
 389 {
 390         int             rval;
 391         ibcm_status_t   status;
 392 
 393         status = ibcm_init();
 394         if (status != IBCM_SUCCESS) {
 395                 IBTF_DPRINTF_L2(cmlog, "_init: ibcm failed %d", status);
 396                 return (EINVAL);
 397         }
 398 
 399         rval = mod_install(&ibcm_modlinkage);
 400         if (rval != 0) {
 401                 IBTF_DPRINTF_L2(cmlog, "_init: ibcm mod_install failed %d",
 402                     rval);
 403                 (void) ibcm_fini();




 362 _NOTE(READ_ONLY_DATA(ibcm_taskq))
 363 
 364 _NOTE(MUTEX_PROTECTS_DATA(ibcm_timeout_list_lock, ibcm_timeout_list_flags))
 365 _NOTE(MUTEX_PROTECTS_DATA(ibcm_timeout_list_lock, ibcm_timeout_list_hdr))
 366 _NOTE(MUTEX_PROTECTS_DATA(ibcm_timeout_list_lock, ibcm_ud_timeout_list_hdr))
 367 
 368 #ifdef DEBUG
 369 int             ibcm_test_mode = 0;     /* set to 1, if running tests */
 370 #endif
 371 
 372 
 373 /* Module Driver Info */
 374 static struct modlmisc ibcm_modlmisc = {
 375         &mod_miscops,
 376         "IB Communication Manager"
 377 };
 378 
 379 /* Module Linkage */
 380 static struct modlinkage ibcm_modlinkage = {
 381         MODREV_1,
 382         { &ibcm_modlmisc, NULL }

 383 };
 384 
 385 
 386 int
 387 _init(void)
 388 {
 389         int             rval;
 390         ibcm_status_t   status;
 391 
 392         status = ibcm_init();
 393         if (status != IBCM_SUCCESS) {
 394                 IBTF_DPRINTF_L2(cmlog, "_init: ibcm failed %d", status);
 395                 return (EINVAL);
 396         }
 397 
 398         rval = mod_install(&ibcm_modlinkage);
 399         if (rval != 0) {
 400                 IBTF_DPRINTF_L2(cmlog, "_init: ibcm mod_install failed %d",
 401                     rval);
 402                 (void) ibcm_fini();