Print this page
fixup .text where possible
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/avs/ncall/ncall.c
          +++ new/usr/src/uts/common/avs/ncall/ncall.c
↓ open down ↓ 105 lines elided ↑ open up ↑
 106  106  extern struct mod_ops mod_driverops;
 107  107  
 108  108  static struct modldrv modldrv = {
 109  109          &mod_driverops,
 110  110          "nws:Kernel Call:" ISS_VERSION_STR,
 111  111          &ncall_ops
 112  112  };
 113  113  
 114  114  static struct modlinkage modlinkage = {
 115  115          MODREV_1,
 116      -        &modldrv,
 117      -        0
      116 +        { &modldrv, NULL }
 118  117  };
 119  118  
 120  119  typedef struct ncall_modinfo_s {
 121  120          struct ncall_modinfo_s  *next;
 122  121          ncall_module_t          *module;
 123  122  } ncall_modinfo_t;
 124  123  
 125  124  static dev_info_t *ncall_dip;           /* Single DIP for driver */
 126  125  static kmutex_t ncall_mutex;
 127  126  
↓ open down ↓ 206 lines elided ↑ open up ↑
 334  333          mutex_exit(&ncall_mutex);
 335  334  
 336  335          return (rc);
 337  336  }
 338  337  
 339  338  
 340  339  /* ARGSUSED */
 341  340  static int ncallioctl(dev_t dev, int cmd, intptr_t arg, int mode,
 342  341      cred_t *crp, int *rvalp)
 343  342  {
 344      -        ncall_node_t node = { 0, };
      343 +        ncall_node_t node = { .nc_nodeid = 0 };
 345  344          int mirror;
 346  345          int rc = 0;
 347  346  
 348  347          *rvalp = 0;
 349  348  
 350  349          if ((rc = drv_priv(crp)) != 0)
 351  350                  return (rc);
 352  351  
 353  352          switch (cmd) {
 354  353  
↓ open down ↓ 414 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX