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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/bfe/bfe.c
          +++ new/usr/src/uts/common/io/bfe/bfe.c
↓ open down ↓ 1069 lines elided ↑ open up ↑
1070 1070  }
1071 1071  
1072 1072  /*
1073 1073   * Common code to take care of setting RX side mode (filter).
1074 1074   */
1075 1075  static void
1076 1076  bfe_set_rx_mode(bfe_t *bfe)
1077 1077  {
1078 1078          uint32_t val;
1079 1079          int i;
1080      -        ether_addr_t mac[ETHERADDRL] = {0, 0, 0, 0, 0, 0};
     1080 +        ether_addr_t mac[ETHERADDRL] = {{0, 0, 0, 0, 0, 0}};
1081 1081  
1082 1082          /*
1083 1083           * We don't touch RX filter if we were asked to suspend. It's fine
1084 1084           * if chip is not active (no interface is plumbed on us).
1085 1085           */
1086 1086          if (bfe->bfe_chip_state == BFE_CHIP_SUSPENDED)
1087 1087                  return;
1088 1088  
1089 1089          val = INL(bfe, BFE_RXCONF);
1090 1090  
↓ open down ↓ 2019 lines elided ↑ open up ↑
3110 3110          bfe_quiesce     /* devo_quiesce */
3111 3111  };
3112 3112  
3113 3113  static struct modldrv bfe_modldrv = {
3114 3114          &mod_driverops,
3115 3115          bfe_ident,
3116 3116          &bfe_dev_ops
3117 3117  };
3118 3118  
3119 3119  static struct modlinkage modlinkage = {
3120      -        MODREV_1, (void *)&bfe_modldrv, NULL
     3120 +        MODREV_1, { (void *)&bfe_modldrv, NULL }
3121 3121  };
3122 3122  
3123 3123  int
3124 3124  _info(struct modinfo *modinfop)
3125 3125  {
3126 3126          return (mod_info(&modlinkage, modinfop));
3127 3127  }
3128 3128  
3129 3129  int
3130 3130  _init(void)
↓ open down ↓ 21 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX