* [linux-next:master 1761/2084] mm/internal.h:226:19: note: in expansion of macro 'VM_STACK_FLAGS'
@ 2016-01-28 8:33 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-01-28 8:33 UTC (permalink / raw)
To: Konstantin Khlebnikov
Cc: kbuild-all, Andrew Morton, Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 4369 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 888c8375131656144c1605071eab2eb6ac49abc3
commit: 07dff8ae2bc5c3adf387f95c4d6864b1d06866f2 [1761/2084] mm: warn about VmData over RLIMIT_DATA
config: frv-defconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 07dff8ae2bc5c3adf387f95c4d6864b1d06866f2
# save the attached .config to linux build tree
make.cross ARCH=frv
All error/warnings (new ones prefixed by >>):
In file included from include/linux/mmzone.h:20:0,
from include/linux/gfp.h:5,
from include/linux/percpu_counter.h:15,
from include/linux/quota.h:40,
from include/linux/fs.h:268,
from include/linux/dax.h:4,
from mm/filemap.c:14:
mm/internal.h: In function 'is_stack_mapping':
>> arch/frv/include/asm/page.h:68:27: error: 'READ_IMPLIES_EXEC' undeclared (first use in this function)
((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0 ) | \
^
>> include/linux/mm.h:200:32: note: in expansion of macro 'VM_DATA_DEFAULT_FLAGS'
#define VM_STACK_DEFAULT_FLAGS VM_DATA_DEFAULT_FLAGS
^
>> include/linux/mm.h:206:40: note: in expansion of macro 'VM_STACK_DEFAULT_FLAGS'
#define VM_STACK_FLAGS (VM_GROWSDOWN | VM_STACK_DEFAULT_FLAGS | VM_ACCOUNT)
^
>> mm/internal.h:226:19: note: in expansion of macro 'VM_STACK_FLAGS'
return (flags & (VM_STACK_FLAGS & (VM_GROWSUP | VM_GROWSDOWN))) != 0;
^
arch/frv/include/asm/page.h:68:27: note: each undeclared identifier is reported only once for each function it appears in
((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0 ) | \
^
>> include/linux/mm.h:200:32: note: in expansion of macro 'VM_DATA_DEFAULT_FLAGS'
#define VM_STACK_DEFAULT_FLAGS VM_DATA_DEFAULT_FLAGS
^
>> include/linux/mm.h:206:40: note: in expansion of macro 'VM_STACK_DEFAULT_FLAGS'
#define VM_STACK_FLAGS (VM_GROWSDOWN | VM_STACK_DEFAULT_FLAGS | VM_ACCOUNT)
^
>> mm/internal.h:226:19: note: in expansion of macro 'VM_STACK_FLAGS'
return (flags & (VM_STACK_FLAGS & (VM_GROWSUP | VM_GROWSDOWN))) != 0;
^
mm/internal.h: In function 'is_data_mapping':
>> arch/frv/include/asm/page.h:68:27: error: 'READ_IMPLIES_EXEC' undeclared (first use in this function)
((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0 ) | \
^
>> include/linux/mm.h:200:32: note: in expansion of macro 'VM_DATA_DEFAULT_FLAGS'
#define VM_STACK_DEFAULT_FLAGS VM_DATA_DEFAULT_FLAGS
^
>> include/linux/mm.h:206:40: note: in expansion of macro 'VM_STACK_DEFAULT_FLAGS'
#define VM_STACK_FLAGS (VM_GROWSDOWN | VM_STACK_DEFAULT_FLAGS | VM_ACCOUNT)
^
mm/internal.h:231:20: note: in expansion of macro 'VM_STACK_FLAGS'
return (flags & ((VM_STACK_FLAGS & (VM_GROWSUP | VM_GROWSDOWN)) |
^
vim +/VM_STACK_FLAGS +226 mm/internal.h
210 * use of the result.
211 */
212 #define page_order_unsafe(page) READ_ONCE(page_private(page))
213
214 static inline bool is_cow_mapping(vm_flags_t flags)
215 {
216 return (flags & (VM_SHARED | VM_MAYWRITE)) == VM_MAYWRITE;
217 }
218
219 static inline bool is_exec_mapping(vm_flags_t flags)
220 {
221 return (flags & (VM_EXEC | VM_WRITE)) == VM_EXEC;
222 }
223
224 static inline bool is_stack_mapping(vm_flags_t flags)
225 {
> 226 return (flags & (VM_STACK_FLAGS & (VM_GROWSUP | VM_GROWSDOWN))) != 0;
227 }
228
229 static inline bool is_data_mapping(vm_flags_t flags)
230 {
231 return (flags & ((VM_STACK_FLAGS & (VM_GROWSUP | VM_GROWSDOWN)) |
232 VM_WRITE | VM_SHARED)) == VM_WRITE;
233 }
234
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 8170 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-01-28 8:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-28 8:33 [linux-next:master 1761/2084] mm/internal.h:226:19: note: in expansion of macro 'VM_STACK_FLAGS' kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox