All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/1] swiotlb: Clean up unused code if !CONFIG_DEBUG_FS
@ 2023-04-20  9:58 Petr Tesarik
  2023-04-20  9:58 ` [PATCH v1 1/1] swiotlb: Omit total_used and used_hiwater " Petr Tesarik
  0 siblings, 1 reply; 3+ messages in thread
From: Petr Tesarik @ 2023-04-20  9:58 UTC (permalink / raw)
  To: Christoph Hellwig, Marek Szyprowski, Robin Murphy,
	open list:DMA MAPPING HELPERS, open list
  Cc: Roberto Sassu, petr

From: Petr Tesarik <petr.tesarik.ext@huawei.com>

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(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-04-20 12:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-20  9:58 [PATCH v1 0/1] swiotlb: Clean up unused code if !CONFIG_DEBUG_FS Petr Tesarik
2023-04-20  9:58 ` [PATCH v1 1/1] swiotlb: Omit total_used and used_hiwater " Petr Tesarik
2023-04-20 12:51   ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.