diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-10-29 14:54:55 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-10-29 14:54:55 +0000 |
commit | 9f69a4578a40b7ac10320af4fd2a4ac9b47012a6 (patch) | |
tree | 62539f98d30a631cbf4f1be6fd4ab3a45c28febb /sys/sys/buf.h | |
parent | 1ce9f3171cdc2e6016e832d756b02d9d71e3c48f (diff) | |
download | src-9f69a4578a40b7ac10320af4fd2a4ac9b47012a6.tar.gz src-9f69a4578a40b7ac10320af4fd2a4ac9b47012a6.zip |
Weaken a bogus dependency on <sys/proc.h> in <sys/buf.h> by #ifdef'ing
the offending inline function (BUF_KERNPROC) on it being #included
already.
I'm not sure BUF_KERNPROC() is even the right thing to do or in the
right place or implemented the right way (inline vs normal function).
Remove consequently unneeded #includes of <sys/proc.h>
Notes
Notes:
svn path=/head/; revision=67885
Diffstat (limited to 'sys/sys/buf.h')
-rw-r--r-- | sys/sys/buf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/buf.h b/sys/sys/buf.h index c8d47885a0af..d085de6c8142 100644 --- a/sys/sys/buf.h +++ b/sys/sys/buf.h @@ -304,6 +304,7 @@ do { \ lockdestroy(&(bp)->b_lock); \ } while (0) +#ifdef _SYS_PROC_H_ /* Avoid #include <sys/proc.h> pollution */ /* * When initiating asynchronous I/O, change ownership of the lock to the * kernel. Once done, the lock may legally released by biodone. The @@ -320,6 +321,7 @@ BUF_KERNPROC(struct buf *bp) p->p_locks--; bp->b_lock.lk_lockholder = LK_KERNPROC; } +#endif /* * Find out the number of references to a lock. */ |