Re: [PATCH 23/28] kvm tools: Endian-sanitise pci.h and PCI device

Cyrill Gorcunov
2011-12-06T13:38:36Z

On Tue, Dec 06, 2011 at 03:29:00PM +0200, Pekka Enberg wrote:
> >
> >Hehe, this is because it should be rtaher defined as
> >
> >union pci_config_address {
> >struct {
> > #if __BYTE_ORDER = __LITTLE_ENDIAN
> > unsigned zeros : 2;
> > unsigned register_number : 6;
> > #else
> > ...
> > #endif
> >}
> >u32 w;
> >};
>
> Yup, that fixes it for me.
>

Good. Matt, mind to update?

Cyrill