Re: [PATCH v3] virfile: fix cast-align error

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

 



On 10/10/2018 10:04 AM, Bjoern Walk wrote:
> From: Marc Hartmayer <mhartmay@xxxxxxxxxxxxx>
> 
> On s390x the struct member f_type of statsfs is hard coded to 'unsigned
> int'. Change virFileIsSharedFixFUSE() to take a 'long long int' and use
> a temporary to avoid pointer-casting.
> 
> This fixes the following error:
> ../../src/util/virfile.c:3578:38: error: cast increases required alignment of target type [-Werror=cast-align]
>          virFileIsSharedFixFUSE(path, (long *) &sb.f_type);
> 
> Signed-off-by: Marc Hartmayer <mhartmay@xxxxxxxxxxxxx>
> Signed-off-by: Bjoern Walk <bwalk@xxxxxxxxxxxxx>
> ---
>  src/util/virfile.c | 23 +++++++++++++----------
>  1 file changed, 13 insertions(+), 10 deletions(-)

ACKed and pushed.

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[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