|
@@ -860,8 +860,11 @@ static inline int barsize(u8 size)
|
|
|
|
|
|
static int zpci_mem_init(void)
|
|
|
{
|
|
|
+ BUILD_BUG_ON(!is_power_of_2(__alignof__(struct zpci_fmb)) ||
|
|
|
+ __alignof__(struct zpci_fmb) < sizeof(struct zpci_fmb));
|
|
|
+
|
|
|
zdev_fmb_cache = kmem_cache_create("PCI_FMB_cache", sizeof(struct zpci_fmb),
|
|
|
- 16, 0, NULL);
|
|
|
+ __alignof__(struct zpci_fmb), 0, NULL);
|
|
|
if (!zdev_fmb_cache)
|
|
|
goto error_fmb;
|
|
|
|