--- zzzz-none-000/linux-4.4.271/drivers/mtd/nand/diskonchip.c 2021-06-03 06:22:09.000000000 +0000 +++ dakota-7530ac-750/linux-4.4.271/drivers/mtd/nand/diskonchip.c 2023-01-11 09:25:42.000000000 +0000 @@ -798,7 +798,7 @@ } } -static int doc200x_block_bad(struct mtd_info *mtd, loff_t ofs, int getchip) +static int doc200x_block_bad(struct mtd_info *mtd, loff_t ofs) { /* This is our last resort if we couldn't find or create a BBT. Just pretend all blocks are good. */