7127 remove -Wno-missing-braces from Makefile.uts
636
637 /*
638 * Names of (too) 'well-known' failover ops.
639 * NOTE: consumers of these names should look for a better way...
640 */
641 #define SFO_NAME_SYM "f_sym"
642 #define SFO_NAME_TPGS "f_tpgs"
643 #define SCSI_FAILOVER_IS_ASYM(svl) \
644 ((svl) ? ((svl)->svl_fo_support != SCSI_NO_FAILOVER) : 0)
645 #define SCSI_FAILOVER_IS_TPGS(sfo) \
646 ((sfo) ? (strcmp((sfo)->sfo_name, SFO_NAME_TPGS) == 0) : 0)
647
648 /*
649 * Macro to provide plumbing for basic failover module
650 */
651 #define _SCSI_FAILOVER_OP(sfo_name, local_name, ops_name) \
652 static struct modlmisc modlmisc = { \
653 &mod_miscops, sfo_name \
654 }; \
655 static struct modlinkage modlinkage = { \
656 MODREV_1, (void *)&modlmisc, NULL \
657 }; \
658 int _init() \
659 { \
660 return (mod_install(&modlinkage)); \
661 } \
662 int _fini() \
663 { \
664 return (mod_remove(&modlinkage)); \
665 } \
666 int _info(struct modinfo *modinfop) \
667 { \
668 return (mod_info(&modlinkage, modinfop)); \
669 } \
670 static int local_name##_device_probe( \
671 struct scsi_device *, \
672 struct scsi_inquiry *, void **); \
673 static void local_name##_device_unprobe( \
674 struct scsi_device *, void *); \
675 static int local_name##_path_activate( \
676 struct scsi_device *, char *, void *); \
|
636
637 /*
638 * Names of (too) 'well-known' failover ops.
639 * NOTE: consumers of these names should look for a better way...
640 */
641 #define SFO_NAME_SYM "f_sym"
642 #define SFO_NAME_TPGS "f_tpgs"
643 #define SCSI_FAILOVER_IS_ASYM(svl) \
644 ((svl) ? ((svl)->svl_fo_support != SCSI_NO_FAILOVER) : 0)
645 #define SCSI_FAILOVER_IS_TPGS(sfo) \
646 ((sfo) ? (strcmp((sfo)->sfo_name, SFO_NAME_TPGS) == 0) : 0)
647
648 /*
649 * Macro to provide plumbing for basic failover module
650 */
651 #define _SCSI_FAILOVER_OP(sfo_name, local_name, ops_name) \
652 static struct modlmisc modlmisc = { \
653 &mod_miscops, sfo_name \
654 }; \
655 static struct modlinkage modlinkage = { \
656 MODREV_1, { (void *)&modlmisc, NULL } \
657 }; \
658 int _init() \
659 { \
660 return (mod_install(&modlinkage)); \
661 } \
662 int _fini() \
663 { \
664 return (mod_remove(&modlinkage)); \
665 } \
666 int _info(struct modinfo *modinfop) \
667 { \
668 return (mod_info(&modlinkage, modinfop)); \
669 } \
670 static int local_name##_device_probe( \
671 struct scsi_device *, \
672 struct scsi_inquiry *, void **); \
673 static void local_name##_device_unprobe( \
674 struct scsi_device *, void *); \
675 static int local_name##_path_activate( \
676 struct scsi_device *, char *, void *); \
|