[PATCH] node_device: fix missing return from function nodedevRegister

Julio Faracco jcfaracco at gmail.com
Tue Oct 25 03:00:37 UTC 2022


Em seg., 24 de out. de 2022 às 20:09, <jcfaracco at gmail.com> escreveu:
>
> From: Julio Faracco <jcfaracco at gmail.com>

My apologies folks. I simply configured a new machine today and I
forgot to remove some predefined settings I have.
If someone could suppress this section I would be glad. :-)

>
> The function nodedevRegister() (or all register functions) requires an
> integer as a return. That function is not returning a value when UDEV is
> not set. This commit just adds a generic return for that specific case.
>
> Signed-off-by: Julio Faracco <jcfaracco at gmail.com>
> ---
>  src/node_device/node_device_driver.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/node_device/node_device_driver.c b/src/node_device/node_device_driver.c
> index 8e93b0dd6f..4d51851cfd 100644
> --- a/src/node_device/node_device_driver.c
> +++ b/src/node_device/node_device_driver.c
> @@ -1584,6 +1584,8 @@ nodedevRegister(void)
>  {
>  #ifdef WITH_UDEV
>      return udevNodeRegister();
> +#else
> +    return 0;
>  #endif
>  }
>
> --
> 2.37.3
>



More information about the libvir-list mailing list