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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4tx.c
          +++ new/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4tx.c
↓ open down ↓ 2 lines elided ↑ open up ↑
   3    3  #include "bd_chain.h"
   4    4  #include "command.h"
   5    5  #include "context.h"
   6    6  #include "lm_l4fp.h"
   7    7  #include "lm_l4sp.h"
   8    8  #include "mm_l4if.h"
   9    9  
  10   10  
  11   11  /* TODO: remove this temporary solution for solaris / linux compilation conflict, linux needs the
  12   12   * first option, solaris the latter */
  13      -#if defined(__LINUX)
       13 +#if defined(__LINUX) || defined(__LITTLE_ENDIAN)
  14   14  #define TOE_TX_INIT_ZERO {{0}}
  15   15  #else
  16   16  #define TOE_TX_INIT_ZERO {0}
  17   17  #endif
  18   18  
  19   19  #define TOE_TX_DOORBELL(pdev,cid) do{\
  20   20      struct doorbell db = TOE_TX_INIT_ZERO;\
  21   21      db.header.data |= (TOE_CONNECTION_TYPE << DOORBELL_HDR_T_CONN_TYPE_SHIFT);\
  22   22      DOORBELL((pdev), (cid), *((u32_t *)&db));\
  23   23      } while(0)
↓ open down ↓ 634 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX