diff --git a/lib/scatterlist.c b/lib/scatterlist.c index 7bc2220fea80..31d25e93730b 100644 --- a/lib/scatterlist.c +++ b/lib/scatterlist.c @@ -629,7 +629,11 @@ struct scatterlist *sgl_alloc_order(unsigned long long length, nalloc++; } sgl = kmalloc_array(nalloc, sizeof(struct scatterlist), +#if defined(CONFIG_SOC_SPACEMIT_K1X) + gfp & ~(GFP_DMA | GFP_DMA32)); +#else gfp & ~GFP_DMA); +#endif if (!sgl) return NULL;