[PATCH] mtd: add missing prototype for mtd_read_oob_bf()
    Shiji Yang 
    yangshiji66 at outlook.com
       
    Fri Oct 17 15:51:03 CEST 2025
    
    
  
This patch fixes the following build error:
cmd/nand.c: In function 'nand_watch_bf':
cmd/nand.c:248:23: error: implicit declaration of function 'mtd_read_oob_bf'; did you mean 'mtd_read_oob'? [-Wimplicit-function-declaration]
  248 |                 ret = mtd_read_oob_bf(mtd, addr, &ops);
      |                       ^~~~~~~~~~~~~~~
      |                       mtd_read_oob
Fixes: 1fac57720719 ("nand: Add a watch command")
Signed-off-by: Shiji Yang <yangshiji66 at outlook.com>
---
 include/linux/mtd/mtd.h | 1 +
 1 file changed, 1 insertion(+)
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 3ffcd40807d..1f97bc4fe11 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -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,
-- 
2.50.0
    
    
More information about the U-Boot
mailing list