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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/portfs/port_vnops.c
          +++ new/usr/src/uts/common/fs/portfs/port_vnops.c
↓ open down ↓ 42 lines elided ↑ open up ↑
  43   43          caller_context_t *);
  44   44  static int port_getattr(struct vnode *, struct vattr *, int, cred_t *,
  45   45          caller_context_t *);
  46   46  static int port_access(struct vnode *, int, int, cred_t *, caller_context_t *);
  47   47  static int port_realvp(vnode_t *, vnode_t **, caller_context_t *);
  48   48  static int port_poll(vnode_t *, short, int, short *, struct pollhead **,
  49   49          caller_context_t *);
  50   50  static void port_inactive(struct vnode *, cred_t *, caller_context_t *);
  51   51  
  52   52  const fs_operation_def_t port_vnodeops_template[] = {
  53      -        VOPNAME_OPEN,           { .vop_open = port_open },
  54      -        VOPNAME_CLOSE,          { .vop_close = port_close },
  55      -        VOPNAME_GETATTR,        { .vop_getattr = port_getattr },
  56      -        VOPNAME_ACCESS,         { .vop_access = port_access },
  57      -        VOPNAME_INACTIVE,       { .vop_inactive = port_inactive },
  58      -        VOPNAME_FRLOCK,         { .error = fs_error },
  59      -        VOPNAME_REALVP,         { .vop_realvp = port_realvp },
  60      -        VOPNAME_POLL,           { .vop_poll = port_poll },
  61      -        VOPNAME_PATHCONF,       { .error = fs_error },
  62      -        VOPNAME_DISPOSE,        { .error = fs_error },
  63      -        VOPNAME_GETSECATTR,     { .error = fs_error },
  64      -        VOPNAME_SHRLOCK,        { .error = fs_error },
  65      -        NULL,                   NULL
       53 +        { VOPNAME_OPEN,         { .vop_open = port_open } },
       54 +        { VOPNAME_CLOSE,        { .vop_close = port_close } },
       55 +        { VOPNAME_GETATTR,      { .vop_getattr = port_getattr } },
       56 +        { VOPNAME_ACCESS,       { .vop_access = port_access } },
       57 +        { VOPNAME_INACTIVE,     { .vop_inactive = port_inactive } },
       58 +        { VOPNAME_FRLOCK,       { .error = fs_error } },
       59 +        { VOPNAME_REALVP,       { .vop_realvp = port_realvp } },
       60 +        { VOPNAME_POLL,         { .vop_poll = port_poll } },
       61 +        { VOPNAME_PATHCONF,     { .error = fs_error } },
       62 +        { VOPNAME_DISPOSE,      { .error = fs_error } },
       63 +        { VOPNAME_GETSECATTR,   { .error = fs_error } },
       64 +        { VOPNAME_SHRLOCK,      { .error = fs_error } },
       65 +        { NULL,                 { NULL } }
  66   66  };
  67   67  
  68   68  /* ARGSUSED */
  69   69  static int
  70   70  port_open(struct vnode **vpp, int flag, cred_t *cr, caller_context_t *ct)
  71   71  {
  72   72          return (0);
  73   73  }
  74   74  
  75   75  /*
↓ open down ↓ 301 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX