summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/amd64/amd64/legacy.c4
-rw-r--r--sys/amd64/amd64/nexus.c4
-rw-r--r--sys/amd64/conf/GENERIC2
-rw-r--r--sys/contrib/dev/fla/fla.c2
-rw-r--r--sys/dev/agp/agp.c2
-rw-r--r--sys/dev/ata/ata-all.c2
-rw-r--r--sys/dev/ata/ata-disk.c2
-rw-r--r--sys/dev/ata/ata-raid.c2
-rw-r--r--sys/dev/ata/atapi-all.c2
-rw-r--r--sys/dev/ata/atapi-cd.c2
-rw-r--r--sys/dev/ata/atapi-fd.c2
-rw-r--r--sys/dev/ata/atapi-tape.c2
-rw-r--r--sys/dev/atkbdc/atkbdc_isa.c2
-rw-r--r--sys/dev/atkbdc/atkbdc_subr.c2
-rw-r--r--sys/dev/ppbus/ppbconf.c2
-rw-r--r--sys/dev/snp/snp.c2
-rw-r--r--sys/dev/speaker/spkr.c2
-rw-r--r--sys/i386/conf/GENERIC2
-rw-r--r--sys/i386/i386/legacy.c4
-rw-r--r--sys/i386/i386/nexus.c4
-rw-r--r--sys/i386/isa/spkr.c2
-rw-r--r--sys/isa/atkbdc_isa.c2
-rw-r--r--sys/isa/isa_common.c2
-rw-r--r--sys/kern/kern_acl.c2
-rw-r--r--sys/kern/kern_conf.c2
-rw-r--r--sys/kern/kern_module.c2
-rw-r--r--sys/kern/subr_acl_posix1e.c2
-rw-r--r--sys/kern/subr_bus.c2
-rw-r--r--sys/kern/subr_disk.c2
-rw-r--r--sys/kern/subr_eventhandler.c2
-rw-r--r--sys/kern/subr_taskqueue.c2
-rw-r--r--sys/kern/tty_pty.c2
-rw-r--r--sys/kern/tty_snoop.c2
-rw-r--r--sys/kern/vfs_acl.c2
-rw-r--r--sys/kern/vfs_cache.c2
-rw-r--r--sys/net/bpf.c2
-rw-r--r--sys/netinet/ip_encap.c2
-rw-r--r--sys/netinet6/frag6.c2
-rw-r--r--sys/pc98/pc98/spkr.c2
-rw-r--r--sys/pci/agp.c2
-rw-r--r--sys/ufs/ffs/ffs_softdep.c26
41 files changed, 59 insertions, 55 deletions
diff --git a/sys/amd64/amd64/legacy.c b/sys/amd64/amd64/legacy.c
index 7caa0e9..d648848 100644
--- a/sys/amd64/amd64/legacy.c
+++ b/sys/amd64/amd64/legacy.c
@@ -73,9 +73,9 @@
#include <sys/rtprio.h>
#ifdef PC98
-MALLOC_DEFINE(M_BUSSPACEHANDLE, "busspacehandle", "Bus space handle");
+static MALLOC_DEFINE(M_BUSSPACEHANDLE, "busspacehandle", "Bus space handle");
#endif
-MALLOC_DEFINE(M_NEXUSDEV, "nexusdev", "Nexus device");
+static MALLOC_DEFINE(M_NEXUSDEV, "nexusdev", "Nexus device");
struct nexus_device {
struct resource_list nx_resources;
int nx_pcibus;
diff --git a/sys/amd64/amd64/nexus.c b/sys/amd64/amd64/nexus.c
index 7caa0e9..d648848 100644
--- a/sys/amd64/amd64/nexus.c
+++ b/sys/amd64/amd64/nexus.c
@@ -73,9 +73,9 @@
#include <sys/rtprio.h>
#ifdef PC98
-MALLOC_DEFINE(M_BUSSPACEHANDLE, "busspacehandle", "Bus space handle");
+static MALLOC_DEFINE(M_BUSSPACEHANDLE, "busspacehandle", "Bus space handle");
#endif
-MALLOC_DEFINE(M_NEXUSDEV, "nexusdev", "Nexus device");
+static MALLOC_DEFINE(M_NEXUSDEV, "nexusdev", "Nexus device");
struct nexus_device {
struct resource_list nx_resources;
int nx_pcibus;
diff --git a/sys/amd64/conf/GENERIC b/sys/amd64/conf/GENERIC
index a8beb30..2cffabd 100644
--- a/sys/amd64/conf/GENERIC
+++ b/sys/amd64/conf/GENERIC
@@ -239,3 +239,5 @@ device uscanner # Scanners
device aue # ADMtek USB ethernet
device cue # CATC USB ethernet
device kue # Kawasaki LSI USB ethernet
+
+options DDB
diff --git a/sys/contrib/dev/fla/fla.c b/sys/contrib/dev/fla/fla.c
index 5130bbb..3b0b03b 100644
--- a/sys/contrib/dev/fla/fla.c
+++ b/sys/contrib/dev/fla/fla.c
@@ -33,7 +33,7 @@
#include <contrib/dev/fla/msysosak.h>
-MALLOC_DEFINE(M_FLA, "fla driver", "fla driver storage");
+static MALLOC_DEFINE(M_FLA, "fla driver", "fla driver storage");
static int fla_debug = 0;
SYSCTL_INT(_debug, OID_AUTO, fladebug, CTLFLAG_RW, &fla_debug, 0, "");
diff --git a/sys/dev/agp/agp.c b/sys/dev/agp/agp.c
index 99df8cc..ce1c4c9 100644
--- a/sys/dev/agp/agp.c
+++ b/sys/dev/agp/agp.c
@@ -58,7 +58,7 @@
MODULE_VERSION(agp, 1);
-MALLOC_DEFINE(M_AGP, "agp", "AGP data structures");
+static MALLOC_DEFINE(M_AGP, "agp", "AGP data structures");
#define CDEV_MAJOR 148
/* agp_drv.c */
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c
index 47b6b4e..1d147f5 100644
--- a/sys/dev/ata/ata-all.c
+++ b/sys/dev/ata/ata-all.c
@@ -96,7 +96,7 @@ static devclass_t ata_devclass;
static devclass_t ata_pci_devclass;
static struct intr_config_hook *ata_delayed_attach = NULL;
static char ata_conf[256];
-MALLOC_DEFINE(M_ATA, "ATA generic", "ATA driver generic layer");
+static MALLOC_DEFINE(M_ATA, "ATA generic", "ATA driver generic layer");
#if NISA > 0
static struct isa_pnp_id ata_ids[] = {
diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c
index 04fb26f..799e9ad 100644
--- a/sys/dev/ata/ata-disk.c
+++ b/sys/dev/ata/ata-disk.c
@@ -80,7 +80,7 @@ static int ad_version(u_int16_t);
/* internal vars */
static u_int32_t adp_lun_map = 0;
-MALLOC_DEFINE(M_AD, "AD driver", "ATA disk driver");
+static MALLOC_DEFINE(M_AD, "AD driver", "ATA disk driver");
/* defines */
#define AD_MAX_RETRIES 3
diff --git a/sys/dev/ata/ata-raid.c b/sys/dev/ata/ata-raid.c
index 2a8b921..bc9cbe4 100644
--- a/sys/dev/ata/ata-raid.c
+++ b/sys/dev/ata/ata-raid.c
@@ -76,7 +76,7 @@ static int ar_read(struct ad_softc *, u_int32_t, int, char *);
/* internal vars */
static int ar_init = 0;
static struct ar_softc *ar_table[8];
-MALLOC_DEFINE(M_AR, "AR driver", "ATA RAID driver");
+static MALLOC_DEFINE(M_AR, "AR driver", "ATA RAID driver");
/* defines */
#define PRINT_AD(adp) \
diff --git a/sys/dev/ata/atapi-all.c b/sys/dev/ata/atapi-all.c
index 2ea1e5c..d15d893 100644
--- a/sys/dev/ata/atapi-all.c
+++ b/sys/dev/ata/atapi-all.c
@@ -51,7 +51,7 @@ static char *atapi_cmd2str(u_int8_t);
static char *atapi_skey2str(u_int8_t);
/* internal vars */
-MALLOC_DEFINE(M_ATAPI, "ATAPI generic", "ATAPI driver generic layer");
+static MALLOC_DEFINE(M_ATAPI, "ATAPI generic", "ATAPI driver generic layer");
/* defines */
#define ATAPI_MAX_RETRIES 3
diff --git a/sys/dev/ata/atapi-cd.c b/sys/dev/ata/atapi-cd.c
index c3509cf..f32c5b7 100644
--- a/sys/dev/ata/atapi-cd.c
+++ b/sys/dev/ata/atapi-cd.c
@@ -98,7 +98,7 @@ static int acd_set_speed(struct acd_softc *cdp, int);
/* internal vars */
static u_int32_t acd_lun_map = 0;
-MALLOC_DEFINE(M_ACD, "ACD driver", "ATAPI CD driver buffers");
+static MALLOC_DEFINE(M_ACD, "ACD driver", "ATAPI CD driver buffers");
int
acdattach(struct atapi_softc *atp)
diff --git a/sys/dev/ata/atapi-fd.c b/sys/dev/ata/atapi-fd.c
index 62f844d..84398a0 100644
--- a/sys/dev/ata/atapi-fd.c
+++ b/sys/dev/ata/atapi-fd.c
@@ -76,7 +76,7 @@ static int afd_prevent_allow(struct afd_softc *, int);
/* internal vars */
static u_int32_t afd_lun_map = 0;
-MALLOC_DEFINE(M_AFD, "AFD driver", "ATAPI floppy driver buffers");
+static MALLOC_DEFINE(M_AFD, "AFD driver", "ATAPI floppy driver buffers");
int
afdattach(struct atapi_softc *atp)
diff --git a/sys/dev/ata/atapi-tape.c b/sys/dev/ata/atapi-tape.c
index ac1049c..e590958 100644
--- a/sys/dev/ata/atapi-tape.c
+++ b/sys/dev/ata/atapi-tape.c
@@ -82,7 +82,7 @@ static int ast_erase(struct ast_softc *);
/* internal vars */
static u_int32_t ast_lun_map = 0;
static u_int64_t ast_total = 0;
-MALLOC_DEFINE(M_AST, "AST driver", "ATAPI tape driver buffers");
+static MALLOC_DEFINE(M_AST, "AST driver", "ATAPI tape driver buffers");
int
astattach(struct atapi_softc *atp)
diff --git a/sys/dev/atkbdc/atkbdc_isa.c b/sys/dev/atkbdc/atkbdc_isa.c
index d2a4021..e8c3e4c 100644
--- a/sys/dev/atkbdc/atkbdc_isa.c
+++ b/sys/dev/atkbdc/atkbdc_isa.c
@@ -43,7 +43,7 @@
#include <isa/isareg.h>
#include <isa/isavar.h>
-MALLOC_DEFINE(M_ATKBDDEV, "atkbddev", "AT Keyboard device");
+static MALLOC_DEFINE(M_ATKBDDEV, "atkbddev", "AT Keyboard device");
/* children */
typedef struct atkbdc_device {
diff --git a/sys/dev/atkbdc/atkbdc_subr.c b/sys/dev/atkbdc/atkbdc_subr.c
index d2a4021..e8c3e4c 100644
--- a/sys/dev/atkbdc/atkbdc_subr.c
+++ b/sys/dev/atkbdc/atkbdc_subr.c
@@ -43,7 +43,7 @@
#include <isa/isareg.h>
#include <isa/isavar.h>
-MALLOC_DEFINE(M_ATKBDDEV, "atkbddev", "AT Keyboard device");
+static MALLOC_DEFINE(M_ATKBDDEV, "atkbddev", "AT Keyboard device");
/* children */
typedef struct atkbdc_device {
diff --git a/sys/dev/ppbus/ppbconf.c b/sys/dev/ppbus/ppbconf.c
index 15d02ed..6f6bf95 100644
--- a/sys/dev/ppbus/ppbconf.c
+++ b/sys/dev/ppbus/ppbconf.c
@@ -42,7 +42,7 @@
#define DEVTOSOFTC(dev) ((struct ppb_data *)device_get_softc(dev))
-MALLOC_DEFINE(M_PPBUSDEV, "ppbusdev", "Parallel Port bus device");
+static MALLOC_DEFINE(M_PPBUSDEV, "ppbusdev", "Parallel Port bus device");
/*
diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c
index 648a6a5..9950513 100644
--- a/sys/dev/snp/snp.c
+++ b/sys/dev/snp/snp.c
@@ -61,7 +61,7 @@ static struct cdevsw snp_cdevsw = {
#define MIN(a,b) (((a)<(b))?(a):(b))
#endif
-MALLOC_DEFINE(M_SNP, "snp", "Snoop device data");
+static MALLOC_DEFINE(M_SNP, "snp", "Snoop device data");
static struct tty *snpdevtotty __P((dev_t dev));
static int snp_detach __P((struct snoop *snp));
diff --git a/sys/dev/speaker/spkr.c b/sys/dev/speaker/spkr.c
index e6f0e95..776a9c6 100644
--- a/sys/dev/speaker/spkr.c
+++ b/sys/dev/speaker/spkr.c
@@ -45,7 +45,7 @@ static struct cdevsw spkr_cdevsw = {
/* bmaj */ -1
};
-MALLOC_DEFINE(M_SPKR, "spkr", "Speaker buffer");
+static MALLOC_DEFINE(M_SPKR, "spkr", "Speaker buffer");
/**************** MACHINE DEPENDENT PART STARTS HERE *************************
*
diff --git a/sys/i386/conf/GENERIC b/sys/i386/conf/GENERIC
index a8beb30..2cffabd 100644
--- a/sys/i386/conf/GENERIC
+++ b/sys/i386/conf/GENERIC
@@ -239,3 +239,5 @@ device uscanner # Scanners
device aue # ADMtek USB ethernet
device cue # CATC USB ethernet
device kue # Kawasaki LSI USB ethernet
+
+options DDB
diff --git a/sys/i386/i386/legacy.c b/sys/i386/i386/legacy.c
index 7caa0e9..d648848 100644
--- a/sys/i386/i386/legacy.c
+++ b/sys/i386/i386/legacy.c
@@ -73,9 +73,9 @@
#include <sys/rtprio.h>
#ifdef PC98
-MALLOC_DEFINE(M_BUSSPACEHANDLE, "busspacehandle", "Bus space handle");
+static MALLOC_DEFINE(M_BUSSPACEHANDLE, "busspacehandle", "Bus space handle");
#endif
-MALLOC_DEFINE(M_NEXUSDEV, "nexusdev", "Nexus device");
+static MALLOC_DEFINE(M_NEXUSDEV, "nexusdev", "Nexus device");
struct nexus_device {
struct resource_list nx_resources;
int nx_pcibus;
diff --git a/sys/i386/i386/nexus.c b/sys/i386/i386/nexus.c
index 7caa0e9..d648848 100644
--- a/sys/i386/i386/nexus.c
+++ b/sys/i386/i386/nexus.c
@@ -73,9 +73,9 @@
#include <sys/rtprio.h>
#ifdef PC98
-MALLOC_DEFINE(M_BUSSPACEHANDLE, "busspacehandle", "Bus space handle");
+static MALLOC_DEFINE(M_BUSSPACEHANDLE, "busspacehandle", "Bus space handle");
#endif
-MALLOC_DEFINE(M_NEXUSDEV, "nexusdev", "Nexus device");
+static MALLOC_DEFINE(M_NEXUSDEV, "nexusdev", "Nexus device");
struct nexus_device {
struct resource_list nx_resources;
int nx_pcibus;
diff --git a/sys/i386/isa/spkr.c b/sys/i386/isa/spkr.c
index e6f0e95..776a9c6 100644
--- a/sys/i386/isa/spkr.c
+++ b/sys/i386/isa/spkr.c
@@ -45,7 +45,7 @@ static struct cdevsw spkr_cdevsw = {
/* bmaj */ -1
};
-MALLOC_DEFINE(M_SPKR, "spkr", "Speaker buffer");
+static MALLOC_DEFINE(M_SPKR, "spkr", "Speaker buffer");
/**************** MACHINE DEPENDENT PART STARTS HERE *************************
*
diff --git a/sys/isa/atkbdc_isa.c b/sys/isa/atkbdc_isa.c
index d2a4021..e8c3e4c 100644
--- a/sys/isa/atkbdc_isa.c
+++ b/sys/isa/atkbdc_isa.c
@@ -43,7 +43,7 @@
#include <isa/isareg.h>
#include <isa/isavar.h>
-MALLOC_DEFINE(M_ATKBDDEV, "atkbddev", "AT Keyboard device");
+static MALLOC_DEFINE(M_ATKBDDEV, "atkbddev", "AT Keyboard device");
/* children */
typedef struct atkbdc_device {
diff --git a/sys/isa/isa_common.c b/sys/isa/isa_common.c
index d5fa6b3..4334ddf 100644
--- a/sys/isa/isa_common.c
+++ b/sys/isa/isa_common.c
@@ -78,7 +78,7 @@
static int isa_print_child(device_t bus, device_t dev);
-MALLOC_DEFINE(M_ISADEV, "isadev", "ISA device");
+static MALLOC_DEFINE(M_ISADEV, "isadev", "ISA device");
static devclass_t isa_devclass;
static int isa_running;
diff --git a/sys/kern/kern_acl.c b/sys/kern/kern_acl.c
index 3c9eb6e..0e9fc40 100644
--- a/sys/kern/kern_acl.c
+++ b/sys/kern/kern_acl.c
@@ -46,7 +46,7 @@
#include <sys/stat.h>
#include <sys/acl.h>
-MALLOC_DEFINE(M_ACL, "acl", "access control list");
+static MALLOC_DEFINE(M_ACL, "acl", "access control list");
static int vacl_set_acl(struct proc *p, struct vnode *vp, acl_type_t type,
struct acl *aclp);
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index c838f17..8c20321 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -49,7 +49,7 @@
struct cdevsw *cdevsw[NUMCDEVSW];
-MALLOC_DEFINE(M_DEVT, "dev_t", "dev_t storage");
+static MALLOC_DEFINE(M_DEVT, "dev_t", "dev_t storage");
/*
* This is the number of hash-buckets. Experiements with 'real-life'
diff --git a/sys/kern/kern_module.c b/sys/kern/kern_module.c
index 46c3d14..aa9ecb6 100644
--- a/sys/kern/kern_module.c
+++ b/sys/kern/kern_module.c
@@ -37,7 +37,7 @@
#include <sys/linker.h>
#include <sys/proc.h>
-MALLOC_DEFINE(M_MODULE, "module", "module data structures");
+static MALLOC_DEFINE(M_MODULE, "module", "module data structures");
typedef TAILQ_HEAD(, module) modulelist_t;
struct module {
diff --git a/sys/kern/subr_acl_posix1e.c b/sys/kern/subr_acl_posix1e.c
index 3c9eb6e..0e9fc40 100644
--- a/sys/kern/subr_acl_posix1e.c
+++ b/sys/kern/subr_acl_posix1e.c
@@ -46,7 +46,7 @@
#include <sys/stat.h>
#include <sys/acl.h>
-MALLOC_DEFINE(M_ACL, "acl", "access control list");
+static MALLOC_DEFINE(M_ACL, "acl", "access control list");
static int vacl_set_acl(struct proc *p, struct vnode *vp, acl_type_t type,
struct acl *aclp);
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c
index 35f3c97..a89048a 100644
--- a/sys/kern/subr_bus.c
+++ b/sys/kern/subr_bus.c
@@ -41,7 +41,7 @@
#include <sys/rman.h>
#include <machine/stdarg.h> /* for device_printf() */
-MALLOC_DEFINE(M_BUS, "bus", "Bus data structures");
+static MALLOC_DEFINE(M_BUS, "bus", "Bus data structures");
#ifdef BUS_DEBUG
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index 325038c..0b98fea 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -22,7 +22,7 @@
#include <machine/md_var.h>
#include <sys/ctype.h>
-MALLOC_DEFINE(M_DISK, "disk", "disk data");
+static MALLOC_DEFINE(M_DISK, "disk", "disk data");
static d_strategy_t diskstrategy;
static d_open_t diskopen;
diff --git a/sys/kern/subr_eventhandler.c b/sys/kern/subr_eventhandler.c
index e077dff..417d73e 100644
--- a/sys/kern/subr_eventhandler.c
+++ b/sys/kern/subr_eventhandler.c
@@ -32,7 +32,7 @@
#include <sys/systm.h>
#include <sys/eventhandler.h>
-MALLOC_DEFINE(M_EVENTHANDLER, "eventhandler", "Event handler records");
+static MALLOC_DEFINE(M_EVENTHANDLER, "eventhandler", "Event handler records");
/* List of 'slow' lists */
static TAILQ_HEAD(, eventhandler_list) eventhandler_lists;
diff --git a/sys/kern/subr_taskqueue.c b/sys/kern/subr_taskqueue.c
index ba25c7f..5afda76 100644
--- a/sys/kern/subr_taskqueue.c
+++ b/sys/kern/subr_taskqueue.c
@@ -36,7 +36,7 @@
#include <sys/ipl.h>
#include <sys/malloc.h>
-MALLOC_DEFINE(M_TASKQUEUE, "taskqueue", "Task Queues");
+static MALLOC_DEFINE(M_TASKQUEUE, "taskqueue", "Task Queues");
static STAILQ_HEAD(taskqueue_list, taskqueue) taskqueue_queues;
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c
index 507a5aa..58af6c6 100644
--- a/sys/kern/tty_pty.c
+++ b/sys/kern/tty_pty.c
@@ -54,7 +54,7 @@
#include <sys/signalvar.h>
#include <sys/malloc.h>
-MALLOC_DEFINE(M_PTY, "ptys", "pty data structures");
+static MALLOC_DEFINE(M_PTY, "ptys", "pty data structures");
static void ptsstart __P((struct tty *tp));
static void ptsstop __P((struct tty *tp, int rw));
diff --git a/sys/kern/tty_snoop.c b/sys/kern/tty_snoop.c
index 648a6a5..9950513 100644
--- a/sys/kern/tty_snoop.c
+++ b/sys/kern/tty_snoop.c
@@ -61,7 +61,7 @@ static struct cdevsw snp_cdevsw = {
#define MIN(a,b) (((a)<(b))?(a):(b))
#endif
-MALLOC_DEFINE(M_SNP, "snp", "Snoop device data");
+static MALLOC_DEFINE(M_SNP, "snp", "Snoop device data");
static struct tty *snpdevtotty __P((dev_t dev));
static int snp_detach __P((struct snoop *snp));
diff --git a/sys/kern/vfs_acl.c b/sys/kern/vfs_acl.c
index 3c9eb6e..0e9fc40 100644
--- a/sys/kern/vfs_acl.c
+++ b/sys/kern/vfs_acl.c
@@ -46,7 +46,7 @@
#include <sys/stat.h>
#include <sys/acl.h>
-MALLOC_DEFINE(M_ACL, "acl", "access control list");
+static MALLOC_DEFINE(M_ACL, "acl", "access control list");
static int vacl_set_acl(struct proc *p, struct vnode *vp, acl_type_t type,
struct acl *aclp);
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index b405d14..6657523 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -130,7 +130,7 @@ SYSCTL_OPAQUE(_vfs_cache, OID_AUTO, nchstats, CTLFLAG_RD, &nchstats,
static void cache_zap __P((struct namecache *ncp));
-MALLOC_DEFINE(M_VFSCACHE, "vfscache", "VFS name cache entries");
+static MALLOC_DEFINE(M_VFSCACHE, "vfscache", "VFS name cache entries");
/*
* Flags in namecache.nc_flag
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 341ee21..5ee63df 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -78,7 +78,7 @@
#include <sys/kernel.h>
#include <sys/sysctl.h>
-MALLOC_DEFINE(M_BPF, "BPF", "BPF data");
+static MALLOC_DEFINE(M_BPF, "BPF", "BPF data");
#if NBPF > 0
diff --git a/sys/netinet/ip_encap.c b/sys/netinet/ip_encap.c
index de83334..7cb8058 100644
--- a/sys/netinet/ip_encap.c
+++ b/sys/netinet/ip_encap.c
@@ -93,7 +93,7 @@
#include <sys/kernel.h>
#include <sys/malloc.h>
-MALLOC_DEFINE(M_NETADDR, "Export Host", "Export host address structure");
+static MALLOC_DEFINE(M_NETADDR, "Export Host", "Export host address structure");
static void encap_add __P((struct encaptab *));
static int mask_match __P((const struct encaptab *, const struct sockaddr *,
diff --git a/sys/netinet6/frag6.c b/sys/netinet6/frag6.c
index d783357..6222e75 100644
--- a/sys/netinet6/frag6.c
+++ b/sys/netinet6/frag6.c
@@ -71,7 +71,7 @@ u_int frag6_nfragpackets;
struct ip6q ip6q; /* ip6 reassemble queue */
/* FreeBSD tweak */
-MALLOC_DEFINE(M_FTABLE, "fragment", "fragment reassembly header");
+static MALLOC_DEFINE(M_FTABLE, "fragment", "fragment reassembly header");
/*
* Initialise reassembly queue and fragment identifier.
diff --git a/sys/pc98/pc98/spkr.c b/sys/pc98/pc98/spkr.c
index 476e414..0c467ea 100644
--- a/sys/pc98/pc98/spkr.c
+++ b/sys/pc98/pc98/spkr.c
@@ -54,7 +54,7 @@ static struct cdevsw spkr_cdevsw = {
/* bmaj */ -1
};
-MALLOC_DEFINE(M_SPKR, "spkr", "Speaker buffer");
+static MALLOC_DEFINE(M_SPKR, "spkr", "Speaker buffer");
/**************** MACHINE DEPENDENT PART STARTS HERE *************************
*
diff --git a/sys/pci/agp.c b/sys/pci/agp.c
index 99df8cc..ce1c4c9 100644
--- a/sys/pci/agp.c
+++ b/sys/pci/agp.c
@@ -58,7 +58,7 @@
MODULE_VERSION(agp, 1);
-MALLOC_DEFINE(M_AGP, "agp", "AGP data structures");
+static MALLOC_DEFINE(M_AGP, "agp", "AGP data structures");
#define CDEV_MAJOR 148
/* agp_drv.c */
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index b52f458..1546227 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -77,19 +77,19 @@
/*
* malloc types defined for the softdep system.
*/
-MALLOC_DEFINE(M_PAGEDEP, "pagedep","File page dependencies");
-MALLOC_DEFINE(M_INODEDEP, "inodedep","Inode dependencies");
-MALLOC_DEFINE(M_NEWBLK, "newblk","New block allocation");
-MALLOC_DEFINE(M_BMSAFEMAP, "bmsafemap","Block or frag allocated from cyl group map");
-MALLOC_DEFINE(M_ALLOCDIRECT, "allocdirect","Block or frag dependency for an inode");
-MALLOC_DEFINE(M_INDIRDEP, "indirdep","Indirect block dependencies");
-MALLOC_DEFINE(M_ALLOCINDIR, "allocindir","Block dependency for an indirect block");
-MALLOC_DEFINE(M_FREEFRAG, "freefrag","Previously used frag for an inode");
-MALLOC_DEFINE(M_FREEBLKS, "freeblks","Blocks freed from an inode");
-MALLOC_DEFINE(M_FREEFILE, "freefile","Inode deallocated");
-MALLOC_DEFINE(M_DIRADD, "diradd","New directory entry");
-MALLOC_DEFINE(M_MKDIR, "mkdir","New directory");
-MALLOC_DEFINE(M_DIRREM, "dirrem","Directory entry deleted");
+static MALLOC_DEFINE(M_PAGEDEP, "pagedep","File page dependencies");
+static MALLOC_DEFINE(M_INODEDEP, "inodedep","Inode dependencies");
+static MALLOC_DEFINE(M_NEWBLK, "newblk","New block allocation");
+static MALLOC_DEFINE(M_BMSAFEMAP, "bmsafemap","Block or frag allocated from cyl group map");
+static MALLOC_DEFINE(M_ALLOCDIRECT, "allocdirect","Block or frag dependency for an inode");
+static MALLOC_DEFINE(M_INDIRDEP, "indirdep","Indirect block dependencies");
+static MALLOC_DEFINE(M_ALLOCINDIR, "allocindir","Block dependency for an indirect block");
+static MALLOC_DEFINE(M_FREEFRAG, "freefrag","Previously used frag for an inode");
+static MALLOC_DEFINE(M_FREEBLKS, "freeblks","Blocks freed from an inode");
+static MALLOC_DEFINE(M_FREEFILE, "freefile","Inode deallocated");
+static MALLOC_DEFINE(M_DIRADD, "diradd","New directory entry");
+static MALLOC_DEFINE(M_MKDIR, "mkdir","New directory");
+static MALLOC_DEFINE(M_DIRREM, "dirrem","Directory entry deleted");
#define M_SOFTDEP_FLAGS (M_WAITOK | M_USE_RESERVE)
OpenPOWER on IntegriCloud