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/fs/zut/zut.c
          +++ new/usr/src/uts/common/fs/zut/zut.c
↓ open down ↓ 192 lines elided ↑ open up ↑
 193  193          kmem_free(zr, sizeof (zut_readdir_t));
 194  194          if (rvalp)
 195  195                  *rvalp = error;
 196  196          return (error);
 197  197  }
 198  198  
 199  199  static int
 200  200  zut_stat64(vnode_t *vp, struct stat64 *sb, uint64_t *xvs, int flag, cred_t *cr)
 201  201  {
 202  202          xoptattr_t *xoap = NULL;
 203      -        xvattr_t xv = { 0 };
      203 +        xvattr_t xv = {{ 0 }};
 204  204          int error;
 205  205  
 206  206          xva_init(&xv);
 207  207  
 208  208          XVA_SET_REQ(&xv, XAT_ARCHIVE);
 209  209          XVA_SET_REQ(&xv, XAT_SYSTEM);
 210  210          XVA_SET_REQ(&xv, XAT_READONLY);
 211  211          XVA_SET_REQ(&xv, XAT_HIDDEN);
 212  212          XVA_SET_REQ(&xv, XAT_NOUNLINK);
 213  213          XVA_SET_REQ(&xv, XAT_IMMUTABLE);
↓ open down ↓ 297 lines elided ↑ open up ↑
 511  511          NULL            /* no bus operations */
 512  512  };
 513  513  
 514  514  static struct modldrv zut_modldrv = {
 515  515          &mod_driverops, "ZFS unit test " ZUT_VERSION_STRING,
 516  516              &zut_dev_ops
 517  517  };
 518  518  
 519  519  static struct modlinkage modlinkage = {
 520  520          MODREV_1,
 521      -        (void *)&zut_modldrv,
 522      -        NULL
      521 +        {   (void *)&zut_modldrv,
      522 +            NULL }
 523  523  };
 524  524  
 525  525  int
 526  526  _init(void)
 527  527  {
 528  528          int error;
 529  529  
 530  530          if ((error = mod_install(&modlinkage)) != 0) {
 531  531                  return (error);
 532  532          }
↓ open down ↓ 26 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX