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>,
Evgeny Baskakov <ebaskakov@nvidia.com>,
John Hubbard <jhubbard@nvidia.com>,
Mark Hairgrove <mhairgrove@nvidia.com>,
Sherry Cheung <SCheung@nvidia.com>,
Subhash Gutti <sgutti@nvidia.com>,
Reza Arbab <arbab@linux.vnet.ibm.com>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [mmotm:master 113/211] include/linux/migrate.h:144:35: error: 'PMD_SIZE' undeclared
Date: Fri, 17 Mar 2017 09:11:02 +0800 [thread overview]
Message-ID: <201703170958.WWQdX5o0%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4423 bytes --]
tree: git://git.cmpxchg.org/linux-mmotm.git master
head: 8276ddb3c638602509386f1a05f75326dbf5ce09
commit: 50973108c6444ebacff41fbdb553c156dd144c33 [113/211] mm/migrate: new memory migration helper for use with device memory
config: blackfin-allmodconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 6.2.0
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 50973108c6444ebacff41fbdb553c156dd144c33
# save the attached .config to linux build tree
make.cross ARCH=blackfin
All errors (new ones prefixed by >>):
In file included from drivers/staging/lustre/lustre/llite/rw26.c:45: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:137:15: note: in expansion of macro 'MIGRATE_PFN_VALID'
if (!(mpfn & MIGRATE_PFN_VALID))
^~~~~~~~~~~~~~~~~
In file included from include/asm-generic/page.h:97:0,
from arch/blackfin/include/asm/page.h:18,
from arch/blackfin/include/asm/thread_info.h:10,
from include/linux/thread_info.h:25,
from include/asm-generic/preempt.h:4,
from ./arch/blackfin/include/generated/asm/preempt.h:1,
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 drivers/staging/lustre/lustre/llite/rw26.c:38:
include/linux/migrate.h:133: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:139:28: note: in expansion of macro 'MIGRATE_PFN_MASK'
return pfn_to_page(mpfn & MIGRATE_PFN_MASK);
^~~~~~~~~~~~~~~~
In file included from drivers/staging/lustre/lustre/llite/rw26.c:45: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:144:16: note: in expansion of macro 'MIGRATE_PFN_HUGE'
return mpfn & MIGRATE_PFN_HUGE ? PMD_SIZE : PAGE_SIZE;
^~~~~~~~~~~~~~~~
>> include/linux/migrate.h:144:35: error: 'PMD_SIZE' undeclared (first use in this function)
return mpfn & MIGRATE_PFN_HUGE ? PMD_SIZE : PAGE_SIZE;
^~~~~~~~
include/linux/migrate.h:144:35: note: each undeclared identifier is reported only once for each function it appears in
vim +/PMD_SIZE +144 include/linux/migrate.h
124 }
125 #endif /* CONFIG_NUMA_BALANCING && CONFIG_TRANSPARENT_HUGEPAGE*/
126
127
128 #define MIGRATE_PFN_VALID (1UL << (BITS_PER_LONG_LONG - 1))
129 #define MIGRATE_PFN_MIGRATE (1UL << (BITS_PER_LONG_LONG - 2))
> 130 #define MIGRATE_PFN_HUGE (1UL << (BITS_PER_LONG_LONG - 3))
131 #define MIGRATE_PFN_LOCKED (1UL << (BITS_PER_LONG_LONG - 4))
132 #define MIGRATE_PFN_WRITE (1UL << (BITS_PER_LONG_LONG - 5))
133 #define MIGRATE_PFN_MASK ((1UL << (BITS_PER_LONG_LONG - PAGE_SHIFT)) - 1)
134
135 static inline struct page *migrate_pfn_to_page(unsigned long mpfn)
136 {
137 if (!(mpfn & MIGRATE_PFN_VALID))
138 return NULL;
139 return pfn_to_page(mpfn & MIGRATE_PFN_MASK);
140 }
141
142 static inline unsigned long migrate_pfn_size(unsigned long mpfn)
143 {
> 144 return mpfn & MIGRATE_PFN_HUGE ? PMD_SIZE : PAGE_SIZE;
145 }
146
147 /*
---
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: 43887 bytes --]
reply other threads:[~2017-03-17 1:11 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=201703170958.WWQdX5o0%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=SCheung@nvidia.com \
--cc=akpm@linux-foundation.org \
--cc=arbab@linux.vnet.ibm.com \
--cc=ebaskakov@nvidia.com \
--cc=hannes@cmpxchg.org \
--cc=jglisse@redhat.com \
--cc=jhubbard@nvidia.com \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.org \
--cc=mhairgrove@nvidia.com \
--cc=sgutti@nvidia.com \
/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