Index: sys/vm/vm_map.c =================================================================== --- sys/vm/vm_map.c +++ sys/vm/vm_map.c @@ -2428,19 +2428,6 @@ return (entry); } -/* - * vm_map_clip_end: [ internal use only ] - * - * Asserts that the given entry ends at or before - * the specified address; if necessary, - * it splits the entry into two. - */ -#define vm_map_clip_end(map, entry, endaddr) \ -{ \ - if ((endaddr) < (entry->end)) \ - _vm_map_clip_end((map), (entry), (endaddr)); \ -} - /* * This routine is called only when it is known that * the entry must be split. @@ -2464,6 +2451,20 @@ vm_map_entry_link(map, new_entry); } +/* + * vm_map_clip_end: [ internal use only ] + * + * Asserts that the given entry ends at or before + * the specified address; if necessary, + * it splits the entry into two. + */ +static inline void +vm_map_clip_end(vm_map_t map, vm_map_entry_t entry, vm_offset_t endaddr) +{ + if (endaddr < entry->end) + _vm_map_clip_end(map, entry, endaddr); +} + /* * vm_map_submap: [ kernel use only ] *