public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [gustavoars:testing/wfamnae-next20260408 12/20] mm/mmu_gather.c:90:18: warning: comparison of distinct pointer types ('struct mmu_gather_batch *' and 'struct mmu_gather_batch_hdr *')
@ 2026-04-29 18:07 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-29 18:07 UTC (permalink / raw)
  To: Gustavo A. R. Silva; +Cc: oe-kbuild-all, Gustavo A. R. Silva, LKML

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/wfamnae-next20260408
head:   6d701ba0454b8785a162a4ed3af4a26b4bd592e9
commit: 8f75bd4b2651d0fc1d9335ce0c94748cabf7d16f [12/20] mm/mmu_gather: avoid dozens of -Wflex-array-member-not-at-end warnings
config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20260430/202604300202.KAqBB6Qb-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260430/202604300202.KAqBB6Qb-lkp@intel.com/reproduce)

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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604300202.KAqBB6Qb-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> mm/mmu_gather.c:90:18: warning: comparison of distinct pointer types ('struct mmu_gather_batch *' and 'struct mmu_gather_batch_hdr *') [-Wcompare-distinct-pointer-types]
      90 |         if (tlb->active != &tlb->local)
         |             ~~~~~~~~~~~ ^  ~~~~~~~~~~~
   1 warning generated.


vim +90 mm/mmu_gather.c

c47454823bd4e3 Linus Torvalds          2022-12-06  73  
5df397dec7c4c0 Linus Torvalds          2022-11-09  74  /**
5df397dec7c4c0 Linus Torvalds          2022-11-09  75   * tlb_flush_rmaps - do pending rmap removals after we have flushed the TLB
5df397dec7c4c0 Linus Torvalds          2022-11-09  76   * @tlb: the current mmu_gather
19134bc23500a0 Matthew Wilcox (Oracle  2023-08-18  77)  * @vma: The memory area from which the pages are being removed.
5df397dec7c4c0 Linus Torvalds          2022-11-09  78   *
5df397dec7c4c0 Linus Torvalds          2022-11-09  79   * Note that because of how tlb_next_batch() above works, we will
c47454823bd4e3 Linus Torvalds          2022-12-06  80   * never start multiple new batches with pending delayed rmaps, so
c47454823bd4e3 Linus Torvalds          2022-12-06  81   * we only need to walk through the current active batch and the
c47454823bd4e3 Linus Torvalds          2022-12-06  82   * original local one.
5df397dec7c4c0 Linus Torvalds          2022-11-09  83   */
5df397dec7c4c0 Linus Torvalds          2022-11-09  84  void tlb_flush_rmaps(struct mmu_gather *tlb, struct vm_area_struct *vma)
5df397dec7c4c0 Linus Torvalds          2022-11-09  85  {
f036c8184f8b67 Alexander Gordeev       2022-11-16  86  	if (!tlb->delayed_rmap)
f036c8184f8b67 Alexander Gordeev       2022-11-16  87  		return;
f036c8184f8b67 Alexander Gordeev       2022-11-16  88  
8f75bd4b2651d0 Gustavo A. R. Silva     2026-03-10  89  	tlb_flush_rmap_batch(MMU_GATHER_BATCH_FROM_HDR(&tlb->local), vma);
c47454823bd4e3 Linus Torvalds          2022-12-06 @90  	if (tlb->active != &tlb->local)
c47454823bd4e3 Linus Torvalds          2022-12-06  91  		tlb_flush_rmap_batch(tlb->active, vma);
5df397dec7c4c0 Linus Torvalds          2022-11-09  92  	tlb->delayed_rmap = 0;
5df397dec7c4c0 Linus Torvalds          2022-11-09  93  }
5df397dec7c4c0 Linus Torvalds          2022-11-09  94  #endif
5df397dec7c4c0 Linus Torvalds          2022-11-09  95  

:::::: The code at line 90 was first introduced by commit
:::::: c47454823bd4e3ab34ed3f795afd4479ab938a3f mm: mmu_gather: allow more than one batch of delayed rmaps

:::::: TO: Linus Torvalds <torvalds@linux-foundation.org>
:::::: CC: Andrew Morton <akpm@linux-foundation.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-04-29 18:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-29 18:07 [gustavoars:testing/wfamnae-next20260408 12/20] mm/mmu_gather.c:90:18: warning: comparison of distinct pointer types ('struct mmu_gather_batch *' and 'struct mmu_gather_batch_hdr *') kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox