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.c
          +++ new/usr/src/uts/common/fs/portfs/port.c
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  28      -
  29   27  #include <sys/types.h>
  30   28  #include <sys/systm.h>
  31   29  #include <sys/cred.h>
  32   30  #include <sys/modctl.h>
  33   31  #include <sys/vfs.h>
  34   32  #include <sys/vfs_opreg.h>
  35   33  #include <sys/sysmacros.h>
  36   34  #include <sys/cmn_err.h>
  37   35  #include <sys/stat.h>
  38   36  #include <sys/errno.h>
↓ open down ↓ 368 lines elided ↑ open up ↑
 407  405  
 408  406  static struct modlsys modlsys32 = {
 409  407          &mod_syscallops32,
 410  408          "32-bit event ports syscalls",
 411  409          &port_sysent32
 412  410  };
 413  411  #endif  /* _SYSCALL32_IMPL */
 414  412  
 415  413  static struct modlinkage modlinkage = {
 416  414          MODREV_1,
 417      -        &modlsys,
      415 +        {   &modlsys,
 418  416  #ifdef _SYSCALL32_IMPL
 419      -        &modlsys32,
      417 +            &modlsys32,
 420  418  #endif
 421      -        NULL
      419 +            NULL
      420 +        }
 422  421  };
 423  422  
 424  423  port_kstat_t port_kstat = {
 425  424          { "ports",      KSTAT_DATA_UINT32 }
 426  425  };
 427  426  
 428  427  dev_t   portdev;
 429  428  struct  vnodeops *port_vnodeops;
 430  429  struct  vfs port_vfs;
 431  430  
↓ open down ↓ 34 lines elided ↑ open up ↑
 466  465  static void port_kstat_init(void);
 467  466  
 468  467  #ifdef  _SYSCALL32_IMPL
 469  468  static int port_copy_event32(port_event32_t *, port_kevent_t *, list_t *);
 470  469  #endif
 471  470  
 472  471  int
 473  472  _init(void)
 474  473  {
 475  474          static const fs_operation_def_t port_vfsops_template[] = {
 476      -                NULL, NULL
      475 +                { NULL, { NULL } }
 477  476          };
 478  477          extern const    fs_operation_def_t port_vnodeops_template[];
 479  478          vfsops_t        *port_vfsops;
 480  479          int             error;
 481  480          major_t         major;
 482  481  
 483  482          if ((major = getudev()) == (major_t)-1)
 484  483                  return (ENXIO);
 485  484          portdev = makedevice(major, 0);
 486  485  
↓ open down ↓ 1391 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX