From 8e23a5a1630513836f99baaadab8fc3869381a8e Mon Sep 17 00:00:00 2001 From: bde Date: Mon, 14 Nov 1994 08:19:08 +0000 Subject: 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. --- sys/vm/vm_page.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'sys/vm/vm_page.h') 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 /* 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_ */ -- cgit v1.1