diff options
author | ed <ed@FreeBSD.org> | 2011-11-07 06:44:47 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-11-07 06:44:47 +0000 |
commit | e97eae1577f10887cddd14c0c954b3ddcf507bd6 (patch) | |
tree | 3278fb8afc568f22cc5eda0e74926191fc1857df /sys/dev/aac | |
parent | dcf961c021321caf2c6fda15125c85b82ec9ff04 (diff) | |
download | FreeBSD-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/dev/aac')
-rw-r--r-- | sys/dev/aac/aac.c | 2 | ||||
-rw-r--r-- | sys/dev/aac/aac_cam.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/aac/aac.c b/sys/dev/aac/aac.c index 45cfa02..ace8b13 100644 --- a/sys/dev/aac/aac.c +++ b/sys/dev/aac/aac.c @@ -219,7 +219,7 @@ static struct cdevsw aac_cdevsw = { .d_name = "aac", }; -MALLOC_DEFINE(M_AACBUF, "aacbuf", "Buffers for the AAC driver"); +static MALLOC_DEFINE(M_AACBUF, "aacbuf", "Buffers for the AAC driver"); /* sysctl node */ SYSCTL_NODE(_hw, OID_AUTO, aac, CTLFLAG_RD, 0, "AAC driver parameters"); diff --git a/sys/dev/aac/aac_cam.c b/sys/dev/aac/aac_cam.c index b5c3b26..2fafa97 100644 --- a/sys/dev/aac/aac_cam.c +++ b/sys/dev/aac/aac_cam.c @@ -104,7 +104,7 @@ static driver_t aac_pass_driver = { DRIVER_MODULE(aacp, aac, aac_pass_driver, aac_pass_devclass, 0, 0); MODULE_DEPEND(aacp, cam, 1, 1, 1); -MALLOC_DEFINE(M_AACCAM, "aaccam", "AAC CAM info"); +static MALLOC_DEFINE(M_AACCAM, "aaccam", "AAC CAM info"); static void aac_cam_rescan(struct aac_softc *sc, uint32_t channel, uint32_t target_id) |