* [gustavoars:testing/wfamnae-next20260407 13/19] mm/mmu_gather.c:90:25: warning: comparison of distinct pointer types lacks a cast
@ 2026-04-29 19:17 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-29 19:17 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-next20260407
head: 9505f43094e1efb72854c166160fb7666517f07a
commit: c9b77f29ae08cb9afc5965f0d31fc8e5d3d44497 [13/19] mm/mmu_gather: avoid dozens of -Wflex-array-member-not-at-end warnings
config: alpha-allmodconfig (https://download.01.org/0day-ci/archive/20260430/202604300341.itquwlXM-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260430/202604300341.itquwlXM-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/202604300341.itquwlXM-lkp@intel.com/
All warnings (new ones prefixed by >>):
mm/mmu_gather.c: In function 'tlb_flush_rmaps':
>> mm/mmu_gather.c:90:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]
90 | if (tlb->active != &tlb->local)
| ^~
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
c9b77f29ae08cb 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 19:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-29 19:17 [gustavoars:testing/wfamnae-next20260407 13/19] mm/mmu_gather.c:90:25: warning: comparison of distinct pointer types lacks a cast kernel test robot
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.