Skip to contentSkip to conversation

mtd: nand: Fix a docs build warning

PATCH Applied Jonathan Corbet 2 participants 2 messages Jul 30, 2017 – Jul 31, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: nand: Fix a docs build warning

Commit 0b4773fd1649 (mtd: nand: Drop unused cached programming support) removed the "cached" parameter from nand_write_page(), but did not update the kerneldoc comments, creating this docs build warning:

./drivers/mtd/nand/nand_base.c:2751: warning: Excess function parameter 'cached' description in 'nand_write_page'

Remove the offending line so we can have a little peace and quiet.

---
 drivers/mtd/nand/nand_base.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/nand/nand_base.c +0 -1
index 5fa5ddc94834..ba57d8970f27 100644
@@ -2741,7 +2741,6 @@ static int nand_write_page_syndrome(struct mtd_info *mtd,
  * @buf: the data to write
  * @oob_required: must write chip->oob_poi to OOB
  * @page: page number to write
- * @cached: cached programming
  * @raw: use _raw version of write_page
  */
 static int nand_write_page(struct mtd_info *mtd, struct nand_chip *chip,
Signature · 1 line
2.13.3
#1 lore raw
Quoted 7 lines · On Sun, 30 Jul 2017 16:18:03 -0600 Jonathan Corbet <[email protected]> wrote:

Commit 0b4773fd1649 (mtd: nand: Drop unused cached programming support) removed the "cached" parameter from nand_write_page(), but did not update the kerneldoc comments, creating this docs build warning:

./drivers/mtd/nand/nand_base.c:2751: warning: Excess function parameter 'cached' description in 'nand_write_page'

Remove the offending line so we can have a little peace and quiet.

Applied to nand/fixes.

Thanks,

Boris

Quoted 18 lines
---
 drivers/mtd/nand/nand_base.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/nand/nand_base.c +0 -1
index 5fa5ddc94834..ba57d8970f27 100644
@@ -2741,7 +2741,6 @@ static int nand_write_page_syndrome(struct mtd_info *mtd,
  * @buf: the data to write
  * @oob_required: must write chip->oob_poi to OOB
  * @page: page number to write
- * @cached: cached programming
  * @raw: use _raw version of write_page
  */
 static int nand_write_page(struct mtd_info *mtd, struct nand_chip *chip,