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


 239 
 240 
 241 /*
 242  * Forward function declarations.
 243  */
 244 static hpc_bus_entry_t *hpc_find_bus_by_name(char *name);
 245 static void hpc_slot_event_dispatcher(hpc_bus_entry_t *busp);
 246 
 247 
 248 /*
 249  * loadable module definitions:
 250  */
 251 extern struct mod_ops mod_miscops;
 252 
 253 static struct modlmisc modlmisc = {
 254         &mod_miscops,       /* Type of module */
 255         "hot-plug controller services"
 256 };
 257 
 258 static struct modlinkage modlinkage = {
 259         MODREV_1, (void *)&modlmisc, NULL
 260 };
 261 
 262 int
 263 _init(void)
 264 {
 265         int e;
 266 
 267         mutex_init(&hpc_bus_mutex, NULL, MUTEX_DRIVER, NULL);
 268 
 269         /*
 270          * Install the module.
 271          */
 272         e = mod_install(&modlinkage);
 273         if (e != 0) {
 274                 mutex_destroy(&hpc_bus_mutex);
 275         }
 276         return (e);
 277 }
 278 
 279 int




 239 
 240 
 241 /*
 242  * Forward function declarations.
 243  */
 244 static hpc_bus_entry_t *hpc_find_bus_by_name(char *name);
 245 static void hpc_slot_event_dispatcher(hpc_bus_entry_t *busp);
 246 
 247 
 248 /*
 249  * loadable module definitions:
 250  */
 251 extern struct mod_ops mod_miscops;
 252 
 253 static struct modlmisc modlmisc = {
 254         &mod_miscops,       /* Type of module */
 255         "hot-plug controller services"
 256 };
 257 
 258 static struct modlinkage modlinkage = {
 259         MODREV_1, { (void *)&modlmisc, NULL }
 260 };
 261 
 262 int
 263 _init(void)
 264 {
 265         int e;
 266 
 267         mutex_init(&hpc_bus_mutex, NULL, MUTEX_DRIVER, NULL);
 268 
 269         /*
 270          * Install the module.
 271          */
 272         e = mod_install(&modlinkage);
 273         if (e != 0) {
 274                 mutex_destroy(&hpc_bus_mutex);
 275         }
 276         return (e);
 277 }
 278 
 279 int