svn commit: r338252 - head/sys/sys
Mark Johnston
markj at FreeBSD.org
Thu Aug 23 15:01:28 UTC 2018
Author: markj
Date: Thu Aug 23 15:01:27 2018
New Revision: 338252
URL: https://svnweb.freebsd.org/changeset/base/338252
Log:
Remove a redundant #ifdef _KERNEL.
Submitted by: Sebastian Huber <sebastian.huber at embedded-brains.de>
MFC after: 3 days
Modified:
head/sys/sys/malloc.h
Modified: head/sys/sys/malloc.h
==============================================================================
--- head/sys/sys/malloc.h Thu Aug 23 14:58:19 2018 (r338251)
+++ head/sys/sys/malloc.h Thu Aug 23 15:01:27 2018 (r338252)
@@ -215,7 +215,6 @@ void *malloc(size_t size, struct malloc_type *type, in
* an inline function variant ended up being compiled to a mere malloc call
* regardless of argument. gcc generates expected code (like the above).
*/
-#ifdef _KERNEL
#define malloc(size, type, flags) ({ \
void *_malloc_item; \
size_t _size = (size); \
@@ -230,7 +229,6 @@ void *malloc(size_t size, struct malloc_type *type, in
} \
_malloc_item; \
})
-#endif
void *malloc_domain(size_t size, struct malloc_type *type, int domain,
int flags) __malloc_like __result_use_check __alloc_size(1);
More information about the svn-src-all
mailing list