From: kernel test robot <lkp@intel.com>
To: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev,
"Gustavo A. R. Silva" <gustavo@embeddedor.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: [gustavoars:testing/wfamnae-next20260407 13/19] mm/mmu_gather.c:90:25: warning: comparison of distinct pointer types lacks a cast
Date: Thu, 30 Apr 2026 03:17:49 +0800 [thread overview]
Message-ID: <202604300341.itquwlXM-lkp@intel.com> (raw)
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
reply other threads:[~2026-04-29 19:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202604300341.itquwlXM-lkp@intel.com \
--to=lkp@intel.com \
--cc=gustavo@embeddedor.com \
--cc=gustavoars@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox