Print this page
10686 Debug macros causes smatch issues

*** 20,29 **** --- 20,33 ---- */ /* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. */ + /* + * Copyright 2019, Joyent, Inc. + */ + #ifndef _SYS_PCIE_IMPL_H #define _SYS_PCIE_IMPL_H #ifdef __cplusplus extern "C" {
*** 489,503 **** ddi_get_instance(dip), bus_p->bus_bdf, name, off, org, \ PCIE_AER_GET(sz, bus_p, off)) #else /* DEBUG */ ! #define PCIE_DBG_CFG 0 && ! #define PCIE_DBG 0 && ! #define PCIE_ARI_DBG 0 && ! #define PCIE_DBG_CAP 0 && ! #define PCIE_DBG_AER 0 && #endif /* DEBUG */ /* PCIe Friendly Functions */ extern int pcie_init(dev_info_t *dip, caddr_t arg); --- 493,507 ---- ddi_get_instance(dip), bus_p->bus_bdf, name, off, org, \ PCIE_AER_GET(sz, bus_p, off)) #else /* DEBUG */ ! #define PCIE_DBG_CFG(...) ! #define PCIE_DBG(...) ! #define PCIE_ARI_DBG(...) ! #define PCIE_DBG_CAP(...) ! #define PCIE_DBG_AER(...) #endif /* DEBUG */ /* PCIe Friendly Functions */ extern int pcie_init(dev_info_t *dip, caddr_t arg);