Skip to content

Move the ARCH_DMA_MINALIGN definition to asm/cache.h

Catalin Marinas linux-sh linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review 2 of 3 applied

Patches in v1 2 of 3 applied

#Subject and filesSizeRepliesApplied
1/3powerpc: Move the ARCH_DMA_MINALIGN definition to asm/cache.harch/powerpc/include/asm/cache.h arch/powerpc/include/asm/page_32.h+4 -40 replies
2/3microblaze: Move the ARCH_{DMA,SLAB}_MINALIGN definitions to asm/cache.harch/microblaze/include/asm/cache.h arch/microblaze/include/asm/page.h+5 -50 repliesApplied
3/3sh: Move the ARCH_DMA_MINALIGN definition to asm/cache.harch/sh/include/asm/cache.h arch/sh/include/asm/page.h+6 -60 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Move the ARCH_DMA_MINALIGN definition to asm/cache.h

Hi,

The ARCH_KMALLOC_MINALIGN reduction series defines a generic ARCH_DMA_MINALIGN in linux/cache.h:

https://lore.kernel.org/r/[email protected]/

Unfortunately, this causes a duplicate definition warning for microblaze, powerpc (32-bit only) and sh as these architectures define ARCH_DMA_MINALIGN in a different file than asm/cache.h. Move the macro to asm/cache.h to avoid this issue and also bring them in line with the other architectures.

Andrew, if the arch maintainers cc'ed are fine with such change, could you please take these three patches together with the ARCH_KMALLOC_MINALIGN series?

Thank you.

Catalin Marinas (3):
powerpc: Move the ARCH_DMA_MINALIGN definition to asm/cache.h
microblaze: Move the ARCH_{DMA,SLAB}_MINALIGN definitions to
asm/cache.h
sh: Move the ARCH_DMA_MINALIGN definition to asm/cache.h

 arch/microblaze/include/asm/cache.h | 5 +++++
 arch/microblaze/include/asm/page.h  | 5 -----
 arch/powerpc/include/asm/cache.h    | 4 ++++
 arch/powerpc/include/asm/page_32.h  | 4 ----
 arch/sh/include/asm/cache.h         | 6 ++++++
 arch/sh/include/asm/page.h          | 6 ------
 6 files changed, 15 insertions(+), 15 deletions(-)