Print this page
cstyle sort of updates
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/io/mc-amd/mcamd_drv.c
          +++ new/usr/src/uts/intel/io/mc-amd/mcamd_drv.c
↓ open down ↓ 1002 lines elided ↑ open up ↑
1003 1003   */
1004 1004  
1005 1005  static const mc_bind_map_t mc_bind_map[] = {
1006 1006          { MC_FUNC_HTCONFIG_BINDNM, MC_FUNC_HTCONFIG,
1007 1007              "AMD Memory Controller (HT Configuration)", mc_mkprops_htcfg },
1008 1008          { MC_FUNC_ADDRMAP_BINDNM, MC_FUNC_ADDRMAP,
1009 1009              "AMD Memory Controller (Address Map)", mc_mkprops_addrmap },
1010 1010          { MC_FUNC_DRAMCTL_BINDNM, MC_FUNC_DRAMCTL,
1011 1011              "AMD Memory Controller (DRAM Controller & HT Trace)",
1012 1012              mc_mkprops_dramctl },
1013      -        NULL
     1013 +        { NULL }
1014 1014  };
1015 1015  
1016 1016  /*ARGSUSED*/
1017 1017  static int
1018 1018  mc_open(dev_t *devp, int flag, int otyp, cred_t *credp)
1019 1019  {
1020 1020          if (otyp != OTYP_CHR)
1021 1021                  return (EINVAL);
1022 1022  
1023 1023          rw_enter(&mc_lock, RW_READER);
↓ open down ↓ 735 lines elided ↑ open up ↑
1759 1759  };
1760 1760  
1761 1761  static struct modldrv modldrv = {
1762 1762          &mod_driverops,
1763 1763          "Memory Controller for AMD processors",
1764 1764          &mc_ops
1765 1765  };
1766 1766  
1767 1767  static struct modlinkage modlinkage = {
1768 1768          MODREV_1,
1769      -        (void *)&modldrv,
1770      -        NULL
     1769 +        { (void *)&modldrv, NULL }
1771 1770  };
1772 1771  
1773 1772  int
1774 1773  _init(void)
1775 1774  {
1776 1775          /*
1777 1776           * Refuse to load if there is no PCI config space support.
1778 1777           */
1779 1778          if (pci_getl_func == NULL)
1780 1779                  return (ENOTSUP);
↓ open down ↓ 22 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX