]> www.infradead.org Git - mtd-utils.git/commit
Make sure ubi-media structures are visible for libubigen
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Thu, 24 Aug 2023 08:02:59 +0000 (10:02 +0200)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Thu, 24 Aug 2023 08:02:59 +0000 (10:02 +0200)
commitdfae7f60dfb577031175848b0dbf5d12ff1ebbc3
treec93fbf4405770e7e9349140f359f1af808f19859
parentfe76249289ac63acec462a649aa5268a7c21ba6d
Make sure ubi-media structures are visible for libubigen

The libubigen.h header relies on external declarations in ubi-media.h.
While not technically needed, it generates warnings in mtdinfo.c if
those are not visible. All other places where libubigen is used include
the header first. This is primarily to silence compiler warnings related
to the missing declrations.

Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
ubi-utils/mtdinfo.c