Print this page
10686 Debug macros causes smatch issues

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/ib/clients/eoib/eib_impl.h
          +++ new/usr/src/uts/common/sys/ib/clients/eoib/eib_impl.h
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   */
  25   25  
       26 +/*
       27 + * Copyright 2019, Joyent, Inc.
       28 + */
       29 +
  26   30  #ifndef _SYS_IB_EOIB_EIB_IMPL_H
  27   31  #define _SYS_IB_EOIB_EIB_IMPL_H
  28   32  
  29   33  #ifdef __cplusplus
  30   34  extern "C" {
  31   35  #endif
  32   36  
  33   37  #include <sys/ddi.h>
  34   38  #include <sys/mac.h>
  35   39  #include <sys/sunddi.h>
↓ open down ↓ 45 lines elided ↑ open up ↑
  81   85  
  82   86  #define EIB_DPRINTF_CRIT        eib_dprintf_crit
  83   87  #define EIB_DPRINTF_ERR         eib_dprintf_err
  84   88  #define EIB_DPRINTF_WARN        eib_dprintf_warn
  85   89  #ifdef EIB_DEBUG
  86   90  #define EIB_DPRINTF_DEBUG       eib_dprintf_debug
  87   91  #define EIB_DPRINTF_ARGS        eib_dprintf_args
  88   92  #define EIB_DPRINTF_PKT         eib_dprintf_pkt
  89   93  #define EIB_DPRINTF_VERBOSE     eib_dprintf_verbose
  90   94  #else
  91      -#define EIB_DPRINTF_DEBUG       0 &&
  92      -#define EIB_DPRINTF_ARGS        0 &&
  93      -#define EIB_DPRINTF_PKT         0 &&
  94      -#define EIB_DPRINTF_VERBOSE     0 &&
       95 +#define EIB_DPRINTF_DEBUG(...)
       96 +#define EIB_DPRINTF_ARGS(...)
       97 +#define EIB_DPRINTF_PKT(...)
       98 +#define EIB_DPRINTF_VERBOSE(...)
  95   99  #endif
  96  100  
  97  101  /*
  98  102   *  EoIB threads to provide various services
  99  103   */
 100  104  #define EIB_EVENTS_HDLR         "eib_events_handler"
 101  105  #define EIB_RWQES_REFILLER      "eib_rwqes_refiller"
 102  106  #define EIB_VNIC_CREATOR        "eib_vnic_creator"
 103  107  #define EIB_TXWQES_MONITOR      "eib_txwqe_monitor"
 104  108  #define EIB_LSOBUFS_MONITOR     "eib_lsobufs_monitor"
↓ open down ↓ 887 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX