diff options
-rw-r--r-- | arch/s390/include/asm/pci.h | 2 | ||||
-rw-r--r-- | arch/s390/pci/pci.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/arch/s390/include/asm/pci.h b/arch/s390/include/asm/pci.h index dc763eae7c49..f833082d9167 100644 --- a/arch/s390/include/asm/pci.h +++ b/arch/s390/include/asm/pci.h | |||
@@ -45,7 +45,7 @@ struct zpci_fmb { | |||
45 | u64 rpcit_ops; | 45 | u64 rpcit_ops; |
46 | u64 dma_rbytes; | 46 | u64 dma_rbytes; |
47 | u64 dma_wbytes; | 47 | u64 dma_wbytes; |
48 | } __packed __aligned(16); | 48 | } __packed __aligned(64); |
49 | 49 | ||
50 | enum zpci_state { | 50 | enum zpci_state { |
51 | ZPCI_FN_STATE_RESERVED, | 51 | ZPCI_FN_STATE_RESERVED, |
diff --git a/arch/s390/pci/pci.c b/arch/s390/pci/pci.c index f76d01e69fb8..9fd59a7cfcd3 100644 --- a/arch/s390/pci/pci.c +++ b/arch/s390/pci/pci.c | |||
@@ -860,8 +860,11 @@ static inline int barsize(u8 size) | |||
860 | 860 | ||
861 | static int zpci_mem_init(void) | 861 | static int zpci_mem_init(void) |
862 | { | 862 | { |
863 | BUILD_BUG_ON(!is_power_of_2(__alignof__(struct zpci_fmb)) || | ||
864 | __alignof__(struct zpci_fmb) < sizeof(struct zpci_fmb)); | ||
865 | |||
863 | zdev_fmb_cache = kmem_cache_create("PCI_FMB_cache", sizeof(struct zpci_fmb), | 866 | zdev_fmb_cache = kmem_cache_create("PCI_FMB_cache", sizeof(struct zpci_fmb), |
864 | 16, 0, NULL); | 867 | __alignof__(struct zpci_fmb), 0, NULL); |
865 | if (!zdev_fmb_cache) | 868 | if (!zdev_fmb_cache) |
866 | goto error_fmb; | 869 | goto error_fmb; |
867 | 870 | ||