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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/bscbus.c
          +++ new/usr/src/uts/common/io/bscbus.c
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  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 + * Copyright 2019 Joyent, Inc.
       26 + *
  25   27   * The "bscbus" driver provides access to the LOMlite2 virtual registers,
  26   28   * so that its clients (children) need not be concerned with the details
  27   29   * of the access mechanism, which in this case is implemented via a
  28   30   * packet-based protocol over a Xbus (similar to ebus) parallel link to the
  29   31   * H8 host interface registers.
  30   32   *
  31   33   * On the other hand, this driver doesn't generally know what the virtual
  32   34   * registers signify - only the clients need this information.
  33   35   */
  34   36  
↓ open down ↓ 362 lines elided ↑ open up ↑
 397  399                  va_start(va, fmt);
 398  400                  (void) vsnprintf(p, sizeof (buf) - (p - buf), fmt, va);
 399  401                  va_end(va);
 400  402  
 401  403                  buf[sizeof (buf) - 1] = '\0';
 402  404                  (void) strlog(csp->ssp->majornum, csp->ssp->instance,
 403  405                      code, SL_TRACE, buf);
 404  406          }
 405  407  }
 406  408  #else /* DEBUG */
 407      -#define bscbus_trace
      409 +#define bscbus_trace(...) (void)(0)
 408  410  #endif /* DEBUG */
 409  411  
 410  412  static struct bscbus_state *
 411  413  bscbus_getstate(dev_info_t *dip, int instance, const char *caller)
 412  414  {
 413  415          struct bscbus_state *ssp = NULL;
 414  416          dev_info_t *sdip = NULL;
 415  417          major_t dmaj = NOMAJOR;
 416  418  
 417  419          if (dip != NULL) {
↓ open down ↓ 2218 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX