From: kernel test robot <lkp@intel.com>
To: Will Deacon <will@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: mm/migrate.c:236:33: sparse: sparse: cast to non-scalar
Date: Sat, 28 Dec 2024 05:15:18 +0800 [thread overview]
Message-ID: <202412280419.RvjGqzaD-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8379578b11d5e073792b5db2690faa12effce8e0
commit: dee081bf8f824cabeb7c7495367d5dad0a444eb1 READ_ONCE: Drop pointer qualifiers when reading from scalar types
date: 4 years, 8 months ago
config: alpha-randconfig-r121-20241225 (https://download.01.org/0day-ci/archive/20241228/202412280419.RvjGqzaD-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241228/202412280419.RvjGqzaD-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/202412280419.RvjGqzaD-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> mm/migrate.c:236:33: sparse: sparse: cast to non-scalar
>> mm/migrate.c:236:33: sparse: sparse: cast from non-scalar
mm/migrate.c:824:9: sparse: sparse: context imbalance in '__buffer_migrate_page' - different lock contexts for basic block
vim +236 mm/migrate.c
616b8371539a6c Zi Yan 2017-09-08 234
0697212a411c1d Christoph Lameter 2006-06-23 235 get_page(new);
6d2329f8872f23 Andrea Arcangeli 2016-10-07 @236 pte = pte_mkold(mk_pte(new, READ_ONCE(vma->vm_page_prot)));
3fe87967c536e8 Kirill A. Shutemov 2017-02-24 237 if (pte_swp_soft_dirty(*pvmw.pte))
c3d16e16522fe3 Cyrill Gorcunov 2013-10-16 238 pte = pte_mksoft_dirty(pte);
d3cb8bf6081b8b Mel Gorman 2014-10-02 239
3fe87967c536e8 Kirill A. Shutemov 2017-02-24 240 /*
3fe87967c536e8 Kirill A. Shutemov 2017-02-24 241 * Recheck VMA as permissions can change since migration started
3fe87967c536e8 Kirill A. Shutemov 2017-02-24 242 */
3fe87967c536e8 Kirill A. Shutemov 2017-02-24 243 entry = pte_to_swp_entry(*pvmw.pte);
0697212a411c1d Christoph Lameter 2006-06-23 244 if (is_write_migration_entry(entry))
d3cb8bf6081b8b Mel Gorman 2014-10-02 245 pte = maybe_mkwrite(pte, vma);
f45ec5ff16a75f Peter Xu 2020-04-06 246 else if (pte_swp_uffd_wp(*pvmw.pte))
f45ec5ff16a75f Peter Xu 2020-04-06 247 pte = pte_mkuffd_wp(pte);
d3cb8bf6081b8b Mel Gorman 2014-10-02 248
df6ad69838fc9d Jérôme Glisse 2017-09-08 249 if (unlikely(is_zone_device_page(new))) {
df6ad69838fc9d Jérôme Glisse 2017-09-08 250 if (is_device_private_page(new)) {
a5430dda8a3a1c Jérôme Glisse 2017-09-08 251 entry = make_device_private_entry(new, pte_write(pte));
a5430dda8a3a1c Jérôme Glisse 2017-09-08 252 pte = swp_entry_to_pte(entry);
f45ec5ff16a75f Peter Xu 2020-04-06 253 if (pte_swp_uffd_wp(*pvmw.pte))
f45ec5ff16a75f Peter Xu 2020-04-06 254 pte = pte_mkuffd_wp(pte);
df6ad69838fc9d Jérôme Glisse 2017-09-08 255 }
d2b2c6dd227ba5 Lars Persson 2019-03-28 256 }
a5430dda8a3a1c Jérôme Glisse 2017-09-08 257
:::::: The code at line 236 was first introduced by commit
:::::: 6d2329f8872f23e46a19d240930571510ce525eb mm: vm_page_prot: update with WRITE_ONCE/READ_ONCE
:::::: TO: Andrea Arcangeli <aarcange@redhat.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2024-12-27 21:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-27 21:15 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-03 20:05 mm/migrate.c:236:33: sparse: sparse: cast to non-scalar kernel test robot
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=202412280419.RvjGqzaD-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=will@kernel.org \
/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