* [linux-next:master 9014/9031] mm/madvise.c:341: warning: value computed is not used
@ 2017-04-11 8:07 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-04-11 8:07 UTC (permalink / raw)
To: Jérôme Glisse
Cc: kbuild-all, Andrew Morton, Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 2603 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: f8c97bdb49832d2b0edaa0c05db873aa2f6101ff
commit: 0b0a6994b02cac83ae132baea829ff073ca6cbef [9014/9031] mm/unaddressable-memory: new type of ZONE_DEVICE for unaddressable memory
config: x86_64-randconfig-b0-04110636 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
git checkout 0b0a6994b02cac83ae132baea829ff073ca6cbef
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
mm/madvise.c: In function 'madvise_free_pte_range':
>> mm/madvise.c:341: warning: value computed is not used
vim +341 mm/madvise.c
854e9ed0 Minchan Kim 2016-01-15 325 ptent = *pte;
854e9ed0 Minchan Kim 2016-01-15 326
64b42bc1 Minchan Kim 2016-01-15 327 if (pte_none(ptent))
854e9ed0 Minchan Kim 2016-01-15 328 continue;
64b42bc1 Minchan Kim 2016-01-15 329 /*
64b42bc1 Minchan Kim 2016-01-15 330 * If the pte has swp_entry, just clear page table to
64b42bc1 Minchan Kim 2016-01-15 331 * prevent swap-in which is more expensive rather than
64b42bc1 Minchan Kim 2016-01-15 332 * (page allocation + zeroing).
64b42bc1 Minchan Kim 2016-01-15 333 */
64b42bc1 Minchan Kim 2016-01-15 334 if (!pte_present(ptent)) {
64b42bc1 Minchan Kim 2016-01-15 335 swp_entry_t entry;
64b42bc1 Minchan Kim 2016-01-15 336
64b42bc1 Minchan Kim 2016-01-15 337 entry = pte_to_swp_entry(ptent);
64b42bc1 Minchan Kim 2016-01-15 338 if (non_swap_entry(entry))
64b42bc1 Minchan Kim 2016-01-15 339 continue;
64b42bc1 Minchan Kim 2016-01-15 340 nr_swap--;
64b42bc1 Minchan Kim 2016-01-15 @341 free_swap_and_cache(entry);
64b42bc1 Minchan Kim 2016-01-15 342 pte_clear_not_present_full(mm, addr, pte, tlb->fullmm);
64b42bc1 Minchan Kim 2016-01-15 343 continue;
64b42bc1 Minchan Kim 2016-01-15 344 }
854e9ed0 Minchan Kim 2016-01-15 345
854e9ed0 Minchan Kim 2016-01-15 346 page = vm_normal_page(vma, addr, ptent);
854e9ed0 Minchan Kim 2016-01-15 347 if (!page)
854e9ed0 Minchan Kim 2016-01-15 348 continue;
854e9ed0 Minchan Kim 2016-01-15 349
:::::: The code at line 341 was first introduced by commit
:::::: 64b42bc1cfdf6e2c3ab7315f2ff56c31cd257370 mm/madvise.c: free swp_entry in madvise_free
:::::: TO: Minchan Kim <minchan@kernel.org>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27909 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-04-11 8:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-11 8:07 [linux-next:master 9014/9031] mm/madvise.c:341: warning: value computed is not used kbuild 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.