bcm27xx: add linux 5.4 support
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0331-vchiq_2835_arm-suppress-warning.patch
1 From a822f97a094991b08a50352355b0a376086b46c4 Mon Sep 17 00:00:00 2001
2 From: Matteo Croce <mcroce@redhat.com>
3 Date: Sun, 6 Oct 2019 03:23:15 +0200
4 Subject: [PATCH] vchiq_2835_arm: suppress warning
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Suppress the following warning by casting the pointer to and uintptr_t
10 before void*:
11
12 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c: In function ‘vchiq_prepare_bulk_data’:
13 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c:260:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
14 bulk->data = (void *)VC_SAFE(pagelistinfo->dma_addr);
15 ^
16
17 Signed-off-by: Matteo Croce <mcroce@redhat.com>
18 ---
19 .../staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c
23 +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c
24 @@ -255,7 +255,7 @@ vchiq_prepare_bulk_data(struct vchiq_bul
25 if (!pagelistinfo)
26 return VCHIQ_ERROR;
27
28 - bulk->data = (void *)VC_SAFE(pagelistinfo->dma_addr);
29 + bulk->data = (void *)(uintptr_t)VC_SAFE(pagelistinfo->dma_addr);
30
31 /*
32 * Store the pagelistinfo address in remote_data,