Print this page
cstyle sort of updates
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/physmem.c
          +++ new/usr/src/uts/common/io/physmem.c
↓ open down ↓ 100 lines elided ↑ open up ↑
 101  101      caddr_t addr, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags,
 102  102      struct cred *cred, caller_context_t *ct);
 103  103  
 104  104  static int physmem_delmap(struct vnode *vp, offset_t off, struct as *as,
 105  105      caddr_t addr, size_t len, uint_t prot, uint_t maxprot, uint_t flags,
 106  106      struct cred *cred, caller_context_t *ct);
 107  107  
 108  108  static void physmem_inactive(vnode_t *vp, cred_t *crp, caller_context_t *ct);
 109  109  
 110  110  const fs_operation_def_t physmem_vnodeops_template[] = {
 111      -        VOPNAME_GETPAGE,        { .vop_getpage = physmem_getpage },
 112      -        VOPNAME_ADDMAP,         { .vop_addmap = physmem_addmap },
 113      -        VOPNAME_DELMAP,         { .vop_delmap = physmem_delmap },
 114      -        VOPNAME_INACTIVE,       { .vop_inactive = physmem_inactive },
 115      -        NULL,                   NULL
      111 +        { VOPNAME_GETPAGE,      { .vop_getpage = physmem_getpage } },
      112 +        { VOPNAME_ADDMAP,       { .vop_addmap = physmem_addmap } },
      113 +        { VOPNAME_DELMAP,       { .vop_delmap = physmem_delmap } },
      114 +        { VOPNAME_INACTIVE,     { .vop_inactive = physmem_inactive } },
      115 +        { NULL,                 { NULL } }
 116  116  };
 117  117  
 118  118  vnodeops_t *physmem_vnodeops = NULL;
 119  119  
 120  120  /*
 121  121   * Removes the current process from the hash if the process has no more
 122  122   * physmem segments active.
 123  123   */
 124  124  void
 125  125  physmem_remove_hash_proc()
↓ open down ↓ 827 lines elided ↑ open up ↑
 953  953  };
 954  954  
 955  955  static struct modldrv modldrv = {
 956  956          &mod_driverops,
 957  957          "physmem driver",
 958  958          &physmem_ops
 959  959  };
 960  960  
 961  961  static struct modlinkage modlinkage = {
 962  962          MODREV_1,
 963      -        &modldrv,
 964      -        NULL
      963 +        { &modldrv, NULL }
 965  964  };
 966  965  
 967  966  int
 968  967  _init(void)
 969  968  {
 970  969          return (mod_install(&modlinkage));
 971  970  }
 972  971  
 973  972  int
 974  973  _info(struct modinfo *modinfop)
 975  974  {
 976  975          return (mod_info(&modlinkage, modinfop));
 977  976  }
 978  977  
 979  978  int
 980  979  _fini(void)
 981  980  {
 982  981          return (mod_remove(&modlinkage));
 983  982  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX