X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/e2fac8b15b12a7979f72090454d850e612fc5b13..b0d623f7f2ae71ed96e60569f61f9a9a27016e80:/bsd/kern/mcache.c?ds=sidebyside diff --git a/bsd/kern/mcache.c b/bsd/kern/mcache.c index c8912286e..14416f34a 100644 --- a/bsd/kern/mcache.c +++ b/bsd/kern/mcache.c @@ -99,7 +99,7 @@ #define MCACHE_LOCK_TRY(l) lck_mtx_try_lock(l) /* This should be in a header file */ -#define atomic_add_32(a, n) ((void) OSAddAtomic(n, (volatile SInt32 *)a)) +#define atomic_add_32(a, n) ((void) OSAddAtomic(n, a)) static int ncpu; static lck_mtx_t *mcache_llock; @@ -1499,7 +1499,7 @@ mcache_audit_free_verify_set(mcache_audit_t *mca, void *base, size_t offset, ((mcache_obj_t *)addr)->obj_next = next; } -#undef panic(...) +#undef panic __private_extern__ char * mcache_dump_mca(mcache_audit_t *mca)