xref: /freebsd/sys/contrib/zstd/lib/freebsd/zstd_kmalloc.c (revision c6879c6c14eedbd060ba588a3129a6c60ebbe783)
1d3692a4dSConrad Meyer /*-
2d3692a4dSConrad Meyer  * Copyright (c) 2016-2017 Allan Jude <allanjude@freebsd.org>
3d3692a4dSConrad Meyer  * All rights reserved.
4d3692a4dSConrad Meyer  *
5d3692a4dSConrad Meyer  * Redistribution and use in source and binary forms, with or without
6d3692a4dSConrad Meyer  * modification, are permitted provided that the following conditions
7d3692a4dSConrad Meyer  * are met:
8d3692a4dSConrad Meyer  * 1. Redistributions of source code must retain the above copyright
9d3692a4dSConrad Meyer  *    notice, this list of conditions and the following disclaimer.
10d3692a4dSConrad Meyer  * 2. Redistributions in binary form must reproduce the above copyright
11d3692a4dSConrad Meyer  *    notice, this list of conditions and the following disclaimer in the
12d3692a4dSConrad Meyer  *    documentation and/or other materials provided with the distribution.
13d3692a4dSConrad Meyer  *
14d3692a4dSConrad Meyer  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15d3692a4dSConrad Meyer  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16d3692a4dSConrad Meyer  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17d3692a4dSConrad Meyer  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18d3692a4dSConrad Meyer  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19d3692a4dSConrad Meyer  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20d3692a4dSConrad Meyer  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21d3692a4dSConrad Meyer  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22d3692a4dSConrad Meyer  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23d3692a4dSConrad Meyer  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24d3692a4dSConrad Meyer  * SUCH DAMAGE.
25d3692a4dSConrad Meyer  *
26d3692a4dSConrad Meyer  * $FreeBSD$
27d3692a4dSConrad Meyer  */
28d3692a4dSConrad Meyer 
29d3692a4dSConrad Meyer #include <sys/param.h>
30d3692a4dSConrad Meyer #include <sys/kernel.h>
31d3692a4dSConrad Meyer #include <sys/malloc.h>
32d3692a4dSConrad Meyer 
33d3692a4dSConrad Meyer MALLOC_DEFINE(M_ZSTD, "zstd", "ZSTD Compressor");
34*0f743729SConrad Meyer 
35*0f743729SConrad Meyer /*
36*0f743729SConrad Meyer  * Build zstd lib/common/debug.c (single extern variable) while avoiding
37*0f743729SConrad Meyer  * conflict with Xen's debug.c in objdir.
38*0f743729SConrad Meyer  */
39*0f743729SConrad Meyer #include "debug.c"
40