[rtems-libbsd commit] linux/genalloc.h: Update due to API changes

Sebastian Huber sebh at rtems.org
Tue Sep 22 08:26:49 UTC 2020


Module:    rtems-libbsd
Branch:    master
Commit:    48e33f00e4f8b89aa4884861b8a69d220c193b1e
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=48e33f00e4f8b89aa4884861b8a69d220c193b1e

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Sep 21 15:19:36 2020 +0200

linux/genalloc.h: Update due to API changes

---

 rtemsbsd/powerpc/include/linux/genalloc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rtemsbsd/powerpc/include/linux/genalloc.h b/rtemsbsd/powerpc/include/linux/genalloc.h
index 9df0e43..c7ecd7b 100644
--- a/rtemsbsd/powerpc/include/linux/genalloc.h
+++ b/rtemsbsd/powerpc/include/linux/genalloc.h
@@ -88,7 +88,7 @@ gen_pool_alloc(struct gen_pool *gp, size_t size)
 
 	chunks = (size + (1 << gp->gen_chunk_shift) - 1) >> gp->gen_chunk_shift;
 	mtx_lock(&gp->gen_lock);
-	blkno = blist_alloc(gp->gen_list, chunks);
+	blkno = blist_alloc(gp->gen_list, &chunks, chunks);
 	mtx_unlock(&gp->gen_lock);
 
 	if (blkno == SWAPBLK_NONE)



More information about the vc mailing list