armbian_build/patch/kernel/archive/spacemit-6.1/050-lib-scatterlist.patch
2024-07-01 19:15:00 +02:00

32 lines
811 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Patrick Yavitz <pyavitz@armbian.com>
Date: Fri, 21 Jun 2024 11:54:06 -0400
Subject: add spacemit patch set
source: https://gitee.com/bianbu-linux/linux-6.1
Signed-off-by: Patrick Yavitz <pyavitz@armbian.com>
---
lib/scatterlist.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/scatterlist.c b/lib/scatterlist.c
index 111111111111..222222222222 100644
--- a/lib/scatterlist.c
+++ b/lib/scatterlist.c
@@ -616,7 +616,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;
--
Armbian