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


1178         dcpc_attach,            /* attach */
1179         dcpc_detach,            /* detach */
1180         nodev,                  /* reset */
1181         &dcpc_cb_ops,               /* driver operations */
1182         NULL,                   /* bus operations */
1183         nodev,                  /* dev power */
1184         ddi_quiesce_not_needed  /* quiesce */
1185 };
1186 
1187 /*
1188  * Module linkage information for the kernel.
1189  */
1190 static struct modldrv modldrv = {
1191         &mod_driverops,             /* module type */
1192         "DTrace CPC Module",    /* name of module */
1193         &dcpc_ops,          /* driver ops */
1194 };
1195 
1196 static struct modlinkage modlinkage = {
1197         MODREV_1,
1198         (void *)&modldrv,
1199         NULL
1200 };
1201 
1202 int
1203 _init(void)
1204 {
1205         return (mod_install(&modlinkage));
1206 }
1207 
1208 int
1209 _info(struct modinfo *modinfop)
1210 {
1211         return (mod_info(&modlinkage, modinfop));
1212 }
1213 
1214 int
1215 _fini(void)
1216 {
1217         return (mod_remove(&modlinkage));
1218 }


1178         dcpc_attach,            /* attach */
1179         dcpc_detach,            /* detach */
1180         nodev,                  /* reset */
1181         &dcpc_cb_ops,               /* driver operations */
1182         NULL,                   /* bus operations */
1183         nodev,                  /* dev power */
1184         ddi_quiesce_not_needed  /* quiesce */
1185 };
1186 
1187 /*
1188  * Module linkage information for the kernel.
1189  */
1190 static struct modldrv modldrv = {
1191         &mod_driverops,             /* module type */
1192         "DTrace CPC Module",    /* name of module */
1193         &dcpc_ops,          /* driver ops */
1194 };
1195 
1196 static struct modlinkage modlinkage = {
1197         MODREV_1,
1198         { (void *)&modldrv, NULL }

1199 };
1200 
1201 int
1202 _init(void)
1203 {
1204         return (mod_install(&modlinkage));
1205 }
1206 
1207 int
1208 _info(struct modinfo *modinfop)
1209 {
1210         return (mod_info(&modlinkage, modinfop));
1211 }
1212 
1213 int
1214 _fini(void)
1215 {
1216         return (mod_remove(&modlinkage));
1217 }