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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/bscv.c
          +++ new/usr/src/uts/common/io/bscv.c
↓ 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   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
       26 +/*
       27 + * Copyright 2019 Joyent, Inc.
       28 + */
  26   29  
  27   30  /*
  28   31   * bscv.c - multi-threaded lom driver for the Stiletto platform.
  29   32   */
  30   33  
  31   34  /*
  32   35   * Included files.
  33   36   */
  34   37  
  35   38  #include <sys/note.h>
↓ open down ↓ 361 lines elided ↑ open up ↑
 397  400          &modldrv,
 398  401          NULL
 399  402  };
 400  403  
 401  404  #ifdef DEBUG
 402  405  /* Tracing is enabled if value is non-zero. */
 403  406  static int bscv_trace_flag = 1;
 404  407  
 405  408  #define BSCV_TRACE   if (bscv_trace_flag != 0)  bscv_trace
 406  409  #else
 407      -#define BSCV_TRACE
      410 +#define BSCV_TRACE(...) (void)(0)
 408  411  #endif
 409  412  
 410  413  /*
 411  414   * kernel accessible routines. These routines are necessarily global so the
 412  415   * driver can be loaded, and unloaded successfully
 413  416   */
 414  417  
 415  418  /*
 416  419   * function     - _init
 417  420   * description  - initializes the driver state structure and installs the
↓ open down ↓ 6000 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX