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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/kb8042/kb8042.c
          +++ new/usr/src/uts/common/io/kb8042/kb8042.c
↓ open down ↓ 168 lines elided ↑ open up ↑
 169  169          NULL, NULL, kb8042_open, kb8042_close, NULL, &kb8042_sinfo, NULL
 170  170  };
 171  171  
 172  172  static struct qinit kb8042_winit = {
 173  173          putq, kb8042_wsrv, kb8042_open, kb8042_close, NULL, &kb8042_sinfo, NULL
 174  174  };
 175  175  
 176  176  struct streamtab
 177  177          kb8042_str_info = { &kb8042_rinit, &kb8042_winit, NULL, NULL };
 178  178  
 179      -struct kb8042   Kdws = {0};
      179 +struct kb8042   Kdws = {{{NULL}}};
 180  180  static dev_info_t *kb8042_dip = NULL;
 181  181  
 182  182  static int kb8042_getinfo(dev_info_t *dip, ddi_info_cmd_t infocmd, void *arg,
 183  183                  void **result);
 184  184  static int kb8042_attach(dev_info_t *, ddi_attach_cmd_t);
 185  185  static int kb8042_detach(dev_info_t *, ddi_detach_cmd_t);
 186  186  
 187  187  static  struct cb_ops cb_kb8042_ops = {
 188  188          nulldev,                /* cb_open */
 189  189          nulldev,                /* cb_close */
↓ open down ↓ 37 lines elided ↑ open up ↑
 227  227   * Module linkage information for the kernel.
 228  228   */
 229  229  static struct modldrv modldrv = {
 230  230          &mod_driverops, /* Type of module.  This one is a driver */
 231  231          "PS/2 keyboard driver",
 232  232          &kb8042_ops,    /* driver ops */
 233  233  };
 234  234  
 235  235  static struct modlinkage modlinkage = {
 236  236          MODREV_1,
 237      -        (void *) &modldrv,
 238      -        NULL
      237 +        { (void *) &modldrv, NULL }
 239  238  };
 240  239  
 241  240  int
 242  241  _init(void)
 243  242  {
 244  243          int     rv;
 245  244  
 246  245          rv = mod_install(&modlinkage);
 247  246          return (rv);
 248  247  }
↓ open down ↓ 1295 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX