From 1be3740e4781932e19f037ff5fd990c951d3d9b9 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 1 Sep 2022 05:24:51 +0000 Subject: [PATCH] remove unused prototypes from buf.h bufcache_getanycleanbuf() removed in vfs_bio.c 1.181 buf_acquire_unmapped() removed in vfs_biomem.c 1.22 buf_print() removed in vfs_bio.c 1.47 cluster_write() removed along with vfs_cluster.c in 2016 --- sys/sys/buf.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/sys/sys/buf.h b/sys/sys/buf.h index ea01ac0caf7..b8d887ad1c7 100644 --- a/sys/sys/buf.h +++ b/sys/sys/buf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: buf.h,v 1.112 2019/11/29 01:04:08 beck Exp $ */ +/* $OpenBSD: buf.h,v 1.113 2022/09/01 05:24:51 jsg Exp $ */ /* $NetBSD: buf.h,v 1.25 1997/04/09 21:12:17 mycroft Exp $ */ /* @@ -292,7 +292,6 @@ void bufcache_release(struct buf *); int buf_flip_high(struct buf *); void buf_flip_dma(struct buf *); struct buf *bufcache_getcleanbuf(int, int); -struct buf *bufcache_getanycleanbuf(void); struct buf *bufcache_getdirtybuf(void); /* @@ -305,7 +304,6 @@ struct buf *bufcache_getdirtybuf(void); */ void buf_mem_init(vsize_t); void buf_acquire(struct buf *); -void buf_acquire_unmapped(struct buf *); void buf_acquire_nomap(struct buf *); void buf_map(struct buf *); void buf_release(struct buf *); @@ -326,10 +324,6 @@ void buf_daemon(void *); void buf_replacevnode(struct buf *, struct vnode *); int bread_cluster(struct vnode *, daddr_t, int, struct buf **); -#ifdef DEBUG -void buf_print(struct buf *); -#endif - static __inline void buf_start(struct buf *bp) { @@ -367,8 +361,6 @@ buf_countdeps(struct buf *bp, int i, int islocked) return (0); } -void cluster_write(struct buf *, struct cluster_info *, u_quad_t); - __END_DECLS #endif /* _KERNEL */ #endif /* !_SYS_BUF_H_ */ -- 2.20.1