From: kbuild test robot <fengguang.wu@intel.com>
To: "Jérôme Glisse" <jglisse@redhat.com>
Cc: kbuild-all@01.org, Johannes Weiner <hannes@cmpxchg.org>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [mmotm:master 119/211] mm/migrate.c:2184:5: note: in expansion of macro 'MIGRATE_PFN_DEVICE'
Date: Fri, 17 Mar 2017 09:46:30 +0800 [thread overview]
Message-ID: <201703170923.JOG5lvVO%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 10592 bytes --]
tree: git://git.cmpxchg.org/linux-mmotm.git master
head: 8276ddb3c638602509386f1a05f75326dbf5ce09
commit: a6d9a210db7db40e98f7502608c6f1413c44b9b9 [119/211] mm/hmm/migrate: support un-addressable ZONE_DEVICE page in migration
config: i386-randconfig-s0-201711 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout a6d9a210db7db40e98f7502608c6f1413c44b9b9
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
In file included from mm/migrate.c:15:0:
include/linux/migrate.h: In function 'migrate_pfn_to_page':
include/linux/migrate.h:128:32: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_VALID (1UL << (BITS_PER_LONG_LONG - 1))
^
include/linux/migrate.h:139:15: note: in expansion of macro 'MIGRATE_PFN_VALID'
if (!(mpfn & MIGRATE_PFN_VALID))
^~~~~~~~~~~~~~~~~
In file included from arch/x86/include/asm/page.h:75:0,
from arch/x86/include/asm/thread_info.h:11,
from include/linux/thread_info.h:25,
from arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:80,
from include/linux/spinlock.h:50,
from include/linux/mmzone.h:7,
from include/linux/gfp.h:5,
from include/linux/mm.h:9,
from include/linux/migrate.h:4,
from mm/migrate.c:15:
include/linux/migrate.h:135:32: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_MASK ((1UL << (BITS_PER_LONG_LONG - PAGE_SHIFT)) - 1)
^
include/asm-generic/memory_model.h:32:41: note: in definition of macro '__pfn_to_page'
#define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET))
^~~
include/linux/migrate.h:141:28: note: in expansion of macro 'MIGRATE_PFN_MASK'
return pfn_to_page(mpfn & MIGRATE_PFN_MASK);
^~~~~~~~~~~~~~~~
In file included from mm/migrate.c:15:0:
include/linux/migrate.h: In function 'migrate_pfn_size':
include/linux/migrate.h:130:31: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_HUGE (1UL << (BITS_PER_LONG_LONG - 3))
^
include/linux/migrate.h:146:16: note: in expansion of macro 'MIGRATE_PFN_HUGE'
return mpfn & MIGRATE_PFN_HUGE ? PMD_SIZE : PAGE_SIZE;
^~~~~~~~~~~~~~~~
In file included from mm/migrate.c:15:0:
mm/migrate.c: In function 'migrate_vma_collect_hole':
include/linux/migrate.h:130:31: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_HUGE (1UL << (BITS_PER_LONG_LONG - 3))
^
mm/migrate.c:2114:38: note: in expansion of macro 'MIGRATE_PFN_HUGE'
migrate->src[migrate->npages++] = MIGRATE_PFN_HUGE;
^~~~~~~~~~~~~~~~
mm/migrate.c: In function 'migrate_vma_collect_pmd':
include/linux/migrate.h:128:32: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_VALID (1UL << (BITS_PER_LONG_LONG - 1))
^
mm/migrate.c:2183:12: note: in expansion of macro 'MIGRATE_PFN_VALID'
flags = MIGRATE_PFN_VALID |
^~~~~~~~~~~~~~~~~
include/linux/migrate.h:133:33: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_DEVICE (1UL << (BITS_PER_LONG_LONG - 6))
^
>> mm/migrate.c:2184:5: note: in expansion of macro 'MIGRATE_PFN_DEVICE'
MIGRATE_PFN_DEVICE |
^~~~~~~~~~~~~~~~~~
include/linux/migrate.h:129:34: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_MIGRATE (1UL << (BITS_PER_LONG_LONG - 2))
^
mm/migrate.c:2185:5: note: in expansion of macro 'MIGRATE_PFN_MIGRATE'
MIGRATE_PFN_MIGRATE;
^~~~~~~~~~~~~~~~~~~
include/linux/migrate.h:132:32: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_WRITE (1UL << (BITS_PER_LONG_LONG - 5))
^
mm/migrate.c:2187:14: note: in expansion of macro 'MIGRATE_PFN_WRITE'
flags |= MIGRATE_PFN_WRITE;
^~~~~~~~~~~~~~~~~
include/linux/migrate.h:128:32: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_VALID (1UL << (BITS_PER_LONG_LONG - 1))
^
mm/migrate.c:2190:12: note: in expansion of macro 'MIGRATE_PFN_VALID'
flags = MIGRATE_PFN_VALID | MIGRATE_PFN_MIGRATE;
^~~~~~~~~~~~~~~~~
include/linux/migrate.h:129:34: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_MIGRATE (1UL << (BITS_PER_LONG_LONG - 2))
^
mm/migrate.c:2190:32: note: in expansion of macro 'MIGRATE_PFN_MIGRATE'
flags = MIGRATE_PFN_VALID | MIGRATE_PFN_MIGRATE;
^~~~~~~~~~~~~~~~~~~
include/linux/migrate.h:132:32: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_WRITE (1UL << (BITS_PER_LONG_LONG - 5))
^
mm/migrate.c:2191:30: note: in expansion of macro 'MIGRATE_PFN_WRITE'
flags |= pte_write(pte) ? MIGRATE_PFN_WRITE : 0;
^~~~~~~~~~~~~~~~~
include/linux/migrate.h:131:33: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_LOCKED (1UL << (BITS_PER_LONG_LONG - 4))
^
mm/migrate.c:2221:13: note: in expansion of macro 'MIGRATE_PFN_LOCKED'
flags |= MIGRATE_PFN_LOCKED;
^~~~~~~~~~~~~~~~~~
mm/migrate.c: In function 'migrate_vma_prepare':
include/linux/migrate.h:131:33: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_LOCKED (1UL << (BITS_PER_LONG_LONG - 4))
^
mm/migrate.c:2357:27: note: in expansion of macro 'MIGRATE_PFN_LOCKED'
if (!(migrate->src[i] & MIGRATE_PFN_LOCKED)) {
^~~~~~~~~~~~~~~~~~
include/linux/migrate.h:131:33: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_LOCKED (1UL << (BITS_PER_LONG_LONG - 4))
^
mm/migrate.c:2360:23: note: in expansion of macro 'MIGRATE_PFN_LOCKED'
migrate->src[i] |= MIGRATE_PFN_LOCKED;
^~~~~~~~~~~~~~~~~~
include/linux/migrate.h:129:34: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_MIGRATE (1UL << (BITS_PER_LONG_LONG - 2))
^
mm/migrate.c:2373:26: note: in expansion of macro 'MIGRATE_PFN_MIGRATE'
migrate->src[i] &= ~MIGRATE_PFN_MIGRATE;
^~~~~~~~~~~~~~~~~~~
include/linux/migrate.h:129:34: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_MIGRATE (1UL << (BITS_PER_LONG_LONG - 2))
^
mm/migrate.c:2391:25: note: in expansion of macro 'MIGRATE_PFN_MIGRATE'
migrate->src[i] &= ~MIGRATE_PFN_MIGRATE;
^~~~~~~~~~~~~~~~~~~
include/linux/migrate.h:129:34: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_MIGRATE (1UL << (BITS_PER_LONG_LONG - 2))
^
mm/migrate.c:2416:35: note: in expansion of macro 'MIGRATE_PFN_MIGRATE'
if (!page || (migrate->src[i] & MIGRATE_PFN_MIGRATE))
^~~~~~~~~~~~~~~~~~~
mm/migrate.c: In function 'migrate_vma_unmap':
include/linux/migrate.h:129:34: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_MIGRATE (1UL << (BITS_PER_LONG_LONG - 2))
^
mm/migrate.c:2450:36: note: in expansion of macro 'MIGRATE_PFN_MIGRATE'
if (!page || !(migrate->src[i] & MIGRATE_PFN_MIGRATE))
^~~~~~~~~~~~~~~~~~~
include/linux/migrate.h:129:34: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_MIGRATE (1UL << (BITS_PER_LONG_LONG - 2))
^
mm/migrate.c:2455:24: note: in expansion of macro 'MIGRATE_PFN_MIGRATE'
migrate->src[i] &= ~MIGRATE_PFN_MIGRATE;
^~~~~~~~~~~~~~~~~~~
include/linux/migrate.h:129:34: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_MIGRATE (1UL << (BITS_PER_LONG_LONG - 2))
^
mm/migrate.c:2465:35: note: in expansion of macro 'MIGRATE_PFN_MIGRATE'
if (!page || (migrate->src[i] & MIGRATE_PFN_MIGRATE))
^~~~~~~~~~~~~~~~~~~
mm/migrate.c: In function 'migrate_vma_pages':
include/linux/migrate.h:129:34: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_MIGRATE (1UL << (BITS_PER_LONG_LONG - 2))
^
mm/migrate.c:2504:27: note: in expansion of macro 'MIGRATE_PFN_MIGRATE'
if (!(migrate->src[i] & MIGRATE_PFN_MIGRATE))
^~~~~~~~~~~~~~~~~~~
include/linux/migrate.h:129:34: warning: left shift count >= width of type [-Wshift-count-overflow]
#define MIGRATE_PFN_MIGRATE (1UL << (BITS_PER_LONG_LONG - 2))
^
mm/migrate.c:2511:25: note: in expansion of macro 'MIGRATE_PFN_MIGRATE'
migrate->src[i] &= ~MIGRATE_PFN_MIGRATE;
vim +/MIGRATE_PFN_DEVICE +2184 mm/migrate.c
2177 goto next;
2178
2179 page = device_entry_to_page(entry);
2180 if (!dev_page_allow_migrate(page))
2181 goto next;
2182
> 2183 flags = MIGRATE_PFN_VALID |
> 2184 MIGRATE_PFN_DEVICE |
2185 MIGRATE_PFN_MIGRATE;
2186 if (is_write_device_entry(entry))
2187 flags |= MIGRATE_PFN_WRITE;
---
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: 27266 bytes --]
next reply other threads:[~2017-03-17 1:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-17 1:46 kbuild test robot [this message]
2017-03-17 3:41 ` Andrew Morton
2017-03-17 4:06 ` [kbuild-all] " Fengguang Wu
2017-03-17 22:48 ` Jerome Glisse
2017-03-18 12:48 ` Philip Li
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=201703170923.JOG5lvVO%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=akpm@linux-foundation.org \
--cc=hannes@cmpxchg.org \
--cc=jglisse@redhat.com \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.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