From owner-freebsd-hackers@freebsd.org Thu Aug 23 11:25:42 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1CA95108A850 for ; Thu, 23 Aug 2018 11:25:42 +0000 (UTC) (envelope-from sebastian.huber@embedded-brains.de) Received: from dedi548.your-server.de (dedi548.your-server.de [85.10.215.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AAA168DEEF for ; Thu, 23 Aug 2018 11:25:41 +0000 (UTC) (envelope-from sebastian.huber@embedded-brains.de) Received: from [78.46.172.3] (helo=sslproxy06.your-server.de) by dedi548.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85_2) (envelope-from ) id 1fsnkC-0008SK-7A for freebsd-hackers@freebsd.org; Thu, 23 Aug 2018 13:25:40 +0200 Received: from [82.135.62.35] (helo=mail.embedded-brains.de) by sslproxy06.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1fsnkC-000FFz-2n for freebsd-hackers@freebsd.org; Thu, 23 Aug 2018 13:25:40 +0200 Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 122782A165C for ; Thu, 23 Aug 2018 13:25:43 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id B5UddtjW0gSG for ; Thu, 23 Aug 2018 13:25:42 +0200 (CEST) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id C32462A167F for ; Thu, 23 Aug 2018 13:25:42 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.eb.localhost Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id a6XTitnRYt1c for ; Thu, 23 Aug 2018 13:25:42 +0200 (CEST) Received: from linux-diu0.suse (unknown [192.168.96.149]) by mail.embedded-brains.de (Postfix) with ESMTP id 9F9912A165C for ; Thu, 23 Aug 2018 13:25:42 +0200 (CEST) From: Sebastian Huber To: freebsd-hackers@freebsd.org Subject: [PATCH] Remove stray #ifdef _KERNEL in Date: Thu, 23 Aug 2018 13:25:39 +0200 Message-Id: <20180823112539.20725-1-sebastian.huber@embedded-brains.de> X-Mailer: git-send-email 2.13.7 X-Authenticated-Sender: smtp-embedded@poldinet.de X-Virus-Scanned: Clear (ClamAV 0.100.1/24865/Thu Aug 23 07:52:53 2018) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2018 11:25:42 -0000 The malloc() macro definition is aready in an #ifdef _KERNEL section. --- sys/sys/malloc.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/sys/malloc.h b/sys/sys/malloc.h index 06a88822ed5..68595091a58 100644 --- a/sys/sys/malloc.h +++ b/sys/sys/malloc.h @@ -215,7 +215,6 @@ void *malloc(size_t size, struct malloc_type *type, int flags) __malloc_like * 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, int flags) __malloc_like } \ _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); -- 2.13.7