Re: [PATCH] powerpc/kexec: Fix build failure from uninitialised variable

2022-08-09 Thread Christophe Leroy
Le 09/08/2022 à 07:45, Russell Currey a écrit : > clang 14 won't build because ret is uninitialised and can be returned if > both prop and fdtprop are NULL. > > Fixes: b1fc44eaa9ba ("pseries/iommu/ddw: Fix kdump to work in absence of > ibm,dma-window") > Signed-off-by: Russell Currey > --- >

[PATCH] powerpc/kexec: Fix build failure from uninitialised variable

2022-08-08 Thread Russell Currey
clang 14 won't build because ret is uninitialised and can be returned if both prop and fdtprop are NULL. Fixes: b1fc44eaa9ba ("pseries/iommu/ddw: Fix kdump to work in absence of ibm,dma-window") Signed-off-by: Russell Currey --- Not sure what should be returned here, EINVAL seemed reasonable