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


 148         nulldev,                /* identify */
 149         nulldev,                /* probe */
 150         sbd_attach,
 151         sbd_detach,
 152         nodev,                  /* reset */
 153         &sbd_cb_ops,
 154         NULL,                   /* bus_ops */
 155         NULL                    /* power */
 156 };
 157 
 158 #define SBD_NAME        "COMSTAR SBD"
 159 
 160 static struct modldrv modldrv = {
 161         &mod_driverops,
 162         SBD_NAME,
 163         &sbd_ops
 164 };
 165 
 166 static struct modlinkage modlinkage = {
 167         MODREV_1,
 168         &modldrv,
 169         NULL
 170 };
 171 
 172 int
 173 _init(void)
 174 {
 175         int ret;
 176 
 177         ret = mod_install(&modlinkage);
 178         if (ret)
 179                 return (ret);
 180         sbd_lp = (stmf_lu_provider_t *)stmf_alloc(STMF_STRUCT_LU_PROVIDER,
 181             0, 0);
 182         sbd_lp->lp_lpif_rev = LPIF_REV_2;
 183         sbd_lp->lp_instance = 0;
 184         sbd_lp->lp_name = sbd_name;
 185         sbd_lp->lp_cb = sbd_lp_cb;
 186         sbd_lp->lp_alua_support = 1;
 187         sbd_lp->lp_proxy_msg = sbd_proxy_msg;
 188         sbd_zfs_ident = ldi_ident_from_anon();
 189 




 148         nulldev,                /* identify */
 149         nulldev,                /* probe */
 150         sbd_attach,
 151         sbd_detach,
 152         nodev,                  /* reset */
 153         &sbd_cb_ops,
 154         NULL,                   /* bus_ops */
 155         NULL                    /* power */
 156 };
 157 
 158 #define SBD_NAME        "COMSTAR SBD"
 159 
 160 static struct modldrv modldrv = {
 161         &mod_driverops,
 162         SBD_NAME,
 163         &sbd_ops
 164 };
 165 
 166 static struct modlinkage modlinkage = {
 167         MODREV_1,
 168         { &modldrv, NULL }

 169 };
 170 
 171 int
 172 _init(void)
 173 {
 174         int ret;
 175 
 176         ret = mod_install(&modlinkage);
 177         if (ret)
 178                 return (ret);
 179         sbd_lp = (stmf_lu_provider_t *)stmf_alloc(STMF_STRUCT_LU_PROVIDER,
 180             0, 0);
 181         sbd_lp->lp_lpif_rev = LPIF_REV_2;
 182         sbd_lp->lp_instance = 0;
 183         sbd_lp->lp_name = sbd_name;
 184         sbd_lp->lp_cb = sbd_lp_cb;
 185         sbd_lp->lp_alua_support = 1;
 186         sbd_lp->lp_proxy_msg = sbd_proxy_msg;
 187         sbd_zfs_ident = ldi_ident_from_anon();
 188