summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_page.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1994-11-14 08:19:08 +0000
committerbde <bde@FreeBSD.org>1994-11-14 08:19:08 +0000
commit8e23a5a1630513836f99baaadab8fc3869381a8e (patch)
tree8d40feee6aca3564778106ece9a98b4b47ac895b /sys/vm/vm_page.h
parent4333a0959b3e020975a5dd93a14f536aa8ecc650 (diff)
downloadFreeBSD-src-8e23a5a1630513836f99baaadab8fc3869381a8e.zip
FreeBSD-src-8e23a5a1630513836f99baaadab8fc3869381a8e.tar.gz
pmap.h:
Disable the bogus declaration of pmap_bootstrap(). Since its arg list is machine-dependent, it must be declared in a machine-dependent header. vm_page.h: Change `inline' to `__inline' and old-style function parameter lists for inlined functions to new-style. `inline' and old-style function parameter lists should never be used in system headers, even in very machine-dependent ones, because they cause warnings from gcc -Wreally-all.
Diffstat (limited to 'sys/vm/vm_page.h')
-rw-r--r--sys/vm/vm_page.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h
index c86c98e..25d8d4f 100644
--- a/sys/vm/vm_page.h
+++ b/sys/vm/vm_page.h
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_page.h,v 1.8 1994/10/17 10:43:56 davidg Exp $
+ * $Id: vm_page.h,v 1.9 1994/10/21 01:19:28 wollman Exp $
*/
/*
@@ -254,9 +254,8 @@ boolean_t vm_page_zero_fill __P((vm_page_t));
* overhead and should be used only for *very* temporary
* holding ("wiring").
*/
-static inline void
-vm_page_hold(mem)
- vm_page_t mem;
+static __inline void
+vm_page_hold(vm_page_t mem)
{
mem->hold_count++;
}
@@ -265,9 +264,8 @@ vm_page_hold(mem)
#include <sys/systm.h> /* make GCC shut up */
#endif
-static inline void
-vm_page_unhold(mem)
- vm_page_t mem;
+static __inline void
+vm_page_unhold(vm_page_t mem)
{
#ifdef DIAGNOSTIC
if( --mem->hold_count < 0)
@@ -278,4 +276,5 @@ vm_page_unhold(mem)
}
#endif /* KERNEL */
+
#endif /* !_VM_PAGE_ */
OpenPOWER on IntegriCloud