mirror of
				https://github.com/Ysurac/openmptcprouter.git
				synced 2025-03-09 15:40:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			51 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From af4a86b2b0c31dcd8d006e777b61990e11e491c2 Mon Sep 17 00:00:00 2001
 | |
| From: Dave Stevenson <dave.stevenson@raspberrypi.org>
 | |
| Date: Fri, 25 Jan 2019 17:11:39 +0000
 | |
| Subject: [PATCH 336/432] video: bcm2708_fb: Fix warnings on 64 bit builds
 | |
| 
 | |
| Fix up logging lines where the wrong format specifiers were
 | |
| being used.
 | |
| 
 | |
| Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
 | |
| ---
 | |
|  drivers/video/fbdev/bcm2708_fb.c | 10 ++++------
 | |
|  1 file changed, 4 insertions(+), 6 deletions(-)
 | |
| 
 | |
| diff --git a/drivers/video/fbdev/bcm2708_fb.c b/drivers/video/fbdev/bcm2708_fb.c
 | |
| index 929c75afd629..d6585a081523 100644
 | |
| --- a/drivers/video/fbdev/bcm2708_fb.c
 | |
| +++ b/drivers/video/fbdev/bcm2708_fb.c
 | |
| @@ -513,8 +513,8 @@ static long vc_mem_copy(struct bcm2708_fb *fb, struct fb_dmacopy *ioparam)
 | |
|  	buf = dma_alloc_coherent(fb->fb.device, PAGE_ALIGN(size), &bus_addr,
 | |
|  				 GFP_ATOMIC);
 | |
|  	if (!buf) {
 | |
| -		pr_err("[%s]: failed to dma_alloc_coherent(%d)\n",
 | |
| -				__func__, size);
 | |
| +		pr_err("[%s]: failed to dma_alloc_coherent(%zd)\n", __func__,
 | |
| +		       size);
 | |
|  		rc = -ENOMEM;
 | |
|  		goto out;
 | |
|  	}
 | |
| @@ -910,8 +910,7 @@ static int bcm2708_fb_probe(struct platform_device *dev)
 | |
|  		goto free_fb;
 | |
|  	}
 | |
|  
 | |
| -	pr_info("BCM2708FB: allocated DMA memory %08x\n",
 | |
| -	       fb->cb_handle);
 | |
| +	pr_info("BCM2708FB: allocated DMA memory %pad\n", &fb->cb_handle);
 | |
|  
 | |
|  	ret = bcm_dma_chan_alloc(BCM_DMA_FEATURE_BULK,
 | |
|  				 &fb->dma_chan_base, &fb->dma_irq);
 | |
| @@ -929,8 +928,7 @@ static int bcm2708_fb_probe(struct platform_device *dev)
 | |
|  	}
 | |
|  
 | |
|  
 | |
| -	pr_info("BCM2708FB: allocated DMA channel %d @ %p\n",
 | |
| -	       fb->dma_chan, fb->dma_chan_base);
 | |
| +	pr_info("BCM2708FB: allocated DMA channel %d\n", fb->dma_chan);
 | |
|  
 | |
|  	fb->dev = dev;
 | |
|  	fb->fb.device = &dev->dev;
 | |
| -- 
 | |
| 2.19.1
 | |
| 
 |