Paul Burton ae5b067594 Revert "MIPS: Don't unnecessarily include kmalloc.h into <asm/cache.h>."
Commit 296e46db0073 ("MIPS: Don't unnecessarily include kmalloc.h into
<asm/cache.h>.") claimed that the inclusion of the machine's kmalloc.h
from asm/cache.h is unnecessary, but this is not true.

Without including kmalloc.h we don't get a definition for
ARCH_DMA_MINALIGN, which means we no longer suitably align DMA. Further
to this the definition of ARCH_KMALLOC_MINALIGN provided by linux/slab.h
ends up being set to the alignment of an unsigned long long value rather
than to ARCH_DMA_MINALIGN, which means that buffers allocated using
kmalloc may no longer be safely aligned for use with DMA.

Fix this by re-adding the include of kmalloc.h in asm/cache.h. This
reverts commit 296e46db0073 ("MIPS: Don't unnecessarily include
kmalloc.h into <asm/cache.h>.")

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Fixes: 296e46db0073 ("MIPS: Don't unnecessarily include kmalloc.h into <asm/cache.h>.")
Cc: linux-mips@linux-mips.org
Cc: stable <stable@vger.kernel.org> # v4.12+
Patchwork: https://patchwork.linux-mips.org/patch/16895/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2017-08-07 12:01:17 +02:00
..
2016-04-03 12:32:09 +02:00
2016-05-28 12:35:08 +02:00
2016-04-03 12:32:09 +02:00
2014-01-22 20:19:02 +01:00
2017-03-28 16:43:25 -04:00
2015-11-12 11:35:47 +01:00
2017-06-28 12:22:39 +02:00
2017-07-05 14:06:44 +02:00
2015-05-28 15:31:53 +02:00
2014-08-26 02:18:56 +02:00
2014-05-24 00:07:01 +02:00
2016-05-28 12:35:06 +02:00
2017-06-29 02:42:26 +02:00
2015-09-03 12:08:05 +02:00
2016-05-28 12:35:07 +02:00
2017-05-18 15:39:19 -05:00
2017-06-08 14:51:58 +02:00
2016-10-04 16:13:57 +02:00
2017-03-28 16:43:25 -04:00
2014-08-02 00:06:38 +02:00
2014-01-22 20:19:02 +01:00
2016-04-03 12:32:09 +02:00
2017-01-03 16:34:42 +01:00
2017-07-11 14:13:06 +02:00
2017-06-28 12:22:39 +02:00
2017-05-27 15:38:02 -04:00
2013-09-18 17:13:58 +02:00
2016-05-09 12:00:02 +02:00