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


  99         _nskern_getinfo,
 100         nulldev,                        /* identify */
 101         nulldev,                        /* probe */
 102         _nskern_attach,
 103         _nskern_detach,
 104         nodev,                          /* reset */
 105         &nskern_cb_ops,
 106         (struct bus_ops *)NULL
 107 };
 108 
 109 static struct modldrv nskern_ldrv = {
 110         &mod_driverops,
 111         "nws:Kernel Interface:" ISS_VERSION_STR,
 112         &nskern_ops
 113 };
 114 
 115 static dev_info_t *nskern_dip;
 116 
 117 static struct modlinkage nskern_modlinkage = {
 118         MODREV_1,
 119         &nskern_ldrv,
 120         NULL
 121 };
 122 
 123 /*
 124  * Solaris module load time code
 125  */
 126 
 127 int
 128 _init(void)
 129 {
 130         void nskern_init();
 131         int err;
 132 
 133         mutex_init(&_nskern_lock, NULL, MUTEX_DRIVER, NULL);
 134 
 135         err = mod_install(&nskern_modlinkage);
 136         if (err) {
 137                 mutex_destroy(&_nskern_lock);
 138                 cmn_err(CE_WARN, "nskern_init: mod_install err %d", err);
 139                 return (err);
 140         }




  99         _nskern_getinfo,
 100         nulldev,                        /* identify */
 101         nulldev,                        /* probe */
 102         _nskern_attach,
 103         _nskern_detach,
 104         nodev,                          /* reset */
 105         &nskern_cb_ops,
 106         (struct bus_ops *)NULL
 107 };
 108 
 109 static struct modldrv nskern_ldrv = {
 110         &mod_driverops,
 111         "nws:Kernel Interface:" ISS_VERSION_STR,
 112         &nskern_ops
 113 };
 114 
 115 static dev_info_t *nskern_dip;
 116 
 117 static struct modlinkage nskern_modlinkage = {
 118         MODREV_1,
 119         { &nskern_ldrv, NULL }

 120 };
 121 
 122 /*
 123  * Solaris module load time code
 124  */
 125 
 126 int
 127 _init(void)
 128 {
 129         void nskern_init();
 130         int err;
 131 
 132         mutex_init(&_nskern_lock, NULL, MUTEX_DRIVER, NULL);
 133 
 134         err = mod_install(&nskern_modlinkage);
 135         if (err) {
 136                 mutex_destroy(&_nskern_lock);
 137                 cmn_err(CE_WARN, "nskern_init: mod_install err %d", err);
 138                 return (err);
 139         }