Re: [PATCH] virhostcpu: Fix build with clang and newest kernel headers

2022-08-23 Thread Peter Krempa
On Tue, Aug 23, 2022 at 16:38:46 +0200, Michal Prívozník wrote: > On 8/23/22 16:15, Peter Krempa wrote: > > The most recent environment e.g. present in our Fedora Rawhide builds > > fail to build the tree with clang with the following error: > > > > ../src/util/virhostcpu.c:1291:25: error: field '

Re: [PATCH] virhostcpu: Fix build with clang and newest kernel headers

2022-08-23 Thread Jiri Denemark
On Tue, Aug 23, 2022 at 15:42:38 +0100, Daniel P. Berrangé wrote: > On Tue, Aug 23, 2022 at 04:15:54PM +0200, Peter Krempa wrote: > > The most recent environment e.g. present in our Fedora Rawhide builds > > fail to build the tree with clang with the following error: > > > > ../src/util/virhostcpu

Re: [PATCH] virhostcpu: Fix build with clang and newest kernel headers

2022-08-23 Thread Daniel P . Berrangé
On Tue, Aug 23, 2022 at 04:15:54PM +0200, Peter Krempa wrote: > The most recent environment e.g. present in our Fedora Rawhide builds > fail to build the tree with clang with the following error: > > ../src/util/virhostcpu.c:1291:25: error: field 'header' with variable sized > type 'struct kvm_ms

Re: [PATCH] virhostcpu: Fix build with clang and newest kernel headers

2022-08-23 Thread Michal Prívozník
On 8/23/22 16:15, Peter Krempa wrote: > The most recent environment e.g. present in our Fedora Rawhide builds > fail to build the tree with clang with the following error: > > ../src/util/virhostcpu.c:1291:25: error: field 'header' with variable sized > type 'struct kvm_msrs' not at the end of a

Re: [PATCH] virhostcpu: Fix build with clang and newest kernel headers

2022-08-23 Thread Jiri Denemark
On Tue, Aug 23, 2022 at 16:15:54 +0200, Peter Krempa wrote: > The most recent environment e.g. present in our Fedora Rawhide builds > fail to build the tree with clang with the following error: > > ../src/util/virhostcpu.c:1291:25: error: field 'header' with variable sized > type 'struct kvm_msrs

[PATCH] virhostcpu: Fix build with clang and newest kernel headers

2022-08-23 Thread Peter Krempa
The most recent environment e.g. present in our Fedora Rawhide builds fail to build the tree with clang with the following error: ../src/util/virhostcpu.c:1291:25: error: field 'header' with variable sized type 'struct kvm_msrs' not at the end of a struct or class is a GNU extension [-Werror,-Wg