]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
fbdev: atyfb: Remove unused fb_list
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 30 Mar 2026 09:44:59 +0000 (11:44 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 31 Mar 2026 14:39:47 +0000 (16:39 +0200)
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>
drivers/video/fbdev/aty/atyfb_base.c

index d5e107730a4d75dd8047d9b17f50f2c7cb8226aa..9fc5af09f86c4df209e53af47fd95a19d49b919a 100644 (file)
@@ -2324,8 +2324,6 @@ static void aty_calc_mem_refresh(struct atyfb_par *par, int xclk)
  * Initialisation
  */
 
-static struct fb_info *fb_list = NULL;
-
 #if defined(__i386__) && defined(CONFIG_FB_ATY_GENERIC_LCD)
 static int atyfb_get_timings_from_lcd(struct atyfb_par *par,
                                      struct fb_var_screeninfo *var)
@@ -2758,8 +2756,6 @@ static int aty_init(struct fb_info *info)
 #endif
        }
 
-       fb_list = info;
-
        PRINTKI("fb%d: %s frame buffer device on %s\n",
                info->node, info->fix.id, par->bus_type == ISA ? "ISA" : "PCI");
        return 0;