[linux-next:master 14865/15183] kernel/dma/swiotlb.c:1393 mem_used() warn: inconsistent indenting

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   2697ef8943c9985c14708a6429e21812693857b2
commit: 121f9fd1c3083312055126205f3e40b8ee999fe6 [14865/15183] dma/swiotlb: decouple high watermark tracking from CONFIG_DEBUG_FS
config: x86_64-randconfig-161-20260814 (https://download.01.org/0day-ci/archive/20260815/[email protected]/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
smatch: v0.5.0-9187-g5189e3fb

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

smatch warnings:
kernel/dma/swiotlb.c:1393 mem_used() warn: inconsistent indenting

vim +1393 kernel/dma/swiotlb.c

121f9fd1c30833 kernel/dma/swiotlb.c    chenhuguanshen 2026-08-12  1381  
1aaa736815eb04 kernel/dma/swiotlb.c    Petr Tesarik   2023-08-01  1382  #ifdef CONFIG_SWIOTLB_DYNAMIC
1aaa736815eb04 kernel/dma/swiotlb.c    Petr Tesarik   2023-08-01  1383  	struct io_tlb_pool *pool;
1aaa736815eb04 kernel/dma/swiotlb.c    Petr Tesarik   2023-08-01  1384  	unsigned long used = 0;
1aaa736815eb04 kernel/dma/swiotlb.c    Petr Tesarik   2023-08-01  1385  
1aaa736815eb04 kernel/dma/swiotlb.c    Petr Tesarik   2023-08-01  1386  	rcu_read_lock();
1aaa736815eb04 kernel/dma/swiotlb.c    Petr Tesarik   2023-08-01  1387  	list_for_each_entry_rcu(pool, &mem->pools, node)
1aaa736815eb04 kernel/dma/swiotlb.c    Petr Tesarik   2023-08-01  1388  		used += mem_pool_used(pool);
1aaa736815eb04 kernel/dma/swiotlb.c    Petr Tesarik   2023-08-01  1389  	rcu_read_unlock();
1aaa736815eb04 kernel/dma/swiotlb.c    Petr Tesarik   2023-08-01  1390  
1aaa736815eb04 kernel/dma/swiotlb.c    Petr Tesarik   2023-08-01  1391  	return used;
1aaa736815eb04 kernel/dma/swiotlb.c    Petr Tesarik   2023-08-01  1392  #else
158dbe9c9a3d36 kernel/dma/swiotlb.c    Petr Tesarik   2023-08-01 @1393  	return mem_pool_used(&mem->defpool);
1aaa736815eb04 kernel/dma/swiotlb.c    Petr Tesarik   2023-08-01  1394  #endif
^1da177e4c3f41 arch/ia64/lib/swiotlb.c Linus Torvalds 2005-04-16  1395  }
^1da177e4c3f41 arch/ia64/lib/swiotlb.c Linus Torvalds 2005-04-16  1396  

:::::: The code at line 1393 was first introduced by commit
:::::: 158dbe9c9a3d36da824139e5304169326550c6c9 swiotlb: separate memory pool data from other allocator data

:::::: TO: Petr Tesarik <[email protected]>
:::::: CC: Christoph Hellwig <[email protected]>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.