--- a/fmap.h.orig 2021-06-18 08:53:48.676566571 -0400 +++ b/fmap.h 2021-06-18 08:54:48.235790701 -0400 @@ -64,6 +64,8 @@ struct fmap_area areas[]; } __attribute__((packed)); +struct flashctx; + int fmap_read_from_buffer(struct fmap **fmap_out, const uint8_t *buf, size_t len); int fmap_read_from_rom(struct fmap **fmap_out, struct flashctx *const flashctx, size_t rom_offset, size_t len);