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/net/vnet.c | |
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/net/vnet.c')
-rw-r--r-- | sys/net/vnet.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/net/vnet.c b/sys/net/vnet.c index b9eebd9..e8864aa 100644 --- a/sys/net/vnet.c +++ b/sys/net/vnet.c @@ -81,7 +81,7 @@ __FBSDID("$FreeBSD$"); FEATURE(vimage, "VIMAGE kernel virtualization"); -MALLOC_DEFINE(M_VNET, "vnet", "network stack control block"); +static MALLOC_DEFINE(M_VNET, "vnet", "network stack control block"); /* * The virtual network stack list has two read-write locks, one sleepable and @@ -161,7 +161,7 @@ struct vnet *vnet0; */ #define VNET_BYTES (VNET_STOP - VNET_START) -MALLOC_DEFINE(M_VNET_DATA, "vnet_data", "VNET data"); +static MALLOC_DEFINE(M_VNET_DATA, "vnet_data", "VNET data"); /* * VNET_MODMIN is the minimum number of bytes we will reserve for the sum of @@ -203,7 +203,8 @@ struct vnet_data_free { TAILQ_ENTRY(vnet_data_free) vnd_link; }; -MALLOC_DEFINE(M_VNET_DATA_FREE, "vnet_data_free", "VNET resource accounting"); +static MALLOC_DEFINE(M_VNET_DATA_FREE, "vnet_data_free", + "VNET resource accounting"); static TAILQ_HEAD(, vnet_data_free) vnet_data_free_head = TAILQ_HEAD_INITIALIZER(vnet_data_free_head); static struct sx vnet_data_free_lock; |