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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/scsi/targets/st.c
          +++ new/usr/src/uts/common/io/scsi/targets/st.c
↓ open down ↓ 687 lines elided ↑ open up ↑
 688  688   * autoconfiguration routines.
 689  689   */
 690  690  
 691  691  static struct modldrv modldrv = {
 692  692          &mod_driverops,         /* Type of module. This one is a driver */
 693  693          "SCSI tape Driver",     /* Name of the module. */
 694  694          &st_ops                 /* driver ops */
 695  695  };
 696  696  
 697  697  static struct modlinkage modlinkage = {
 698      -        MODREV_1, &modldrv, NULL
      698 +        MODREV_1, { &modldrv, NULL }
 699  699  };
 700  700  
 701  701  /*
 702  702   * Notes on Post Reset Behavior in the tape driver:
 703  703   *
 704  704   * When the tape drive is opened, the driver  attempts  to make sure that
 705  705   * the tape head is positioned exactly where it was left when it was last
 706  706   * closed  provided  the  medium  is not  changed.  If the tape  drive is
 707  707   * opened in O_NDELAY mode, the repositioning  (if necessary for any loss
 708  708   * of position due to reset) will happen when the first tape operation or
↓ open down ↓ 1248 lines elided ↑ open up ↑
1957 1957  
1958 1958  typedef struct {
1959 1959          int mask;
1960 1960          int bottom;
1961 1961          int top;
1962 1962          char *name;
1963 1963  } conf_limit;
1964 1964  
1965 1965  static const conf_limit conf_limits[] = {
1966 1966  
1967      -        -1,             1,              2,              "conf version",
1968      -        -1,             MT_ISTS,        ST_LAST_TYPE,   "drive type",
1969      -        -1,             0,              0xffffff,       "block size",
1970      -        ST_VALID_OPTS,  0,              ST_VALID_OPTS,  "options",
1971      -        -1,             0,              4,              "number of densities",
1972      -        -1,             0,              UINT8_MAX,      "density code",
1973      -        -1,             0,              3,              "default density",
1974      -        -1,             0,              UINT16_MAX,     "non motion timeout",
1975      -        -1,             0,              UINT16_MAX,     "I/O timeout",
1976      -        -1,             0,              UINT16_MAX,     "space timeout",
1977      -        -1,             0,              UINT16_MAX,     "load timeout",
1978      -        -1,             0,              UINT16_MAX,     "unload timeout",
1979      -        -1,             0,              UINT16_MAX,     "erase timeout",
1980      -        0,              0,              0,              NULL
     1967 +        { -1,           1,              2,              "conf version" },
     1968 +        { -1,           MT_ISTS,        ST_LAST_TYPE,   "drive type" },
     1969 +        { -1,           0,              0xffffff,       "block size" },
     1970 +        { ST_VALID_OPTS, 0,             ST_VALID_OPTS,  "options" },
     1971 +        { -1,           0,              4,              "number of densities" },
     1972 +        { -1,           0,              UINT8_MAX,      "density code" },
     1973 +        { -1,           0,              3,              "default density" },
     1974 +        { -1,           0,              UINT16_MAX,     "non motion timeout" },
     1975 +        { -1,           0,              UINT16_MAX,     "I/O timeout" },
     1976 +        { -1,           0,              UINT16_MAX,     "space timeout" },
     1977 +        { -1,           0,              UINT16_MAX,     "load timeout" },
     1978 +        { -1,           0,              UINT16_MAX,     "unload timeout" },
     1979 +        { -1,           0,              UINT16_MAX,     "erase timeout" },
     1980 +        { 0,            0,              0,              NULL }
1981 1981  };
1982 1982  
1983 1983  static int
1984 1984  st_validate_conf_data(struct scsi_tape *un, int *list, int list_len,
1985 1985      const char *conf_name)
1986 1986  {
1987 1987          int dens;
1988 1988          int ndens;
1989 1989          int value;
1990 1990          int type;
↓ open down ↓ 16602 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX