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


1202         xdfs_probe,             /* probe */
1203         xdfs_attach,            /* attach */
1204         xdfs_detach,            /* detach */
1205         nodev,                  /* reset */
1206         &xdfs_cb_ops,               /* driver operations */
1207         NULL,                   /* bus operations */
1208         xdfs_power,             /* power */
1209         ddi_quiesce_not_supported, /* devo_quiesce */
1210 };
1211 
1212 /*
1213  * Module linkage information for the kernel.
1214  */
1215 static struct modldrv modldrv = {
1216         &mod_driverops,             /* Type of module.  This one is a driver. */
1217         NULL,                   /* Module description.  Set by _init() */
1218         &xdfs_ops,          /* Driver ops. */
1219 };
1220 
1221 static struct modlinkage modlinkage = {
1222         MODREV_1, (void *)&modldrv, NULL
1223 };
1224 
1225 int
1226 _init(void)
1227 {
1228         int rval;
1229 
1230         xdfs_major = ddi_name_to_major((char *)xdfs_c_name);
1231         if (xdfs_major == (major_t)-1)
1232                 return (EINVAL);
1233 
1234         /*
1235          * Determine the size of our soft state structure.  The base
1236          * size of the structure is the larger of the hvm clients state
1237          * structure, or our shell state structure.  Then we'll align
1238          * the end of the structure to a pointer boundry and append
1239          * a xdfs_hvm_state_t structure.  This way the xdfs_hvm_state_t
1240          * structure is always present and we can use it to determine the
1241          * current device access mode (hvm or shell).
1242          */




1202         xdfs_probe,             /* probe */
1203         xdfs_attach,            /* attach */
1204         xdfs_detach,            /* detach */
1205         nodev,                  /* reset */
1206         &xdfs_cb_ops,               /* driver operations */
1207         NULL,                   /* bus operations */
1208         xdfs_power,             /* power */
1209         ddi_quiesce_not_supported, /* devo_quiesce */
1210 };
1211 
1212 /*
1213  * Module linkage information for the kernel.
1214  */
1215 static struct modldrv modldrv = {
1216         &mod_driverops,             /* Type of module.  This one is a driver. */
1217         NULL,                   /* Module description.  Set by _init() */
1218         &xdfs_ops,          /* Driver ops. */
1219 };
1220 
1221 static struct modlinkage modlinkage = {
1222         MODREV_1, { (void *)&modldrv, NULL }
1223 };
1224 
1225 int
1226 _init(void)
1227 {
1228         int rval;
1229 
1230         xdfs_major = ddi_name_to_major((char *)xdfs_c_name);
1231         if (xdfs_major == (major_t)-1)
1232                 return (EINVAL);
1233 
1234         /*
1235          * Determine the size of our soft state structure.  The base
1236          * size of the structure is the larger of the hvm clients state
1237          * structure, or our shell state structure.  Then we'll align
1238          * the end of the structure to a pointer boundry and append
1239          * a xdfs_hvm_state_t structure.  This way the xdfs_hvm_state_t
1240          * structure is always present and we can use it to determine the
1241          * current device access mode (hvm or shell).
1242          */