[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 3/3] xen/common: gunzip: Fix MISRA C 2012 Rule 8.4 violation



On Wed, 22 Jun 2022, Xenia Ragiadakou wrote:
> 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@xxxxxxxxx>

Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>


> ---
>  xen/common/gunzip.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/xen/common/gunzip.c b/xen/common/gunzip.c
> index b9ecc17e44..aa16fec4bb 100644
> --- a/xen/common/gunzip.c
> +++ b/xen/common/gunzip.c
> @@ -1,4 +1,5 @@
>  #include <xen/errno.h>
> +#include <xen/gunzip.h>
>  #include <xen/init.h>
>  #include <xen/lib.h>
>  #include <xen/mm.h>
> -- 
> 2.34.1
> 



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.