summaryrefslogtreecommitdiff
path: root/usr/src/common
diff options
context:
space:
mode:
authorAndy Fiddaman <omnios@citrus-it.co.uk>2022-01-21 11:59:20 +0000
committerAndy Fiddaman <omnios@citrus-it.co.uk>2022-06-20 14:42:42 +0000
commitae5a8bed14db6c16225cac733ea042c27e242d18 (patch)
tree6cb338e500e944f951e8ba0fab16598f6ecdc8cb /usr/src/common
parenta196c3ffe35a9a1589267b660ce6c2ff2ccab5e9 (diff)
downloadillumos-gate-ae5a8bed14db6c16225cac733ea042c27e242d18.tar.gz
14422 gcc10 build does not remove unused static functions
Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Rich Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/common')
-rw-r--r--usr/src/common/mc/mc-amd/mcamd_patounum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/common/mc/mc-amd/mcamd_patounum.c b/usr/src/common/mc/mc-amd/mcamd_patounum.c
index 52ecce05e7..9811aae0c2 100644
--- a/usr/src/common/mc/mc-amd/mcamd_patounum.c
+++ b/usr/src/common/mc/mc-amd/mcamd_patounum.c
@@ -22,8 +22,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* Given a physical address and an optional syndrome, determine the
* name of the memory module that contains it.
@@ -435,6 +433,7 @@ mc_whichdimm(struct mcamd_hdl *hdl, mcamd_node_t *cs, uint64_t pa,
}
}
+#ifdef DEBUG
/*
* Brute-force BKDG pa to cs translation, coded to look as much like the
* BKDG code as possible.
@@ -599,6 +598,7 @@ mc_bkdg_patounum(struct mcamd_hdl *hdl, mcamd_node_t *mc, uint64_t pa,
return (mcamd_set_errno(hdl, EMCAMD_NOADDR));
}
+#endif /* DEBUG */
/*
* Called for each memory controller to see if the given address is