Commit d7aca8a7 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'driver-core-4.20-rc5' of...

Merge tag 'driver-core-4.20-rc5' of git://

Pull driver core fix from Greg KH:
 "Here is a single driver core fix for 4.20-rc5

  It resolves an issue with the data alignment in 'struct devres' for
  the ARC platform. The full details are in the commit changelog, but
  the short summary is the change is a single line:

	-       unsigned long long              data[]; /* guarantee ull alignment */
	+       u8 __aligned(ARCH_KMALLOC_MINALIGN) data[];

  This has been in linux-next for a while with no reported issues"

* tag 'driver-core-4.20-rc5' of git://
  devres: Align data[] to ARCH_KMALLOC_MINALIGN
parents cd9a0433 a66d9724
...@@ -26,8 +26,14 @@ struct devres_node { ...@@ -26,8 +26,14 @@ struct devres_node {
struct devres { struct devres {
struct devres_node node; struct devres_node node;
/* -- 3 pointers */ /*
unsigned long long data[]; /* guarantee ull alignment */ * Some archs want to perform DMA into kmalloc caches
* and need a guaranteed alignment larger than
* the alignment of a 64-bit integer.
* Thus we use ARCH_KMALLOC_MINALIGN here and get exactly the same
* buffer alignment as if it was allocated by plain kmalloc().
u8 __aligned(ARCH_KMALLOC_MINALIGN) data[];
}; };
struct devres_group { struct devres_group {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment