Print this page
fixup .text where possible
7127  remove -Wno-missing-braces from Makefile.uts


 147         cpqary3_attach,         /* Attach routine */
 148         cpqary3_detach,         /* Detach routine */
 149         nodev,                  /* Reset */
 150         &cpqary3_cb_ops,    /* Entry Points for C&B drivers */
 151         NULL,                   /* Bus ops */
 152         nodev                   /* cpqary3_power */
 153 };
 154 
 155 /*
 156  * Linkage structures
 157  */
 158 
 159 static struct modldrv cpqary3_modldrv = {
 160         &mod_driverops,             /* Module Type - driver */
 161         cpqary3_brief,          /* Driver Desc */
 162         &cpqary3_dev_ops    /* Driver Ops */
 163 };
 164 
 165 static struct modlinkage cpqary3_modlinkage = {
 166         MODREV_1,               /* Loadable module rev. no. */
 167         &cpqary3_modldrv,   /* Loadable module */
 168         NULL                    /* end */
 169 };
 170 
 171 
 172 /*
 173  * Function     :       _init
 174  * Description  :       This routine allocates soft state resources for the
 175  *                      driver, registers the HBA with the system and
 176  *                      adds the driver(loadable module).
 177  * Called By    :       Kernel
 178  * Parameters   :       None
 179  * Return Values:       0 / Non-Zero
 180  *                      [as returned by the mod_install OS function]
 181  */
 182 int
 183 _init()
 184 {
 185         int  retvalue;
 186 
 187         /*
 188          * Allocate Soft State Resources; if failure, return.




 147         cpqary3_attach,         /* Attach routine */
 148         cpqary3_detach,         /* Detach routine */
 149         nodev,                  /* Reset */
 150         &cpqary3_cb_ops,    /* Entry Points for C&B drivers */
 151         NULL,                   /* Bus ops */
 152         nodev                   /* cpqary3_power */
 153 };
 154 
 155 /*
 156  * Linkage structures
 157  */
 158 
 159 static struct modldrv cpqary3_modldrv = {
 160         &mod_driverops,             /* Module Type - driver */
 161         cpqary3_brief,          /* Driver Desc */
 162         &cpqary3_dev_ops    /* Driver Ops */
 163 };
 164 
 165 static struct modlinkage cpqary3_modlinkage = {
 166         MODREV_1,                       /* Loadable module rev. no. */
 167         {   &cpqary3_modldrv,               /* Loadable module */
 168             NULL }
 169 };
 170 
 171 
 172 /*
 173  * Function     :       _init
 174  * Description  :       This routine allocates soft state resources for the
 175  *                      driver, registers the HBA with the system and
 176  *                      adds the driver(loadable module).
 177  * Called By    :       Kernel
 178  * Parameters   :       None
 179  * Return Values:       0 / Non-Zero
 180  *                      [as returned by the mod_install OS function]
 181  */
 182 int
 183 _init()
 184 {
 185         int  retvalue;
 186 
 187         /*
 188          * Allocate Soft State Resources; if failure, return.