// SPDX-License-Identifier: GPL-2.0-or-later // zstd's allocator hooks. The kernel decoder is a static context in a fixed // workspace (kernel/scff/scff.c), so nothing allocates: these exist only for // code paths that are compiled in and never taken. #ifndef SCFF_COMPAT_STDLIB_H #define SCFF_COMPAT_STDLIB_H #include static inline void *malloc(size_t n) { (void)n; return 0; } static inline void *calloc(size_t n, size_t s) { (void)n; (void)s; return 0; } static inline void free(void *p) { (void)p; } #endif