1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00
openmptcprouter/root/target/linux/bcm27xx/patches-5.15/950-0313-bcm2708_fb-Fix-a-build-warning.patch

23 lines
809 B
Diff
Raw Normal View History

2022-04-22 15:00:47 +00:00
From 53d775ab99b36f47faf49d30cbc58742a3ce8d08 Mon Sep 17 00:00:00 2001
2021-11-24 17:32:01 +00:00
From: Phil Elwell <phil@raspberrypi.com>
Date: Tue, 27 Oct 2020 12:12:22 +0000
2022-04-22 15:00:47 +00:00
Subject: [PATCH 313/828] bcm2708_fb: Fix a build warning
2021-11-24 17:32:01 +00:00
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
drivers/video/fbdev/bcm2708_fb.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/drivers/video/fbdev/bcm2708_fb.c
+++ b/drivers/video/fbdev/bcm2708_fb.c
2022-04-22 15:00:47 +00:00
@@ -693,7 +693,8 @@ static long vc_mem_copy(struct bcm2708_f
2021-11-24 17:32:01 +00:00
u8 *q = (u8 *)ioparam->dst + offset;
dma_memcpy(fb, bus_addr,
- INTALIAS_L1L2_NONALLOCATING((dma_addr_t)p), size);
+ INTALIAS_L1L2_NONALLOCATING((u32)(uintptr_t)p),
+ size);
if (copy_to_user(q, buf, s) != 0) {
pr_err("[%s]: failed to copy-to-user\n", __func__);
rc = -EFAULT;