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


 295 
 296 int pcihp_autocfg_enabled = 1; /* auto config is enabled by default */
 297 
 298 static kmutex_t pcihp_mutex; /* mutex to protect the following data */
 299 static pcihp_t *pcihp_head = NULL;
 300 
 301 static kmutex_t pcihp_open_mutex; /* mutex to protect open/close/uninit */
 302 static int      pci_devlink_flags = 0;
 303 
 304 /*
 305  * Module linkage information for the kernel.
 306  */
 307 extern struct mod_ops mod_miscops;
 308 static struct modlmisc modlmisc = {
 309         &mod_miscops,
 310         "PCI nexus hotplug support",
 311 };
 312 
 313 static struct modlinkage modlinkage = {
 314         MODREV_1,
 315         &modlmisc,
 316         NULL
 317 };
 318 
 319 int
 320 _init(void)
 321 {
 322         int error;
 323 
 324         mutex_init(&pcihp_mutex, NULL, MUTEX_DRIVER, NULL);
 325         mutex_init(&pcihp_open_mutex, NULL, MUTEX_DRIVER, NULL);
 326         if ((error = mod_install(&modlinkage)) != 0) {
 327                 mutex_destroy(&pcihp_open_mutex);
 328                 mutex_destroy(&pcihp_mutex);
 329         }
 330 
 331         return (error);
 332 }
 333 
 334 int
 335 _fini(void)
 336 {




 295 
 296 int pcihp_autocfg_enabled = 1; /* auto config is enabled by default */
 297 
 298 static kmutex_t pcihp_mutex; /* mutex to protect the following data */
 299 static pcihp_t *pcihp_head = NULL;
 300 
 301 static kmutex_t pcihp_open_mutex; /* mutex to protect open/close/uninit */
 302 static int      pci_devlink_flags = 0;
 303 
 304 /*
 305  * Module linkage information for the kernel.
 306  */
 307 extern struct mod_ops mod_miscops;
 308 static struct modlmisc modlmisc = {
 309         &mod_miscops,
 310         "PCI nexus hotplug support",
 311 };
 312 
 313 static struct modlinkage modlinkage = {
 314         MODREV_1,
 315         { &modlmisc, NULL }

 316 };
 317 
 318 int
 319 _init(void)
 320 {
 321         int error;
 322 
 323         mutex_init(&pcihp_mutex, NULL, MUTEX_DRIVER, NULL);
 324         mutex_init(&pcihp_open_mutex, NULL, MUTEX_DRIVER, NULL);
 325         if ((error = mod_install(&modlinkage)) != 0) {
 326                 mutex_destroy(&pcihp_open_mutex);
 327                 mutex_destroy(&pcihp_mutex);
 328         }
 329 
 330         return (error);
 331 }
 332 
 333 int
 334 _fini(void)
 335 {