From d95d7b85caa2808380ee9591fdf9162b4da1dc18 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Mon, 10 Nov 2025 20:01:19 +0800 Subject: [PATCH] panfrost/drm-shim: Use align_uintptr instead of ALIGN for size_t input MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Yonggang Luo Reviewed-by: Timur Kristóf Acked-by: Alyssa Rosenzweig Part-of: --- src/panfrost/drm-shim/panfrost_noop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panfrost/drm-shim/panfrost_noop.c b/src/panfrost/drm-shim/panfrost_noop.c index 228123d9d81..3c06efd6822 100644 --- a/src/panfrost/drm-shim/panfrost_noop.c +++ b/src/panfrost/drm-shim/panfrost_noop.c @@ -110,7 +110,7 @@ panfrost_ioctl_create_bo(int fd, unsigned long request, void *arg) struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); struct shim_bo *bo = calloc(1, sizeof(*bo)); - size_t size = ALIGN(create->size, 4096); + size_t size = align_uintptr(create->size, 4096); drm_shim_bo_init(bo, size); @@ -237,7 +237,7 @@ panthor_ioctl_bo_create(int fd, unsigned long request, void *arg) struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); struct shim_bo *bo = calloc(1, sizeof(*bo)); - size_t size = ALIGN(bo_create->size, 4096); + size_t size = align_uintptr(bo_create->size, 4096); drm_shim_bo_init(bo, size);