Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: ubi: eba: Fix a couple of misdocumentation issues

Fixes the following W=1 kernel build warning(s):

drivers/mtd/ubi/eba.c:1304: warning: Function parameter or member 'vidb' not described in 'ubi_eba_copy_leb'
drivers/mtd/ubi/eba.c:1304: warning: Excess function parameter 'vid_hdr' description in 'ubi_eba_copy_leb'
drivers/mtd/ubi/eba.c:1483: warning: Function parameter or member 'ai' not described in 'print_rsvd_warning'

Cc: Richard Weinberger <richard@nod.at>
Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Vignesh Raghavendra <vigneshr@ti.com>
Cc: linux-mtd@lists.infradead.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20201109182206.3037326-12-lee.jones@linaro.org

authored by

Lee Jones and committed by
Miquel Raynal
e1eb368d b6baa996

+2 -1
+2 -1
drivers/mtd/ubi/eba.c
··· 1290 1290 * @ubi: UBI device description object 1291 1291 * @from: physical eraseblock number from where to copy 1292 1292 * @to: physical eraseblock number where to copy 1293 - * @vid_hdr: VID header of the @from physical eraseblock 1293 + * @vidb: data structure from where the VID header is derived 1294 1294 * 1295 1295 * This function copies logical eraseblock from physical eraseblock @from to 1296 1296 * physical eraseblock @to. The @vid_hdr buffer may be changed by this ··· 1463 1463 /** 1464 1464 * print_rsvd_warning - warn about not having enough reserved PEBs. 1465 1465 * @ubi: UBI device description object 1466 + * @ai: UBI attach info object 1466 1467 * 1467 1468 * This is a helper function for 'ubi_eba_init()' which is called when UBI 1468 1469 * cannot reserve enough PEBs for bad block handling. This function makes a