svn commit: r271243 - head/sys/vm
Peter Wemm
peter at wemm.org
Mon Sep 8 02:15:02 UTC 2014
On Monday, September 08, 2014 12:19:04 AM Alan Cox wrote:
> Log:
> Make two functions static and eliminate an unused #define.
Unfortunately, the code (and compiler) disagrees..
> @@ -1504,7 +1507,7 @@ again:
> * possibly extended). When merging, this routine may delete one or
> * both neighbors.
> */
> -void
> +static void
> vm_map_simplify_entry(vm_map_t map, vm_map_entry_t entry)
> {
> vm_map_entry_t next, prev;
sys/security/mac/mac_process.c:366:4: error: implicit declaration of function
'vm_map_simplify_entry' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
vm_map_simplify_entry(map, vme);
The code in question:
static void
mac_proc_vm_revoke_recurse(struct thread *td, struct ucred *cred,
struct vm_map *map)
{
vm_map_entry_t vme;
...
vm_map_simplify_entry(map, vme);
^^^^^^^^^^^^^^^^^^^^^^
}
}
vm_map_unlock(map);
}
--
Peter Wemm - peter at wemm.org; peter at FreeBSD.org; peter at yahoo-inc.com; KI6FJV
UTF-8: for when a ' or ... just won\342\200\231t do\342\200\246
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20140907/19c90d5e/attachment.sig>
More information about the svn-src-all
mailing list