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


 104 
 105 
 106 extern int nodev(void);
 107 extern int nulldev(void);
 108 extern int dseekneg_flag;
 109 extern struct mod_ops mod_driverops;
 110 extern struct dev_ops sy_ops;
 111 
 112 /*
 113  * Module linkage information for the kernel.
 114  */
 115 
 116 static struct modldrv modldrv = {
 117         &mod_driverops, /* Type of module.  This one is a pseudo driver */
 118         "Indirect driver for tty 'sy'",
 119         &sy_ops,    /* driver ops */
 120 };
 121 
 122 static struct modlinkage modlinkage = {
 123         MODREV_1,
 124         &modldrv,
 125         NULL
 126 };
 127 
 128 
 129 int
 130 _init(void)
 131 {
 132         return (mod_install(&modlinkage));
 133 }
 134 
 135 
 136 int
 137 _fini(void)
 138 {
 139         return (mod_remove(&modlinkage));
 140 }
 141 
 142 int
 143 _info(struct modinfo *modinfop)
 144 {
 145         return (mod_info(&modlinkage, modinfop));




 104 
 105 
 106 extern int nodev(void);
 107 extern int nulldev(void);
 108 extern int dseekneg_flag;
 109 extern struct mod_ops mod_driverops;
 110 extern struct dev_ops sy_ops;
 111 
 112 /*
 113  * Module linkage information for the kernel.
 114  */
 115 
 116 static struct modldrv modldrv = {
 117         &mod_driverops, /* Type of module.  This one is a pseudo driver */
 118         "Indirect driver for tty 'sy'",
 119         &sy_ops,    /* driver ops */
 120 };
 121 
 122 static struct modlinkage modlinkage = {
 123         MODREV_1,
 124         { &modldrv, NULL }

 125 };
 126 
 127 
 128 int
 129 _init(void)
 130 {
 131         return (mod_install(&modlinkage));
 132 }
 133 
 134 
 135 int
 136 _fini(void)
 137 {
 138         return (mod_remove(&modlinkage));
 139 }
 140 
 141 int
 142 _info(struct modinfo *modinfop)
 143 {
 144         return (mod_info(&modlinkage, modinfop));