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


  55         (struct bus_ops *)0,    /* bus operations */
  56         nulldev,                /* power */
  57         ddi_quiesce_not_needed,         /* quiesce */
  58 
  59 };
  60 
  61 /*
  62  * Autoload Data and Autoload Entry
  63  */
  64 
  65 #include <sys/modctl.h>
  66 
  67 extern struct mod_ops mod_driverops;
  68 static struct modldrv modldrv = {
  69         &mod_driverops,     /* Type of module. This one is a driver */
  70         "options driver",       /* Name of the module. */
  71         &options_ops,       /* driver ops */
  72 };
  73 
  74 static struct modlinkage modlinkage = {
  75         MODREV_1, (void *)&modldrv
  76 };
  77 
  78 /*
  79  * This is the driver initialization routine.
  80  */
  81 
  82 int
  83 _init()
  84 {
  85         return (mod_install(&modlinkage));
  86 }
  87 
  88 int
  89 _fini()
  90 {
  91         return (EBUSY);
  92 }
  93 
  94 int
  95 _info(modinfop)




  55         (struct bus_ops *)0,    /* bus operations */
  56         nulldev,                /* power */
  57         ddi_quiesce_not_needed,         /* quiesce */
  58 
  59 };
  60 
  61 /*
  62  * Autoload Data and Autoload Entry
  63  */
  64 
  65 #include <sys/modctl.h>
  66 
  67 extern struct mod_ops mod_driverops;
  68 static struct modldrv modldrv = {
  69         &mod_driverops,     /* Type of module. This one is a driver */
  70         "options driver",       /* Name of the module. */
  71         &options_ops,       /* driver ops */
  72 };
  73 
  74 static struct modlinkage modlinkage = {
  75         MODREV_1, { (void *)&modldrv, NULL }
  76 };
  77 
  78 /*
  79  * This is the driver initialization routine.
  80  */
  81 
  82 int
  83 _init()
  84 {
  85         return (mod_install(&modlinkage));
  86 }
  87 
  88 int
  89 _fini()
  90 {
  91         return (EBUSY);
  92 }
  93 
  94 int
  95 _info(modinfop)