diff options
Diffstat (limited to 'drivers/base/devres.c')
-rw-r--r-- | drivers/base/devres.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/base/devres.c b/drivers/base/devres.c index 4aaf00d2098b..e038e2b3b7ea 100644 --- a/drivers/base/devres.c +++ b/drivers/base/devres.c | |||
@@ -26,8 +26,14 @@ struct devres_node { | |||
26 | 26 | ||
27 | struct devres { | 27 | struct devres { |
28 | struct devres_node node; | 28 | struct devres_node node; |
29 | /* -- 3 pointers */ | 29 | /* |
30 | unsigned long long data[]; /* guarantee ull alignment */ | 30 | * Some archs want to perform DMA into kmalloc caches |
31 | * and need a guaranteed alignment larger than | ||
32 | * the alignment of a 64-bit integer. | ||
33 | * Thus we use ARCH_KMALLOC_MINALIGN here and get exactly the same | ||
34 | * buffer alignment as if it was allocated by plain kmalloc(). | ||
35 | */ | ||
36 | u8 __aligned(ARCH_KMALLOC_MINALIGN) data[]; | ||
31 | }; | 37 | }; |
32 | 38 | ||
33 | struct devres_group { | 39 | struct devres_group { |