]> www.infradead.org Git - mtd-utils.git/commitdiff
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)
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

index 154872ded3171ec76758c6ad1b01b31664af1239..7dff0de04d0656f50d24202d28f02f460d2ab3d4 100644 (file)
@@ -30,6 +30,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <mtd/mtd-user.h>
+#include <mtd/ubi-media.h>
 
 #include <libubigen.h>
 #include <libmtd.h>