Print this page
10886 smatch debug macro cleanup in usr/src/uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/rwd/rt2661.c
          +++ new/usr/src/uts/common/io/rwd/rt2661.c
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  19   19   * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  20   20   * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  21   21   */
  22   22  
  23   23  /*
  24   24   * Ralink Technology RT2561, RT2561S and RT2661  chipset driver
  25   25   * http://www.ralinktech.com/
  26   26   */
  27   27  
       28 +/*
       29 + * Copyright 2019 Joyent, Inc.
       30 + */
       31 +
  28   32  #include <sys/types.h>
  29   33  #include <sys/byteorder.h>
  30   34  #include <sys/conf.h>
  31   35  #include <sys/cmn_err.h>
  32   36  #include <sys/stat.h>
  33   37  #include <sys/ddi.h>
  34   38  #include <sys/sunddi.h>
  35   39  #include <sys/strsubr.h>
  36   40  #include <sys/ethernet.h>
  37   41  #include <inet/common.h>
↓ open down ↓ 32 lines elided ↑ open up ↑
  70   74  #define RT2661_DBG_RADIO        (1 << 9)
  71   75  #define RT2661_DBG_RESUME       (1 << 10)
  72   76  #define RT2661_DBG_MSG          (1 << 11)
  73   77  
  74   78  uint32_t rt2661_dbg_flags = 0;
  75   79  
  76   80  #ifdef DEBUG
  77   81  #define RWD_DEBUG \
  78   82          rt2661_debug
  79   83  #else
  80      -#define RWD_DEBUG
       84 +#define RWD_DEBUG(...) (void)(0)
  81   85  #endif
  82   86  
  83   87  static void *rt2661_soft_state_p = NULL;
  84   88  
  85   89  static const uint8_t *ucode = NULL;
  86   90  int usize;
  87   91  
  88   92  static const struct {
  89   93          uint32_t        reg;
  90   94          uint32_t        val;
↓ open down ↓ 3200 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX