Skip to contentSkip to conversation

sh-move-the-arch_dma_minalign-definition-to-asm-cacheh.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jun 19, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: sh: move the ARCH_DMA_MINALIGN definition to asm/cache.h
has been removed from the -mm tree. Its filename was
sh-move-the-arch_dma_minalign-definition-to-asm-cacheh.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Catalin Marinas <[email protected]>
Subject: sh: move the ARCH_DMA_MINALIGN definition to asm/cache.h
Date: Tue, 13 Jun 2023 16:52:45 +0100

The sh architecture defines ARCH_DMA_MINALIGN in asm/page.h. Move it to asm/cache.h to allow a generic ARCH_DMA_MINALIGN definition in linux/cache.h without redefine errors/warnings.

Cc Yoshinori Sato <[email protected]>
Cc Rich Felker <[email protected]>
Cc John Paul Adrian Glaubitz <[email protected]>
Cc Christophe Leroy <[email protected]>
Cc kernel test robot <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Michal Simek <[email protected]>
Cc Nicholas Piggin <[email protected]>
Cc Vlastimil Babka <[email protected]>

---

 arch/sh/include/asm/cache.h |    6 ++++++
 arch/sh/include/asm/page.h  |    6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)
arch/sh/include/asm/cache.h renamed from arch/sh/include/asm/cache.h~sh-move-the-arch_dma_minalign-definition-to-asm-cacheh +6 -0
@@ -14,6 +14,12 @@
 
 #define L1_CACHE_BYTES		(1 << L1_CACHE_SHIFT)
 
+/*
+ * Some drivers need to perform DMA into kmalloc'ed buffers
+ * and so we have to increase the kmalloc minalign for this.
+ */
+#define ARCH_DMA_MINALIGN	L1_CACHE_BYTES
+
 #define __read_mostly __section(".data..read_mostly")
 
 #ifndef __ASSEMBLY__
arch/sh/include/asm/page.h renamed from arch/sh/include/asm/page.h~sh-move-the-arch_dma_minalign-definition-to-asm-cacheh +0 -6
@@ -174,10 +174,4 @@ typedef struct page *pgtable_t;
 #include <asm-generic/memory_model.h>
 #include <asm-generic/getorder.h>
 
-/*
- * Some drivers need to perform DMA into kmalloc'ed buffers
- * and so we have to increase the kmalloc minalign for this.
- */
-#define ARCH_DMA_MINALIGN	L1_CACHE_BYTES
-
 #endif /* __ASM_SH_PAGE_H */

_

Patches currently in -mm which might be from [email protected] are