From: David Oberhollenzer Date: Thu, 24 Aug 2023 08:02:59 +0000 (+0200) Subject: Make sure ubi-media structures are visible for libubigen X-Git-Tag: v2.1.6~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=dfae7f60dfb577031175848b0dbf5d12ff1ebbc3;p=mtd-utils.git 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 --- diff --git a/ubi-utils/mtdinfo.c b/ubi-utils/mtdinfo.c index 154872d..7dff0de 100644 --- a/ubi-utils/mtdinfo.c +++ b/ubi-utils/mtdinfo.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include