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

fbdev/atyfb: Fix 2 defined-but-not-used warnings

If CONFIG_FB_ATY_BACKLIGHT=y but CONFIG_PCI=n:

drivers/video/aty/atyfb_base.c:2272: warning: ‘aty_bl_exit’ defined but not used

If CONFIG_ATARI=y for a modular build:

drivers/video/aty/atyfb_base.c:2794: warning: ‘store_video_par’ defined but not
used

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by

Geert Uytterhoeven and committed by
Paul Mundt
d64c132f e6b8480c

+4 -6
+4 -6
drivers/video/aty/atyfb_base.c
··· 248 248 249 249 static int aty_init(struct fb_info *info); 250 250 251 - #ifdef CONFIG_ATARI 252 - static int store_video_par(char *videopar, unsigned char m64_num); 253 - #endif 254 - 255 251 static void aty_get_crtc(const struct atyfb_par *par, struct crtc *crtc); 256 252 257 253 static void aty_set_crtc(const struct atyfb_par *par, const struct crtc *crtc); ··· 2264 2268 return; 2265 2269 } 2266 2270 2271 + #ifdef CONFIG_PCI 2267 2272 static void aty_bl_exit(struct backlight_device *bd) 2268 2273 { 2269 2274 backlight_device_unregister(bd); 2270 2275 printk("aty: Backlight unloaded\n"); 2271 2276 } 2277 + #endif /* CONFIG_PCI */ 2272 2278 2273 2279 #endif /* CONFIG_FB_ATY_BACKLIGHT */ 2274 2280 ··· 2787 2789 return ret; 2788 2790 } 2789 2791 2790 - #ifdef CONFIG_ATARI 2792 + #if defined(CONFIG_ATARI) && !defined(MODULE) 2791 2793 static int __devinit store_video_par(char *video_str, unsigned char m64_num) 2792 2794 { 2793 2795 char *p; ··· 2816 2818 phys_vmembase[m64_num] = 0; 2817 2819 return -1; 2818 2820 } 2819 - #endif /* CONFIG_ATARI */ 2821 + #endif /* CONFIG_ATARI && !MODULE */ 2820 2822 2821 2823 /* 2822 2824 * Blank the display.