Re: [libvirt PATCH] conf: split out virDomainFeaturesDefParse

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

 



On Tue, Apr 21, 2020 at 19:00:31 +0200, Ján Tomko wrote:
> The virDomainDefParseXML function has grown so large it broke the build:
> ../../src/conf/domain_conf.c:20362:1: error: stack frame size of 4168 bytes
> in function 'virDomainDefParseXML' [-Werror,-Wframe-larger-than=]
> 
> Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
> ---
> Technically a build breaker fix. I'm sure I will regret not having it
> pushed as such tomorrow.
> 
> Formatted with patience.
> 
>  src/conf/domain_conf.c | 965 +++++++++++++++++++++--------------------
>  1 file changed, 492 insertions(+), 473 deletions(-)
> 
> diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
> index 9f3362c934..d9c4b487a8 100644
> --- a/src/conf/domain_conf.c
> +++ b/src/conf/domain_conf.c
> @@ -19181,6 +19181,496 @@ virDomainResourceDefParse(xmlNodePtr node,
>      return NULL;
>  }
>  
> +
> +static int virDomainFeaturesDefParse(virDomainDefPtr def,
> +                                     xmlXPathContextPtr ctxt)

Please format the header as we do normally.

> +{
> +    g_autofree xmlNodePtr *nodes = NULL;
> +    g_autofree char *tmp = NULL;
> +    xmlNodePtr node = NULL;
> +    int n, gic_version;

One definition per line.


Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux