diff options
author | bde <bde@FreeBSD.org> | 1996-10-12 20:09:48 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-10-12 20:09:48 +0000 |
commit | 2529e37cab24929062409e6a46c902c855cc9636 (patch) | |
tree | e937f814af62227b30e823f8ab9a9c130a8630f2 /sys | |
parent | 8c49d9975c6bbd7704d4d1247e57ce623ee4dbf9 (diff) | |
download | FreeBSD-src-2529e37cab24929062409e6a46c902c855cc9636.zip FreeBSD-src-2529e37cab24929062409e6a46c902c855cc9636.tar.gz |
Removed __pure's and __pure2's. __pure is a no-op for recent versions
of gcc by definition, and __pure2 is a no-op in effect (presumably the
compiler can see when an inline function has no side effects).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/swap_pager.c | 12 | ||||
-rw-r--r-- | sys/vm/vm_page.c | 5 |
2 files changed, 7 insertions, 10 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index c4d4a15..c212178 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -39,7 +39,7 @@ * from: Utah $Hdr: swap_pager.c 1.4 91/04/30$ * * @(#)swap_pager.c 8.9 (Berkeley) 3/21/94 - * $Id: swap_pager.c,v 1.70 1996/07/30 03:08:05 dyson Exp $ + * $Id: swap_pager.c,v 1.71 1996/09/08 20:44:33 dyson Exp $ */ /* @@ -156,10 +156,8 @@ static int npendingio = NPENDINGIO; static int dmmin; int dmmax; -static __pure int - swap_pager_block_index __P((vm_pindex_t pindex)) __pure2; -static __pure int - swap_pager_block_offset __P((vm_pindex_t pindex)) __pure2; +static int swap_pager_block_index __P((vm_pindex_t pindex)); +static int swap_pager_block_offset __P((vm_pindex_t pindex)); static daddr_t *swap_pager_diskaddr __P((vm_object_t object, vm_pindex_t pindex, int *valid)); static void swap_pager_finish __P((swp_clean_t spc)); @@ -761,14 +759,14 @@ swap_pager_dealloc(object) object->un_pager.swp.swp_blocks = NULL; } -static inline __pure int +static inline int swap_pager_block_index(pindex) vm_pindex_t pindex; { return (pindex / SWB_NPAGES); } -static inline __pure int +static inline int swap_pager_block_offset(pindex) vm_pindex_t pindex; { diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 25a12b0..c145486 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)vm_page.c 7.4 (Berkeley) 5/7/91 - * $Id: vm_page.c,v 1.66 1996/09/28 17:53:18 bde Exp $ + * $Id: vm_page.c,v 1.67 1996/10/06 18:27:39 dyson Exp $ */ /* @@ -159,8 +159,7 @@ static u_short vm_page_dev_bsize_chunks[] = { 0x1ff, 0x3ff, 0x7ff, 0xfff, 0x1fff, 0x3fff, 0x7fff, 0xffff }; -static inline int vm_page_hash __P((vm_object_t object, vm_pindex_t pindex)) - __pure2; +static inline int vm_page_hash __P((vm_object_t object, vm_pindex_t pindex)); static int vm_page_freechk_and_unqueue __P((vm_page_t m)); static void vm_page_free_wakeup __P((void)); |