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


 532         sdt_attach,             /* attach */
 533         sdt_detach,             /* detach */
 534         nodev,                  /* reset */
 535         &sdt_cb_ops,                /* driver operations */
 536         NULL,                   /* bus operations */
 537         nodev,                  /* dev power */
 538         ddi_quiesce_not_needed,         /* quiesce */
 539 };
 540 
 541 /*
 542  * Module linkage information for the kernel.
 543  */
 544 static struct modldrv modldrv = {
 545         &mod_driverops,             /* module type (this is a pseudo driver) */
 546         "Statically Defined Tracing",   /* name of module */
 547         &sdt_ops,           /* driver ops */
 548 };
 549 
 550 static struct modlinkage modlinkage = {
 551         MODREV_1,
 552         (void *)&modldrv,
 553         NULL
 554 };
 555 
 556 int
 557 _init(void)
 558 {
 559         return (mod_install(&modlinkage));
 560 }
 561 
 562 int
 563 _info(struct modinfo *modinfop)
 564 {
 565         return (mod_info(&modlinkage, modinfop));
 566 }
 567 
 568 int
 569 _fini(void)
 570 {
 571         return (mod_remove(&modlinkage));
 572 }


 532         sdt_attach,             /* attach */
 533         sdt_detach,             /* detach */
 534         nodev,                  /* reset */
 535         &sdt_cb_ops,                /* driver operations */
 536         NULL,                   /* bus operations */
 537         nodev,                  /* dev power */
 538         ddi_quiesce_not_needed,         /* quiesce */
 539 };
 540 
 541 /*
 542  * Module linkage information for the kernel.
 543  */
 544 static struct modldrv modldrv = {
 545         &mod_driverops,             /* module type (this is a pseudo driver) */
 546         "Statically Defined Tracing",   /* name of module */
 547         &sdt_ops,           /* driver ops */
 548 };
 549 
 550 static struct modlinkage modlinkage = {
 551         MODREV_1,
 552         { (void *)&modldrv, NULL }

 553 };
 554 
 555 int
 556 _init(void)
 557 {
 558         return (mod_install(&modlinkage));
 559 }
 560 
 561 int
 562 _info(struct modinfo *modinfop)
 563 {
 564         return (mod_info(&modlinkage, modinfop));
 565 }
 566 
 567 int
 568 _fini(void)
 569 {
 570         return (mod_remove(&modlinkage));
 571 }