LOCAL / fbdev: bcm2708_fb: fix build warnings on 64bit build 99/149999/2
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 14 Sep 2017 02:52:35 +0000 (11:52 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 14 Sep 2017 04:24:49 +0000 (13:24 +0900)
commit7d05a8e09a0615b87060eadce9fd10ec0697b93b
tree222cdf70988927503ef95793ab4f3014712bddd6
parent3e614220dad34f1301ffb9c9e8a9dfa53c8c00f0
LOCAL / fbdev: bcm2708_fb: fix build warnings on 64bit build

There are build warnings on arm64 build. Fix following build
warnings:
   drivers/video/fbdev/bcm2708_fb.c: In function 'vc_mem_copy':
   drivers/video/fbdev/bcm2708_fb.c:507:49: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t {aka long unsigned int}' [-Wformat=]
      pr_err("[%s]: failed to dma_alloc_coherent(%d)\n",
                                                    ^
   drivers/video/fbdev/bcm2708_fb.c:516:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
      unsigned char *p = (unsigned char *)ioparam.src + offset;
                         ^
   drivers/video/fbdev/bcm2708_fb.c: In function 'bcm2708_fb_probe':
   drivers/video/fbdev/bcm2708_fb.c:844:9: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'dma_addr_t {aka long long unsigned int}' [-Wformat=]
     pr_info("BCM2708FB: allocated DMA memory %08x\n",
            ^~~~~~

This only fixes the warnings, but functionality of fb_dmacopy is
already broken on ARM64.

Change-Id: Ib9035e38c79e668f74b47139c2a39faf937226db
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/video/fbdev/bcm2708_fb.c