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


 372         privcmd_getinfo,
 373         nulldev,                /* identify */
 374         nulldev,                /* probe */
 375         privcmd_attach,
 376         privcmd_detach,
 377         nodev,                  /* reset */
 378         &privcmd_cb_ops,
 379         0,                      /* struct bus_ops */
 380         NULL,                   /* power */
 381         ddi_quiesce_not_needed,         /* quiesce */
 382 };
 383 
 384 static struct modldrv modldrv = {
 385         &mod_driverops,
 386         "privcmd driver",
 387         &privcmd_dv_ops
 388 };
 389 
 390 static struct modlinkage modl = {
 391         MODREV_1,
 392         &modldrv
 393 };
 394 
 395 int
 396 _init(void)
 397 {
 398         return (mod_install(&modl));
 399 }
 400 
 401 int
 402 _fini(void)
 403 {
 404         return (mod_remove(&modl));
 405 }
 406 
 407 int
 408 _info(struct modinfo *modinfo)
 409 {
 410         return (mod_info(&modl, modinfo));
 411 }


 372         privcmd_getinfo,
 373         nulldev,                /* identify */
 374         nulldev,                /* probe */
 375         privcmd_attach,
 376         privcmd_detach,
 377         nodev,                  /* reset */
 378         &privcmd_cb_ops,
 379         0,                      /* struct bus_ops */
 380         NULL,                   /* power */
 381         ddi_quiesce_not_needed,         /* quiesce */
 382 };
 383 
 384 static struct modldrv modldrv = {
 385         &mod_driverops,
 386         "privcmd driver",
 387         &privcmd_dv_ops
 388 };
 389 
 390 static struct modlinkage modl = {
 391         MODREV_1,
 392         { &modldrv, NULL }
 393 };
 394 
 395 int
 396 _init(void)
 397 {
 398         return (mod_install(&modl));
 399 }
 400 
 401 int
 402 _fini(void)
 403 {
 404         return (mod_remove(&modl));
 405 }
 406 
 407 int
 408 _info(struct modinfo *modinfo)
 409 {
 410         return (mod_info(&modl, modinfo));
 411 }