Skip to content

Commit 2bb5300

Browse files
ukleinekhdeller
authored andcommitted
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>
1 parent 7939cec commit 2bb5300

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

drivers/video/fbdev/au1100fb.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static int au1100fb_fb_blank(int blank_mode, struct fb_info *fbi)
120120
* Set hardware with var settings. This will enable the controller with a specific
121121
* mode, normally validated with the fb_check_var method
122122
*/
123-
int au1100fb_setmode(struct au1100fb_device *fbdev)
123+
static int au1100fb_setmode(struct au1100fb_device *fbdev)
124124
{
125125
struct fb_info *info;
126126
u32 words;
@@ -219,7 +219,8 @@ int au1100fb_setmode(struct au1100fb_device *fbdev)
219219
/* fb_setcolreg
220220
* Set color in LCD palette.
221221
*/
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)
223224
{
224225
struct au1100fb_device *fbdev;
225226
u32 *palette;
@@ -278,7 +279,7 @@ int au1100fb_fb_setcolreg(unsigned regno, unsigned red, unsigned green, unsigned
278279
/* fb_pan_display
279280
* Pan display in x and/or y as specified
280281
*/
281-
int au1100fb_fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *fbi)
282+
static int au1100fb_fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *fbi)
282283
{
283284
struct au1100fb_device *fbdev;
284285
int dy;
@@ -325,7 +326,7 @@ int au1100fb_fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *fbi)
325326
* Map video memory in user space. We don't use the generic fb_mmap method mainly
326327
* to allow the use of the TLB streaming flag (CCA=6)
327328
*/
328-
int au1100fb_fb_mmap(struct fb_info *fbi, struct vm_area_struct *vma)
329+
static int au1100fb_fb_mmap(struct fb_info *fbi, struct vm_area_struct *vma)
329330
{
330331
struct au1100fb_device *fbdev = to_au1100fb_device(fbi);
331332

@@ -517,7 +518,7 @@ static int au1100fb_drv_probe(struct platform_device *dev)
517518
return -ENODEV;
518519
}
519520

520-
void au1100fb_drv_remove(struct platform_device *dev)
521+
static void au1100fb_drv_remove(struct platform_device *dev)
521522
{
522523
struct au1100fb_device *fbdev = NULL;
523524

@@ -557,7 +558,7 @@ static int au1100fb_drv_suspend(struct platform_device *dev, pm_message_t state)
557558
return 0;
558559
}
559560

560-
int au1100fb_drv_resume(struct platform_device *dev)
561+
static int au1100fb_drv_resume(struct platform_device *dev)
561562
{
562563
struct au1100fb_device *fbdev = platform_get_drvdata(dev);
563564
int ret;

0 commit comments

Comments
 (0)