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


 158 #include <sys/modctl.h>
 159 
 160 
 161 extern int nodev(), nulldev();
 162 extern int dseekneg_flag;
 163 extern struct mod_ops mod_driverops;
 164 extern struct dev_ops cn_ops;
 165 
 166 /*
 167  * Module linkage information for the kernel.
 168  */
 169 
 170 static struct modldrv modldrv = {
 171         &mod_driverops, /* Type of module.  This one is a pseudo driver */
 172         "Console redirection driver",
 173         &cn_ops,    /* driver ops */
 174 };
 175 
 176 static struct modlinkage modlinkage = {
 177         MODREV_1,
 178         &modldrv,
 179         NULL
 180 };
 181 
 182 int
 183 _init(void)
 184 {
 185         return (mod_install(&modlinkage));
 186 }
 187 
 188 int
 189 _fini(void)
 190 {
 191         return (EBUSY);
 192 }
 193 
 194 int
 195 _info(struct modinfo *modinfop)
 196 {
 197         return (mod_info(&modlinkage, modinfop));
 198 }
 199 




 158 #include <sys/modctl.h>
 159 
 160 
 161 extern int nodev(), nulldev();
 162 extern int dseekneg_flag;
 163 extern struct mod_ops mod_driverops;
 164 extern struct dev_ops cn_ops;
 165 
 166 /*
 167  * Module linkage information for the kernel.
 168  */
 169 
 170 static struct modldrv modldrv = {
 171         &mod_driverops, /* Type of module.  This one is a pseudo driver */
 172         "Console redirection driver",
 173         &cn_ops,    /* driver ops */
 174 };
 175 
 176 static struct modlinkage modlinkage = {
 177         MODREV_1,
 178         { &modldrv, NULL }

 179 };
 180 
 181 int
 182 _init(void)
 183 {
 184         return (mod_install(&modlinkage));
 185 }
 186 
 187 int
 188 _fini(void)
 189 {
 190         return (EBUSY);
 191 }
 192 
 193 int
 194 _info(struct modinfo *modinfop)
 195 {
 196         return (mod_info(&modlinkage, modinfop));
 197 }
 198