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


 285 };
 286 
 287 struct streamtab sdpinfo = {
 288         &rinit, &winit, NULL, NULL
 289 };
 290 
 291 DDI_DEFINE_STREAM_OPS(sdp_devops, nulldev, nulldev, sdp_gen_attach,
 292     sdp_gen_detach, nodev, NULL, D_MP, &sdpinfo, ddi_quiesce_not_needed);
 293 
 294 /*
 295  * Module linkage information for the kernel.
 296  */
 297 static struct modldrv modldrv = {
 298         &mod_driverops,
 299         SDP_DEVDESC,
 300         &sdp_devops
 301 };
 302 
 303 static struct modlinkage modlinkage = {
 304         MODREV_1,
 305         &modldrv,
 306         NULL
 307 };
 308 
 309 int
 310 _init(void)
 311 {
 312         int     ret;
 313 
 314         ret = mod_install(&modlinkage);
 315         if (ret != 0)
 316                 goto done;
 317         ret = ldi_ident_from_mod(&modlinkage, &sdp_li);
 318         if (ret != 0)
 319                 sdp_li = NULL;
 320 done:
 321         return (ret);
 322 }
 323 
 324 int
 325 _fini(void)
 326 {


 285 };
 286 
 287 struct streamtab sdpinfo = {
 288         &rinit, &winit, NULL, NULL
 289 };
 290 
 291 DDI_DEFINE_STREAM_OPS(sdp_devops, nulldev, nulldev, sdp_gen_attach,
 292     sdp_gen_detach, nodev, NULL, D_MP, &sdpinfo, ddi_quiesce_not_needed);
 293 
 294 /*
 295  * Module linkage information for the kernel.
 296  */
 297 static struct modldrv modldrv = {
 298         &mod_driverops,
 299         SDP_DEVDESC,
 300         &sdp_devops
 301 };
 302 
 303 static struct modlinkage modlinkage = {
 304         MODREV_1,
 305         { &modldrv, NULL }

 306 };
 307 
 308 int
 309 _init(void)
 310 {
 311         int     ret;
 312 
 313         ret = mod_install(&modlinkage);
 314         if (ret != 0)
 315                 goto done;
 316         ret = ldi_ident_from_mod(&modlinkage, &sdp_li);
 317         if (ret != 0)
 318                 sdp_li = NULL;
 319 done:
 320         return (ret);
 321 }
 322 
 323 int
 324 _fini(void)
 325 {