2 * Copyright (c) 2015 Google, Inc
4 * SPDX-License-Identifier: GPL-2.0+
11 * ARCH_DMA_MINALIGN is defined in asm/cache.h for each architecture. It
12 * is used to align DMA buffers.
15 #include <asm/cache.h>
19 static inline void *malloc_cache_aligned(size_t size)
21 return memalign(ARCH_DMA_MINALIGN, ALIGN(size, ARCH_DMA_MINALIGN));
25 #endif /* __ALIGNMEM_H */