From 7666fb4753b2bc340404acb3307f434840c651d6 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sun, 23 Apr 1995 08:05:49 +0000 Subject: [PATCH] inline -> __inline. Headers should always use `__inline' for inline functions to avoid syntax errors when modules that don't even use the offending functions are compiled with `gcc -ansi'. --- sys/sys/libkern.h | 22 +++++++++++----------- sys/vm/vm_page.h | 8 ++++---- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/sys/sys/libkern.h b/sys/sys/libkern.h index e32f72d6c24e..6264baa440f8 100644 --- a/sys/sys/libkern.h +++ b/sys/sys/libkern.h @@ -31,21 +31,21 @@ * SUCH DAMAGE. * * @(#)libkern.h 8.1 (Berkeley) 6/10/93 - * $Id: libkern.h,v 1.5 1994/11/14 14:56:46 bde Exp $ + * $Id: libkern.h,v 1.6 1995/03/16 18:12:58 bde Exp $ */ #include -static inline int imax(int a, int b) { return (a > b ? a : b); } -static inline int imin(int a, int b) { return (a < b ? a : b); } -static inline long lmax(long a, long b) { return (a > b ? a : b); } -static inline long lmin(long a, long b) { return (a < b ? a : b); } -static inline u_int max(u_int a, u_int b) { return (a > b ? a : b); } -static inline u_int min(u_int a, u_int b) { return (a < b ? a : b); } -static inline quad_t qmax(quad_t a, quad_t b) { return (a > b ? a : b); } -static inline quad_t qmin(quad_t a, quad_t b) { return (a < b ? a : b); } -static inline u_long ulmax(u_long a, u_long b) { return (a > b ? a : b); } -static inline u_long ulmin(u_long a, u_long b) { return (a < b ? a : b); } +static __inline int imax(int a, int b) { return (a > b ? a : b); } +static __inline int imin(int a, int b) { return (a < b ? a : b); } +static __inline long lmax(long a, long b) { return (a > b ? a : b); } +static __inline long lmin(long a, long b) { return (a < b ? a : b); } +static __inline u_int max(u_int a, u_int b) { return (a > b ? a : b); } +static __inline u_int min(u_int a, u_int b) { return (a < b ? a : b); } +static __inline quad_t qmax(quad_t a, quad_t b) { return (a > b ? a : b); } +static __inline quad_t qmin(quad_t a, quad_t b) { return (a < b ? a : b); } +static __inline u_long ulmax(u_long a, u_long b) { return (a > b ? a : b); } +static __inline u_long ulmin(u_long a, u_long b) { return (a < b ? a : b); } /* Prototypes for non-quad routines. */ int bcmp __P((const void *, const void *, size_t)); diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h index 4f34d955eea6..4a4e54d87c9f 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.16 1995/03/01 23:30:01 davidg Exp $ + * $Id: vm_page.h,v 1.17 1995/03/26 23:33:14 davidg Exp $ */ /* @@ -256,7 +256,7 @@ int vm_page_bits __P((int, int)); * overhead and should be used only for *very* temporary * holding ("wiring"). */ -static inline void +static __inline void vm_page_hold(vm_page_t mem) { mem->hold_count++; @@ -266,7 +266,7 @@ vm_page_hold(vm_page_t mem) #include /* make GCC shut up */ #endif -static inline void +static __inline void vm_page_unhold(vm_page_t mem) { #ifdef DIAGNOSTIC @@ -277,7 +277,7 @@ vm_page_unhold(vm_page_t mem) #endif } -static inline void +static __inline void vm_page_protect(vm_page_t mem, int prot) { if (prot == VM_PROT_NONE) {