Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fbdev: au1100fb: Mark several local functions as static

This fixes several (fatal) compiler warnings à la

drivers/video/fbdev/au1100fb.c:530:6: error: no previous prototype for ‘au1100fb_drv_remove’ [-Werror=missing-prototypes]
523 | void au1100fb_drv_remove(struct platform_device *dev)
| ^~~~~~~~~~~~~~~~~~~

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Signed-off-by: Helge Deller <deller@gmx.de>

authored by

Uwe Kleine-König and committed by
Helge Deller
2bb53005 7939cecd

+7 -6
+7 -6
drivers/video/fbdev/au1100fb.c
··· 120 120 * Set hardware with var settings. This will enable the controller with a specific 121 121 * mode, normally validated with the fb_check_var method 122 122 */ 123 - int au1100fb_setmode(struct au1100fb_device *fbdev) 123 + static int au1100fb_setmode(struct au1100fb_device *fbdev) 124 124 { 125 125 struct fb_info *info; 126 126 u32 words; ··· 219 219 /* fb_setcolreg 220 220 * Set color in LCD palette. 221 221 */ 222 - int au1100fb_fb_setcolreg(unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned transp, struct fb_info *fbi) 222 + static int au1100fb_fb_setcolreg(unsigned regno, unsigned red, unsigned green, unsigned blue, 223 + unsigned transp, struct fb_info *fbi) 223 224 { 224 225 struct au1100fb_device *fbdev; 225 226 u32 *palette; ··· 279 278 /* fb_pan_display 280 279 * Pan display in x and/or y as specified 281 280 */ 282 - int au1100fb_fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *fbi) 281 + static int au1100fb_fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *fbi) 283 282 { 284 283 struct au1100fb_device *fbdev; 285 284 int dy; ··· 326 325 * Map video memory in user space. We don't use the generic fb_mmap method mainly 327 326 * to allow the use of the TLB streaming flag (CCA=6) 328 327 */ 329 - int au1100fb_fb_mmap(struct fb_info *fbi, struct vm_area_struct *vma) 328 + static int au1100fb_fb_mmap(struct fb_info *fbi, struct vm_area_struct *vma) 330 329 { 331 330 struct au1100fb_device *fbdev = to_au1100fb_device(fbi); 332 331 ··· 518 517 return -ENODEV; 519 518 } 520 519 521 - void au1100fb_drv_remove(struct platform_device *dev) 520 + static void au1100fb_drv_remove(struct platform_device *dev) 522 521 { 523 522 struct au1100fb_device *fbdev = NULL; 524 523 ··· 558 557 return 0; 559 558 } 560 559 561 - int au1100fb_drv_resume(struct platform_device *dev) 560 + static int au1100fb_drv_resume(struct platform_device *dev) 562 561 { 563 562 struct au1100fb_device *fbdev = platform_get_drvdata(dev); 564 563 int ret;