Skip to contentSkip to conversation

mtd: Add function prototype for mtd_read_oob_bf(...)

PATCH In review Tom Rini 1 participant 2 messages Jul 2, 2025 – Oct 28, 2025 Memory technology devices (MTD)

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 mtd: Add function prototype for mtd_read_oob_bf(...)

The function mtd_read_oob_bf is called by cmd/nand.c but does not have a prototype in any header. Add this to include/linux/mtd/mtd.h as that is the most logical place currently.

Fixes 1fac57720719 ("nand: Add a watch command")

---
Cc: Michael Trimarchi <[email protected]>

---
 include/linux/mtd/mtd.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/mtd/mtd.h +1 -0
index 3ffcd40807d0..1f97bc4fe116 100644
@@ -438,6 +438,7 @@ static inline int mtd_bind(struct udevice *dev, struct mtd_info **mtd)
 #endif
 
 int mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops);
+int mtd_read_oob_bf(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops);
 int mtd_write_oob(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops);
 
 int mtd_get_fact_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen,
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 5 lines · Tom Rini

The function mtd_read_oob_bf is called by cmd/nand.c but does not have a prototype in any header. Add this to include/linux/mtd/mtd.h as that is the most logical place currently.

Applied to u-boot/master, thanks!

[1/1] mtd: Add function prototype for mtd_read_oob_bf(...)

      commit: 9465ca3d4559f596b1d3f65e7b2d66f50080bdd4
Signature · 1 line
Tom