This is a note to let you know that I've just added the patch titled mtd: nand: atmel_nand: remove build warning in atmel_nand_remove() to the 4.9-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: mtd-nand-atmel_nand-remove-build-warning-in.patch and it can be found in the queue-4.9 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 154da3695259f182eecda73d0f7a858475b08466 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Date: Fri, 3 Sep 2021 18:51:07 +0200 Subject: mtd: nand: atmel_nand: remove build warning in atmel_nand_remove() From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> In the 4.9.y tree, the following build warning keeps showing up: drivers/mtd/nand/atmel_nand.c:2337:19: warning: unused variable 'mtd' [-Wunused-variable] This driver was deleted / restructured in newer kernels so this is a 4.9.y patch only. Cc: Wenyou Yang <wenyou.yang@xxxxxxxxx> Cc: Josh Wu <rainyfeeling@xxxxxxxxxxx> Cc: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> Cc: Richard Weinberger <richard@xxxxxx> Cc: David Woodhouse <dwmw2@xxxxxxxxxxxxx> Cc: Brian Norris <computersforpeace@xxxxxxxxx> Cc: Marek Vasut <marek.vasut@xxxxxxxxx> Cc: Cyrille Pitchen <cyrille.pitchen@xxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/mtd/nand/atmel_nand.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/nand/atmel_nand.c @@ -2334,7 +2334,6 @@ err_nand_ioremap: static int atmel_nand_remove(struct platform_device *pdev) { struct atmel_nand_host *host = platform_get_drvdata(pdev); - struct mtd_info *mtd = nand_to_mtd(&host->nand_chip); nand_release(&host->nand_chip); Patches currently in stable-queue which might be from gregkh@xxxxxxxxxxxxxxxxxxx are queue-4.9/ext4-fix-race-writing-to-an-inline_data-file-while-its-xattrs-are-changing.patch queue-4.9/mtd-nand-atmel_nand-remove-build-warning-in.patch