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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
          +++ new/usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
↓ open down ↓ 152 lines elided ↑ open up ↑
 153  153   * operation, and if the device is listed here, then it is a nontransparent
 154  154   * bridge, hence load the driver and avail the config map services from
 155  155   * the driver. Class and Subclass should be as defined in the PCI specs
 156  156   * ie. class is 0x6, and subclass is 0x9.
 157  157   */
 158  158  static struct {
 159  159          uint8_t         mem_range_bar_offset;
 160  160          uint8_t         io_range_bar_offset;
 161  161          uint8_t         prefetch_mem_range_bar_offset;
 162  162  } pcicfg_indirect_map_devs[] = {
 163      -        PCI_CONF_BASE3, PCI_CONF_BASE2, PCI_CONF_BASE3,
 164      -        0,      0,      0,
      163 +        { PCI_CONF_BASE3, PCI_CONF_BASE2, PCI_CONF_BASE3 },
      164 +        { 0,    0,      0 },
 165  165  };
 166  166  
 167  167  #define PCICFG_MAKE_REG_HIGH(busnum, devnum, funcnum, register)\
 168  168          (\
 169  169          ((ulong_t)(busnum & 0xff) << 16)    |\
 170  170          ((ulong_t)(devnum & 0x1f) << 11)    |\
 171  171          ((ulong_t)(funcnum & 0x7) <<  8)    |\
 172  172          ((ulong_t)(register & 0x3f)))
 173  173  
 174  174  /*
↓ open down ↓ 200 lines elided ↑ open up ↑
 375  375   */
 376  376  
 377  377  extern struct mod_ops mod_miscops;
 378  378  
 379  379  static struct modlmisc modlmisc = {
 380  380          &mod_miscops, /* Type of module */
 381  381          "PCI configurator"
 382  382  };
 383  383  
 384  384  static struct modlinkage modlinkage = {
 385      -        MODREV_1, (void *)&modlmisc, NULL
      385 +        MODREV_1, { (void *)&modlmisc, NULL }
 386  386  };
 387  387  
 388  388  
 389  389  #ifdef DEBUG
 390  390  
 391  391  static void
 392  392  pcicfg_dump_common_config(ddi_acc_handle_t config_handle)
 393  393  {
 394  394          if ((pcicfg_debug & 1) == 0)
 395  395                  return;
↓ open down ↓ 4828 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX