Print this page
style updates to uts/intel/io
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/io/intel_nb5000/nb5000_init.c
          +++ new/usr/src/uts/intel/io/intel_nb5000/nb5000_init.c
↓ open down ↓ 159 lines elided ↑ open up ↑
 160  160  static void x8450_dimm_label(int, char *, int);
 161  161  static void cp3250_dimm_label(int, char *, int);
 162  162  
 163  163  static struct platform_label {
 164  164          const char *sys_vendor;         /* SMB_TYPE_SYSTEM vendor prefix */
 165  165          const char *sys_product;        /* SMB_TYPE_SYSTEM product prefix */
 166  166          find_dimm_label_t dimm_label;
 167  167          int dimms_per_channel;
 168  168  } platform_label[] = {
 169  169          { "SUN MICROSYSTEMS", "SUN BLADE X8450 SERVER MODULE",
 170      -            x8450_dimm_label, 8 },
 171      -        { "MiTAC,Shunde", "CP3250", cp3250_dimm_label, 0 },
 172      -        { NULL, NULL, NULL, 0 }
      170 +            { x8450_dimm_label }, 8 },
      171 +        { "MiTAC,Shunde", "CP3250", { cp3250_dimm_label }, 0 },
      172 +        { NULL, NULL, { NULL }, 0 }
 173  173  };
 174  174  
 175  175  static unsigned short
 176  176  read_spd(int bus)
 177  177  {
 178  178          unsigned short rt = 0;
 179  179          int branch = bus >> 1;
 180  180          int channel = bus & 1;
 181  181  
 182  182          rt = SPD_RD(branch, channel);
↓ open down ↓ 1436 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX