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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/mwl/mwl.c
          +++ new/usr/src/uts/common/io/mwl/mwl.c
↓ open down ↓ 26 lines elided ↑ open up ↑
  27   27   * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
  28   28   * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  29   29   * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  30   30   * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
  31   31   * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  32   32   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  33   33   * THE POSSIBILITY OF SUCH DAMAGES.
  34   34   */
  35   35  
  36   36  /*
       37 + * Copyright 2019 Joyent, Inc.
       38 + */
       39 +
       40 +/*
  37   41   * Driver for the Marvell 88W8363 Wireless LAN controller.
  38   42   */
  39   43  #include <sys/stat.h>
  40   44  #include <sys/dlpi.h>
  41   45  #include <inet/common.h>
  42   46  #include <inet/mi.h>
  43   47  #include <sys/stream.h>
  44   48  #include <sys/errno.h>
  45   49  #include <sys/stropts.h>
  46   50  #include <sys/stat.h>
↓ open down ↓ 74 lines elided ↑ open up ↑
 121  125  #define MWL_DBG_CRYPTO          (1 << 8)
 122  126  #define MWL_DBG_SR              (1 << 9)
 123  127  #define MWL_DBG_MSG             (1 << 10)
 124  128  
 125  129  uint32_t mwl_dbg_flags = 0x0;
 126  130  
 127  131  #ifdef DEBUG
 128  132  #define MWL_DBG \
 129  133          mwl_debug
 130  134  #else
 131      -#define MWL_DBG
      135 +#define MWL_DBG(...) (void)(0)
 132  136  #endif
 133  137  
 134  138  /*
 135  139   * PIO access attributes for registers
 136  140   */
 137  141  static ddi_device_acc_attr_t mwl_reg_accattr = {
 138  142          DDI_DEVICE_ATTR_V0,
 139  143          DDI_STRUCTURE_LE_ACC,
 140  144          DDI_STRICTORDER_ACC,
 141  145          DDI_DEFAULT_ACC
↓ open down ↓ 4226 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX