From 093a6c67005148ae32a5c9e4553491b9f5c2457b Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 10 May 2024 07:40:51 +0000
Subject: [PATCH] disable kernel build waring

---
 kernel/include/asm-generic/dma-mapping.h |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)

diff --git a/kernel/include/asm-generic/dma-mapping.h b/kernel/include/asm-generic/dma-mapping.h
index ad28682..c13f461 100644
--- a/kernel/include/asm-generic/dma-mapping.h
+++ b/kernel/include/asm-generic/dma-mapping.h
@@ -4,16 +4,7 @@
 
 static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
 {
-	/*
-	 * Use the non-coherent ops if available.  If an architecture wants a
-	 * more fine-grained selection of operations it will have to implement
-	 * get_arch_dma_ops itself or use the per-device dma_ops.
-	 */
-#ifdef CONFIG_DMA_NONCOHERENT_OPS
-	return &dma_noncoherent_ops;
-#else
-	return &dma_direct_ops;
-#endif
+	return NULL;
 }
 
 #endif /* _ASM_GENERIC_DMA_MAPPING_H */

--
Gitblit v1.6.2