From 96bc5e994eb0a2d0d3963fc98d89857b8150bebb Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Tue, 1 Feb 2022 15:45:14 +0100 Subject: [PATCH] 5.4-stable patches added patches: mtd-rawnand-mpc5121-remove-unused-variable-in-ads5121_select_chip.patch --- ...used-variable-in-ads5121_select_chip.patch | 37 +++++++++++++++++++ queue-5.4/series | 1 + 2 files changed, 38 insertions(+) create mode 100644 queue-5.4/mtd-rawnand-mpc5121-remove-unused-variable-in-ads5121_select_chip.patch diff --git a/queue-5.4/mtd-rawnand-mpc5121-remove-unused-variable-in-ads5121_select_chip.patch b/queue-5.4/mtd-rawnand-mpc5121-remove-unused-variable-in-ads5121_select_chip.patch new file mode 100644 index 00000000000..9f4dc64ad67 --- /dev/null +++ b/queue-5.4/mtd-rawnand-mpc5121-remove-unused-variable-in-ads5121_select_chip.patch @@ -0,0 +1,37 @@ +From 33a0da68fb073360d36ce1a0e852f75fede7c21e Mon Sep 17 00:00:00 2001 +From: Geert Uytterhoeven +Date: Mon, 22 Nov 2021 14:21:38 +0100 +Subject: mtd: rawnand: mpc5121: Remove unused variable in ads5121_select_chip() +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +From: Geert Uytterhoeven + +commit 33a0da68fb073360d36ce1a0e852f75fede7c21e upstream. + +drivers/mtd/nand/raw/mpc5121_nfc.c: In function ‘ads5121_select_chip’: +drivers/mtd/nand/raw/mpc5121_nfc.c:294:19: warning: unused variable ‘mtd’ [-Wunused-variable] + 294 | struct mtd_info *mtd = nand_to_mtd(nand); + | ^~~ + +Fixes: 758b56f58b66bebc ("mtd: rawnand: Pass a nand_chip object to chip->select_chip()") +Signed-off-by: Geert Uytterhoeven +Signed-off-by: Miquel Raynal +Link: https://lore.kernel.org/linux-mtd/20211122132138.3899138-1-geert@linux-m68k.org +Cc: Guenter Roeck +Signed-off-by: Greg Kroah-Hartman +--- + drivers/mtd/nand/raw/mpc5121_nfc.c | 1 - + 1 file changed, 1 deletion(-) + +--- a/drivers/mtd/nand/raw/mpc5121_nfc.c ++++ b/drivers/mtd/nand/raw/mpc5121_nfc.c +@@ -290,7 +290,6 @@ static int ads5121_chipselect_init(struc + /* Control chips select signal on ADS5121 board */ + static void ads5121_select_chip(struct nand_chip *nand, int chip) + { +- struct mtd_info *mtd = nand_to_mtd(nand); + struct mpc5121_nfc_prv *prv = nand_get_controller_data(nand); + u8 v; + diff --git a/queue-5.4/series b/queue-5.4/series index add52f4ace2..3d566c60ff6 100644 --- a/queue-5.4/series +++ b/queue-5.4/series @@ -61,3 +61,4 @@ ipv4-remove-sparse-error-in-ip_neigh_gw4.patch dt-bindings-can-tcan4x5x-fix-mram-cfg-rx-fifo-config.patch fsnotify-invalidate-dcache-before-in_delete-event.patch block-fix-wrong-offset-in-bio_truncate.patch +mtd-rawnand-mpc5121-remove-unused-variable-in-ads5121_select_chip.patch -- 2.47.3