summaryrefslogtreecommitdiffstats
path: root/sys/ia64/ia64
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-11-07 06:44:47 +0000
committered <ed@FreeBSD.org>2011-11-07 06:44:47 +0000
commite97eae1577f10887cddd14c0c954b3ddcf507bd6 (patch)
tree3278fb8afc568f22cc5eda0e74926191fc1857df /sys/ia64/ia64
parentdcf961c021321caf2c6fda15125c85b82ec9ff04 (diff)
downloadFreeBSD-src-e97eae1577f10887cddd14c0c954b3ddcf507bd6.zip
FreeBSD-src-e97eae1577f10887cddd14c0c954b3ddcf507bd6.tar.gz
Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs.
This means that their use is restricted to a single C file.
Diffstat (limited to 'sys/ia64/ia64')
-rw-r--r--sys/ia64/ia64/mca.c2
-rw-r--r--sys/ia64/ia64/sapic.c2
-rw-r--r--sys/ia64/ia64/sscdisk.c2
-rw-r--r--sys/ia64/ia64/unwind.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/sys/ia64/ia64/mca.c b/sys/ia64/ia64/mca.c
index 8484d5a..322c6cb 100644
--- a/sys/ia64/ia64/mca.c
+++ b/sys/ia64/ia64/mca.c
@@ -43,7 +43,7 @@
#include <machine/sal.h>
#include <machine/smp.h>
-MALLOC_DEFINE(M_MCA, "MCA", "Machine Check Architecture");
+static MALLOC_DEFINE(M_MCA, "MCA", "Machine Check Architecture");
struct mca_info {
STAILQ_ENTRY(mca_info) mi_link;
diff --git a/sys/ia64/ia64/sapic.c b/sys/ia64/ia64/sapic.c
index 5aa1449..58c3426 100644
--- a/sys/ia64/ia64/sapic.c
+++ b/sys/ia64/ia64/sapic.c
@@ -99,7 +99,7 @@ struct sapic_rte {
uint64_t rte_destination_id :8;
};
-MALLOC_DEFINE(M_SAPIC, "sapic", "I/O SAPIC devices");
+static MALLOC_DEFINE(M_SAPIC, "sapic", "I/O SAPIC devices");
struct sapic *ia64_sapics[16]; /* XXX make this resizable */
int ia64_sapic_count;
diff --git a/sys/ia64/ia64/sscdisk.c b/sys/ia64/ia64/sscdisk.c
index f9abc0a..b38a73a 100644
--- a/sys/ia64/ia64/sscdisk.c
+++ b/sys/ia64/ia64/sscdisk.c
@@ -72,7 +72,7 @@ ssc(u_int64_t in0, u_int64_t in1, u_int64_t in2, u_int64_t in3, int which)
#define SSC_NSECT 409600
#endif
-MALLOC_DEFINE(M_SSC, "ssc_disk", "Simulator Disk");
+static MALLOC_DEFINE(M_SSC, "ssc_disk", "Simulator Disk");
static d_strategy_t sscstrategy;
diff --git a/sys/ia64/ia64/unwind.c b/sys/ia64/ia64/unwind.c
index 6343ed8..7b4c6d2 100644
--- a/sys/ia64/ia64/unwind.c
+++ b/sys/ia64/ia64/unwind.c
@@ -41,7 +41,7 @@ __FBSDID("$FreeBSD$");
#include <uwx.h>
-MALLOC_DEFINE(M_UNWIND, "Unwind", "Unwind information");
+static MALLOC_DEFINE(M_UNWIND, "Unwind", "Unwind information");
struct unw_entry {
uint64_t ue_start; /* procedure start */
OpenPOWER on IntegriCloud