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


 381         7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7
 382 };
 383 
 384 #define UPRI(gld, band) ((band != 0) ? user_priority[(band)] : (gld)->gld_upri)
 385 
 386 static struct glddevice gld_device_list;  /* Per-system root of GLD tables */
 387 
 388 /*
 389  * Module linkage information for the kernel.
 390  */
 391 
 392 static struct modldrv modlmisc = {
 393         &mod_miscops,               /* Type of module - a utility provider */
 394         "Generic LAN Driver (" GLD_VERSION_STRING ")"
 395 #ifdef GLD_DEBUG
 396         " DEBUG"
 397 #endif
 398 };
 399 
 400 static struct modlinkage modlinkage = {
 401         MODREV_1, &modlmisc, NULL
 402 };
 403 
 404 int
 405 _init(void)
 406 {
 407         int e;
 408 
 409         /* initialize gld_device_list mutex */
 410         mutex_init(&gld_device_list.gld_devlock, NULL, MUTEX_DRIVER, NULL);
 411 
 412         /* initialize device driver (per-major) list */
 413         gld_device_list.gld_next =
 414             gld_device_list.gld_prev = &gld_device_list;
 415 
 416         if ((e = mod_install(&modlinkage)) != 0)
 417                 mutex_destroy(&gld_device_list.gld_devlock);
 418 
 419         return (e);
 420 }
 421 




 381         7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7
 382 };
 383 
 384 #define UPRI(gld, band) ((band != 0) ? user_priority[(band)] : (gld)->gld_upri)
 385 
 386 static struct glddevice gld_device_list;  /* Per-system root of GLD tables */
 387 
 388 /*
 389  * Module linkage information for the kernel.
 390  */
 391 
 392 static struct modldrv modlmisc = {
 393         &mod_miscops,               /* Type of module - a utility provider */
 394         "Generic LAN Driver (" GLD_VERSION_STRING ")"
 395 #ifdef GLD_DEBUG
 396         " DEBUG"
 397 #endif
 398 };
 399 
 400 static struct modlinkage modlinkage = {
 401         MODREV_1, { &modlmisc, NULL }
 402 };
 403 
 404 int
 405 _init(void)
 406 {
 407         int e;
 408 
 409         /* initialize gld_device_list mutex */
 410         mutex_init(&gld_device_list.gld_devlock, NULL, MUTEX_DRIVER, NULL);
 411 
 412         /* initialize device driver (per-major) list */
 413         gld_device_list.gld_next =
 414             gld_device_list.gld_prev = &gld_device_list;
 415 
 416         if ((e = mod_install(&modlinkage)) != 0)
 417                 mutex_destroy(&gld_device_list.gld_devlock);
 418 
 419         return (e);
 420 }
 421