summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/powermac
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/powerpc/powermac
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/powerpc/powermac')
-rw-r--r--sys/powerpc/powermac/dbdma.c2
-rw-r--r--sys/powerpc/powermac/fcu.c2
-rw-r--r--sys/powerpc/powermac/powermac_thermal.c2
-rw-r--r--sys/powerpc/powermac/smu.c2
-rw-r--r--sys/powerpc/powermac/smusat.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/sys/powerpc/powermac/dbdma.c b/sys/powerpc/powermac/dbdma.c
index 1172606..6712c1a 100644
--- a/sys/powerpc/powermac/dbdma.c
+++ b/sys/powerpc/powermac/dbdma.c
@@ -40,7 +40,7 @@ __FBSDID("$FreeBSD$");
#include "dbdmavar.h"
-MALLOC_DEFINE(M_DBDMA, "dbdma", "DBDMA Command List");
+static MALLOC_DEFINE(M_DBDMA, "dbdma", "DBDMA Command List");
static uint32_t dbdma_read_reg(dbdma_channel_t *, u_int);
static void dbdma_write_reg(dbdma_channel_t *, u_int, uint32_t);
diff --git a/sys/powerpc/powermac/fcu.c b/sys/powerpc/powermac/fcu.c
index cf5b466..109833d 100644
--- a/sys/powerpc/powermac/fcu.c
+++ b/sys/powerpc/powermac/fcu.c
@@ -131,7 +131,7 @@ static driver_t fcu_driver = {
static devclass_t fcu_devclass;
DRIVER_MODULE(fcu, iicbus, fcu_driver, fcu_devclass, 0, 0);
-MALLOC_DEFINE(M_FCU, "fcu", "FCU Sensor Information");
+static MALLOC_DEFINE(M_FCU, "fcu", "FCU Sensor Information");
static int
fcu_write(device_t dev, uint32_t addr, uint8_t reg, uint8_t *buff,
diff --git a/sys/powerpc/powermac/powermac_thermal.c b/sys/powerpc/powermac/powermac_thermal.c
index 9c1f59d..db0611a 100644
--- a/sys/powerpc/powermac/powermac_thermal.c
+++ b/sys/powerpc/powermac/powermac_thermal.c
@@ -58,7 +58,7 @@ SYSINIT(pmac_therm_setup, SI_SUB_KTHREAD_IDLE, SI_ORDER_ANY, kproc_start,
&pmac_therm_kp);
SYSCTL_INT(_machdep, OID_AUTO, manage_fans, CTLFLAG_RW | CTLFLAG_TUN,
&enable_pmac_thermal, 1, "Enable automatic fan management");
-MALLOC_DEFINE(M_PMACTHERM, "pmactherm", "Powermac Thermal Management");
+static MALLOC_DEFINE(M_PMACTHERM, "pmactherm", "Powermac Thermal Management");
struct pmac_fan_le {
struct pmac_fan *fan;
diff --git a/sys/powerpc/powermac/smu.c b/sys/powerpc/powermac/smu.c
index ede97a1..b1b29e1 100644
--- a/sys/powerpc/powermac/smu.c
+++ b/sys/powerpc/powermac/smu.c
@@ -197,7 +197,7 @@ static driver_t smu_driver = {
static devclass_t smu_devclass;
DRIVER_MODULE(smu, nexus, smu_driver, smu_devclass, 0, 0);
-MALLOC_DEFINE(M_SMU, "smu", "SMU Sensor Information");
+static MALLOC_DEFINE(M_SMU, "smu", "SMU Sensor Information");
#define SMU_MAILBOX 0x8000860c
#define SMU_FANMGT_INTERVAL 1000 /* ms */
diff --git a/sys/powerpc/powermac/smusat.c b/sys/powerpc/powermac/smusat.c
index fcaa9ed..974e98c 100644
--- a/sys/powerpc/powermac/smusat.c
+++ b/sys/powerpc/powermac/smusat.c
@@ -63,7 +63,7 @@ static int smusat_attach(device_t);
static int smusat_sensor_sysctl(SYSCTL_HANDLER_ARGS);
static int smusat_sensor_read(struct smu_sensor *sens);
-MALLOC_DEFINE(M_SMUSAT, "smusat", "SMU Sattelite Sensors");
+static MALLOC_DEFINE(M_SMUSAT, "smusat", "SMU Sattelite Sensors");
static device_method_t smusat_methods[] = {
/* Device interface */
OpenPOWER on IntegriCloud