Skip to content

swiotlb: Clean up unused code if !CONFIG_DEBUG_FS

Petr Tesarik linux-iommu lkml 1 version Applied

Status from this message: applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/1swiotlb: Omit total_used and used_hiwater if !CONFIG_DEBUG_FSinclude/linux/swiotlb.h kernel/dma/swiotlb.c+14 -31 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH v1 0/1] swiotlb: Clean up unused code if !CONFIG_DEBUG_FS

From: Petr Tesarik <[email protected]>

While verifying that the swiotlb high water marks are never used if CONFIG_DEBUG_FS is unset, I guarded the corresponding fields in strut io_tlb_mem with an #ifdef, but then I ran into a build failure. This patch tries to clean up the optional debugfs code in swiotlb.

The patch should be applied to the dma-mapping for-next tree.

Petr Tesarik (1):
swiotlb: Omit total_used and used_hiwater if !CONFIG_DEBUG_FS

 include/linux/swiotlb.h |  2 ++
 kernel/dma/swiotlb.c    | 15 ++++++++++++---
 2 files changed, 14 insertions(+), 3 deletions(-)
Signature · 1 line
2.25.1