xen/common: gunzip: Fix MISRA C 2012 Rule 8.4 violation
authorXenia Ragiadakou <burzalodowa@gmail.com>
Wed, 22 Jun 2022 15:15:14 +0000 (18:15 +0300)
committerJulien Grall <jgrall@amazon.com>
Thu, 23 Jun 2022 18:46:27 +0000 (19:46 +0100)
Include header <xen/gunzip.h> so that the declarations of functions gzip_check()
and perform_gunzip(), which have external linkage, are visible before the
function definitions.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/common/gunzip.c

index b9ecc17e44932e5bee5f53b857df20aa72a8d8eb..aa16fec4bb91019fd167bce13381ff57d96d90c0 100644 (file)
@@ -1,4 +1,5 @@
 #include <xen/errno.h>
+#include <xen/gunzip.h>
 #include <xen/init.h>
 #include <xen/lib.h>
 #include <xen/mm.h>