Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Aug 2018 15:01:27 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r338252 - head/sys/sys
Message-ID:  <201808231501.w7NF1R1I068277@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808231501.w7NF1R1I068277>