7127 remove -Wno-missing-braces from Makefile.uts
522 * o md_mod should be added
523 * ddi_modhandle_t md_mod;
524 * and used instead of the md_mods array (md_mods should
525 * be deleted).
526 */
527 int md_modid;
528 int md_locked;
529 int md_selfindex;
530 struct md_ops *md_next;
531 md_driver_t md_driver;
532 /* NOTE: TSlvm depends on offsets in and sizeof this structure */
533 } md_ops_t;
534
535 /* macro to generate linkage for a md misc plugin module */
536 #define md_noop
537 #define MD_PLUGIN_MISC_MODULE(desc, init_init, fini_uninit) \
538 static struct modlmisc modlmisc = { \
539 &mod_miscops, "Solaris Volume Manager " desc \
540 }; \
541 static struct modlinkage modlinkage = { \
542 MODREV_1, (void *)&modlmisc, NULL \
543 }; \
544 int \
545 _init(void) \
546 { \
547 int i; \
548 init_init; \
549 if ((i = mod_install(&modlinkage)) != 0) { \
550 fini_uninit; \
551 } \
552 return (i); \
553 } \
554 int \
555 _fini() \
556 { \
557 int i; \
558 if ((i = mod_remove(&modlinkage)) == 0) { \
559 fini_uninit; \
560 } \
561 return (i); \
562 } \
|
522 * o md_mod should be added
523 * ddi_modhandle_t md_mod;
524 * and used instead of the md_mods array (md_mods should
525 * be deleted).
526 */
527 int md_modid;
528 int md_locked;
529 int md_selfindex;
530 struct md_ops *md_next;
531 md_driver_t md_driver;
532 /* NOTE: TSlvm depends on offsets in and sizeof this structure */
533 } md_ops_t;
534
535 /* macro to generate linkage for a md misc plugin module */
536 #define md_noop
537 #define MD_PLUGIN_MISC_MODULE(desc, init_init, fini_uninit) \
538 static struct modlmisc modlmisc = { \
539 &mod_miscops, "Solaris Volume Manager " desc \
540 }; \
541 static struct modlinkage modlinkage = { \
542 MODREV_1, { (void *)&modlmisc, NULL } \
543 }; \
544 int \
545 _init(void) \
546 { \
547 int i; \
548 init_init; \
549 if ((i = mod_install(&modlinkage)) != 0) { \
550 fini_uninit; \
551 } \
552 return (i); \
553 } \
554 int \
555 _fini() \
556 { \
557 int i; \
558 if ((i = mod_remove(&modlinkage)) == 0) { \
559 fini_uninit; \
560 } \
561 return (i); \
562 } \
|