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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/hme/hme.c
          +++ new/usr/src/uts/common/io/hme/hme.c
↓ open down ↓ 335 lines elided ↑ open up ↑
 336  336  /*
 337  337   * Module linkage information for the kernel.
 338  338   */
 339  339  static struct modldrv modldrv = {
 340  340          &mod_driverops, /* Type of module.  This one is a driver */
 341  341          "Sun HME 10/100 Mb Ethernet",
 342  342          &hme_dev_ops,   /* driver ops */
 343  343  };
 344  344  
 345  345  static struct modlinkage modlinkage = {
 346      -        MODREV_1, &modldrv, NULL
      346 +        MODREV_1, { &modldrv, NULL }
 347  347  };
 348  348  
 349  349  /* <<<<<<<<<<<<<<<<<<<<<<  Register operations >>>>>>>>>>>>>>>>>>>>> */
 350  350  
 351  351  #define GET_MIFREG(reg) \
 352  352          ddi_get32(hmep->hme_mifregh, (uint32_t *)&hmep->hme_mifregp->reg)
 353  353  #define PUT_MIFREG(reg, value) \
 354  354          ddi_put32(hmep->hme_mifregh, (uint32_t *)&hmep->hme_mifregp->reg, value)
 355  355  
 356  356  #define GET_ETXREG(reg) \
↓ open down ↓ 337 lines elided ↑ open up ↑
 694  694  #define HMESYNCTMD(num, who)                            \
 695  695          (void) ddi_dma_sync(hmep->hme_tmd_dmah,         \
 696  696              (num * sizeof (struct hme_tmd)),            \
 697  697              sizeof (struct hme_tmd),                    \
 698  698              who)
 699  699  
 700  700  /*
 701  701   * Ethernet broadcast address definition.
 702  702   */
 703  703  static  struct ether_addr       etherbroadcastaddr = {
 704      -        0xff, 0xff, 0xff, 0xff, 0xff, 0xff
      704 +        { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }
 705  705  };
 706  706  
 707  707  /*
 708  708   * MIB II broadcast/multicast packets
 709  709   */
 710  710  #define IS_BROADCAST(pkt) (bcmp(pkt, &etherbroadcastaddr, ETHERADDRL) == 0)
 711  711  #define IS_MULTICAST(pkt) ((pkt[0] & 01) == 1)
 712  712  #define BUMP_InNUcast(hmep, pkt) \
 713  713          if (IS_MULTICAST(pkt)) {                               \
 714  714                  if (IS_BROADCAST(pkt)) {                       \
↓ open down ↓ 2925 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX