hulk inclusion category: bugfix bugzilla: https://atomgit.com/src-openeuler/kernel/issues/15309 -------------------------------- Commit e5d43517c4c1 ("fbdev: defio: Disconnect deferred I/O from the lifetime of struct fb_info") removed the mutex_destroy() call for fbdefio->lock. The prerequisite patch, 6cdef2ddce2b ("fb_defio: do not use deprecated page->mapping, index fields"), was intentionally excluded to avoid KABI breakage. As a result, the 'fbdefio' variable is no longer used in this context. Remove the 'fbdefio' variable declaration entirely to silence the following compiler warning: warning: unused variable 'fbdefio' [-Wunused-variable] Fixes: e5d43517c4c1 ("fbdev: defio: Disconnect deferred I/O from the lifetime of struct fb_info") Signed-off-by: Liu Kai <liukai284@huawei.com> --- drivers/video/fbdev/core/fb_defio.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/fbdev/core/fb_defio.c b/drivers/video/fbdev/core/fb_defio.c index b4ed8a79e4e9..753c36141d97 100644 --- a/drivers/video/fbdev/core/fb_defio.c +++ b/drivers/video/fbdev/core/fb_defio.c @@ -437,7 +437,6 @@ EXPORT_SYMBOL_GPL(fb_deferred_io_release); void fb_deferred_io_cleanup(struct fb_info *info) { - struct fb_deferred_io *fbdefio = info->fbdefio; struct fb_deferred_io_state *fbdefio_state = info->fbdefio_state; fb_deferred_io_lastclose(info); -- 2.34.1