[PATCH] dma-mapping: dma-map-ops.h: Remove an outdated comment

Sui Jingfeng posted 1 patch 1 month ago
include/linux/dma-map-ops.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] dma-mapping: dma-map-ops.h: Remove an outdated comment
Posted by Sui Jingfeng 1 month ago
The "/* CONFIG_ARCH_HAS_DMA_COHERENCE_H */" was an description about the
ARCH_HAS_DMA_COHERENCE_H configure option, but it has been removed since
the dma_default_coherent variable was lifted from the mips architecture
to the driver core. Therefore it doesn't match any compile guard now.
Just remove it.

Fixes: 6d4e9a8efe3d ("driver core: lift dma_default_coherent into common code")
Signed-off-by: Sui Jingfeng <sui.jingfeng@linux.dev>
---
 include/linux/dma-map-ops.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/dma-map-ops.h b/include/linux/dma-map-ops.h
index 4abc60f04209..7689f6fb4148 100644
--- a/include/linux/dma-map-ops.h
+++ b/include/linux/dma-map-ops.h
@@ -271,7 +271,7 @@ static inline bool dev_is_dma_coherent(struct device *dev)
 {
 	return true;
 }
-#endif /* CONFIG_ARCH_HAS_DMA_COHERENCE_H */
+#endif
 
 /*
  * Check whether potential kmalloc() buffers are safe for non-coherent DMA.
-- 
2.34.1
Re: [PATCH] dma-mapping: dma-map-ops.h: Remove an outdated comment
Posted by Christoph Hellwig 3 weeks, 6 days ago
Thanks, applied.
Re: [PATCH] dma-mapping: dma-map-ops.h: Remove an outdated comment
Posted by Christoph Hellwig 1 month ago
Thanks Sui,

I'll queue it up for Linux 6.13.