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


 162         nulldev,                /* probe */
 163         hermon_attach,          /* attach */
 164         hermon_detach,          /* detach */
 165         nodev,                  /* reset */
 166         &hermon_cb_ops,             /* cb_ops */
 167         NULL,                   /* bus_ops */
 168         nodev,                  /* power */
 169         hermon_quiesce,         /* devo_quiesce */
 170 };
 171 
 172 /* Module Driver Info */
 173 static struct modldrv hermon_modldrv = {
 174         &mod_driverops,
 175         "ConnectX IB Driver",
 176         &hermon_ops
 177 };
 178 
 179 /* Module Linkage */
 180 static struct modlinkage hermon_modlinkage = {
 181         MODREV_1,
 182         &hermon_modldrv,
 183         NULL
 184 };
 185 
 186 /*
 187  * This extern refers to the ibc_operations_t function vector that is defined
 188  * in the hermon_ci.c file.
 189  */
 190 extern ibc_operations_t hermon_ibc_ops;
 191 
 192 /*
 193  * _init()
 194  */
 195 int
 196 _init()
 197 {
 198         int     status;
 199 
 200         status = ddi_soft_state_init(&hermon_statep, sizeof (hermon_state_t),
 201             (size_t)HERMON_INITIAL_STATES);
 202         if (status != 0) {
 203                 return (status);




 162         nulldev,                /* probe */
 163         hermon_attach,          /* attach */
 164         hermon_detach,          /* detach */
 165         nodev,                  /* reset */
 166         &hermon_cb_ops,             /* cb_ops */
 167         NULL,                   /* bus_ops */
 168         nodev,                  /* power */
 169         hermon_quiesce,         /* devo_quiesce */
 170 };
 171 
 172 /* Module Driver Info */
 173 static struct modldrv hermon_modldrv = {
 174         &mod_driverops,
 175         "ConnectX IB Driver",
 176         &hermon_ops
 177 };
 178 
 179 /* Module Linkage */
 180 static struct modlinkage hermon_modlinkage = {
 181         MODREV_1,
 182         { &hermon_modldrv, NULL }

 183 };
 184 
 185 /*
 186  * This extern refers to the ibc_operations_t function vector that is defined
 187  * in the hermon_ci.c file.
 188  */
 189 extern ibc_operations_t hermon_ibc_ops;
 190 
 191 /*
 192  * _init()
 193  */
 194 int
 195 _init()
 196 {
 197         int     status;
 198 
 199         status = ddi_soft_state_init(&hermon_statep, sizeof (hermon_state_t),
 200             (size_t)HERMON_INITIAL_STATES);
 201         if (status != 0) {
 202                 return (status);