From: Maya Nakamura Date: Fri, 1 Mar 2019 06:56:24 +0000 (+0000) Subject: PCI: hv: Add __aligned(8) to struct retarget_msi_interrupt X-Git-Tag: v5.4.17~4028^2~3^2~2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6ae91579061c25f70e4301619ffd16e1b6b5defb;p=arm%2Flinux.git PCI: hv: Add __aligned(8) to struct retarget_msi_interrupt Because Hyper-V requires that hypercall arguments be aligned on an 8 byte boundary, add __aligned(8) to struct retarget_msi_interrupt. Link: https://lore.kernel.org/lkml/87k1hlqlby.fsf@vitty.brq.redhat.com/ Signed-off-by: Maya Nakamura Signed-off-by: Lorenzo Pieralisi --- diff --git a/drivers/pci/controller/pci-hyperv.c b/drivers/pci/controller/pci-hyperv.c index 9ba4d12c179c..73862eef09ec 100644 --- a/drivers/pci/controller/pci-hyperv.c +++ b/drivers/pci/controller/pci-hyperv.c @@ -420,7 +420,7 @@ struct retarget_msi_interrupt { struct hv_interrupt_entry int_entry; u64 reserved2; struct hv_device_interrupt_target int_target; -} __packed; +} __packed __aligned(8); /* * Driver specific state.