aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2005-02-10 12:02:37 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2005-02-10 12:02:37 +0000
commitc711aea6cae4409bc957bf327fd5b23ada7fdf21 (patch)
treee482f2a3b11d8b31aaf943a15d6e90aa0b298dd1 /sys/dev
parentd67c43b3a9bd14530efcd2b51905aeaf4a25ad87 (diff)
downloadsrc-c711aea6cae4409bc957bf327fd5b23ada7fdf21.tar.gz
src-c711aea6cae4409bc957bf327fd5b23ada7fdf21.zip
Make a bunch of malloc types static.
Found by: src/tools/tools/kernxref
Notes
Notes: svn path=/head/; revision=141616
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/led/led.c2
-rw-r--r--sys/dev/ray/if_ray.c1
-rw-r--r--sys/dev/ray/if_rayvar.h2
3 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/led/led.c b/sys/dev/led/led.c
index 03d7e6cb6886..49e787b98b53 100644
--- a/sys/dev/led/led.c
+++ b/sys/dev/led/led.c
@@ -42,7 +42,7 @@ static struct sx led_sx;
static LIST_HEAD(, ledsc) led_list = LIST_HEAD_INITIALIZER(&led_list);
static struct callout led_ch;
-MALLOC_DEFINE(M_LED, "LED", "LED driver");
+static MALLOC_DEFINE(M_LED, "LED", "LED driver");
static void
led_timeout(void *p)
diff --git a/sys/dev/ray/if_ray.c b/sys/dev/ray/if_ray.c
index 35a18158a37d..1dc21f30bdc8 100644
--- a/sys/dev/ray/if_ray.c
+++ b/sys/dev/ray/if_ray.c
@@ -275,6 +275,7 @@ __FBSDID("$FreeBSD$");
#include <dev/ray/if_raydbg.h>
#include <dev/ray/if_rayvar.h>
+static MALLOC_DEFINE(M_RAYCOM, "raycom", "Raylink command queue entry");
/*
* Prototyping
*/
diff --git a/sys/dev/ray/if_rayvar.h b/sys/dev/ray/if_rayvar.h
index 0a91859ebf67..fc3aae2839f3 100644
--- a/sys/dev/ray/if_rayvar.h
+++ b/sys/dev/ray/if_rayvar.h
@@ -111,8 +111,6 @@ struct ray_softc {
* Command queue definitions
*/
typedef void (*ray_comqfn_t)(struct ray_softc *sc, struct ray_comq_entry *com);
-MALLOC_DECLARE(M_RAYCOM);
-MALLOC_DEFINE(M_RAYCOM, "raycom", "Raylink command queue entry");
struct ray_comq_entry {
TAILQ_ENTRY(ray_comq_entry) c_chain; /* Tail queue. */
ray_comqfn_t c_function; /* Function to call */