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: atyfb: Remove unused fb_list

With clang and W=1:

drivers/video/fbdev/aty/atyfb_base.c:2327:24: warning: variable 'fb_list' set but not used [-Wunused-but-set-global]
2327 | static struct fb_info *fb_list = NULL;

Indeed, the last user of fb_list was removed in 2004, while the actual
linked list was removed in 2002.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202603300931.osMYxYZ7-lkp@intel.com/
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Helge Deller <deller@gmx.de>

authored by

Geert Uytterhoeven and committed by
Helge Deller
a9cdba5c caf61440

-4
-4
drivers/video/fbdev/aty/atyfb_base.c
··· 2324 2324 * Initialisation 2325 2325 */ 2326 2326 2327 - static struct fb_info *fb_list = NULL; 2328 - 2329 2327 #if defined(__i386__) && defined(CONFIG_FB_ATY_GENERIC_LCD) 2330 2328 static int atyfb_get_timings_from_lcd(struct atyfb_par *par, 2331 2329 struct fb_var_screeninfo *var) ··· 2755 2757 aty_bl_init(par); 2756 2758 #endif 2757 2759 } 2758 - 2759 - fb_list = info; 2760 2760 2761 2761 PRINTKI("fb%d: %s frame buffer device on %s\n", 2762 2762 info->node, info->fix.id, par->bus_type == ISA ? "ISA" : "PCI");