From f37de12275fc9b1a6cdcc85c679005d96dd4bf19 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sat, 8 Mar 2003 21:46:43 +0000 Subject: [PATCH] Retire devstat_add_entry() as a public function and bump __FreeBSD_version to mark this act. --- sys/kern/subr_devstat.c | 7 ++++++- sys/sys/devicestat.h | 5 ----- sys/sys/param.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c index cd6e5a3961a..1804b42625f 100644 --- a/sys/kern/subr_devstat.c +++ b/sys/kern/subr_devstat.c @@ -48,6 +48,11 @@ static int devstat_current_devnumber; static struct devstatlist device_statq; static struct devstat *devstat_alloc(void); static void devstat_free(struct devstat *); +static void devstat_add_entry(struct devstat *ds, const char *dev_name, + int unit_number, u_int32_t block_size, + devstat_support_flags flags, + devstat_type_flags device_type, + devstat_priority priority); /* * Allocate a devstat and initialize it @@ -71,7 +76,7 @@ devstat_new_entry(const char *dev_name, * Take a malloced and zeroed devstat structure given to us, fill it in * and add it to the queue of devices. */ -void +static void devstat_add_entry(struct devstat *ds, const char *dev_name, int unit_number, u_int32_t block_size, devstat_support_flags flags, diff --git a/sys/sys/devicestat.h b/sys/sys/devicestat.h index 1136044b7e7..3655db44cd6 100644 --- a/sys/sys/devicestat.h +++ b/sys/sys/devicestat.h @@ -223,11 +223,6 @@ struct devstat *devstat_new_entry(const char *dev_name, devstat_type_flags device_type, devstat_priority priority); -void devstat_add_entry(struct devstat *ds, const char *dev_name, - int unit_number, u_int32_t block_size, - devstat_support_flags flags, - devstat_type_flags device_type, - devstat_priority priority); void devstat_remove_entry(struct devstat *ds); void devstat_start_transaction(struct devstat *ds); void devstat_end_transaction(struct devstat *ds, u_int32_t bytes, diff --git a/sys/sys/param.h b/sys/sys/param.h index a5963916dee..f78e76e67c0 100644 --- a/sys/sys/param.h +++ b/sys/sys/param.h @@ -55,7 +55,7 @@ * doc/en_US.ISO8859-1/books/porters-handbook/book.sgml */ #undef __FreeBSD_version -#define __FreeBSD_version 500105 /* Master, propagated to newvers */ +#define __FreeBSD_version 500106 /* Master, propagated to newvers */ #ifndef NULL #define NULL 0