Re: [PATCH 2/2] mm,fork: introduce MADV_WIPEONFORK

From: kbuild test robot
Date: Sat Aug 05 2017 - 14:48:01 EST


Hi Rik,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.13-rc3 next-20170804]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/riel-redhat-com/x86-mpx-make-mpx-depend-on-x86-64-to-free-up-VMA-flag/20170806-011851
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=xtensa

All error/warnings (new ones prefixed by >>):

In file included from mm/debug.c:12:0:
>> include/trace/events/mmflags.h:131:31: error: 'VM_ARCH_2' undeclared here (not in a function)
#define __VM_ARCH_SPECIFIC_2 {VM_ARCH_2, "arch_2" }
^
>> include/trace/events/mmflags.h:165:2: note: in expansion of macro '__VM_ARCH_SPECIFIC_2'
__VM_ARCH_SPECIFIC_2 , \
^
>> mm/debug.c:39:2: note: in expansion of macro '__def_vmaflag_names'
__def_vmaflag_names,
^

vim +/VM_ARCH_2 +131 include/trace/events/mmflags.h

bcf669179 Kirill A. Shutemov 2016-03-17 127
bcf669179 Kirill A. Shutemov 2016-03-17 128 #if defined(CONFIG_X86)
bcf669179 Kirill A. Shutemov 2016-03-17 129 #define __VM_ARCH_SPECIFIC_2 {VM_MPX, "mpx" }
bcf669179 Kirill A. Shutemov 2016-03-17 130 #else
bcf669179 Kirill A. Shutemov 2016-03-17 @131 #define __VM_ARCH_SPECIFIC_2 {VM_ARCH_2, "arch_2" }
420adbe9f Vlastimil Babka 2016-03-15 132 #endif
420adbe9f Vlastimil Babka 2016-03-15 133
420adbe9f Vlastimil Babka 2016-03-15 134 #ifdef CONFIG_MEM_SOFT_DIRTY
420adbe9f Vlastimil Babka 2016-03-15 135 #define IF_HAVE_VM_SOFTDIRTY(flag,name) {flag, name },
420adbe9f Vlastimil Babka 2016-03-15 136 #else
420adbe9f Vlastimil Babka 2016-03-15 137 #define IF_HAVE_VM_SOFTDIRTY(flag,name)
420adbe9f Vlastimil Babka 2016-03-15 138 #endif
420adbe9f Vlastimil Babka 2016-03-15 139
420adbe9f Vlastimil Babka 2016-03-15 140 #define __def_vmaflag_names \
420adbe9f Vlastimil Babka 2016-03-15 141 {VM_READ, "read" }, \
420adbe9f Vlastimil Babka 2016-03-15 142 {VM_WRITE, "write" }, \
420adbe9f Vlastimil Babka 2016-03-15 143 {VM_EXEC, "exec" }, \
420adbe9f Vlastimil Babka 2016-03-15 144 {VM_SHARED, "shared" }, \
420adbe9f Vlastimil Babka 2016-03-15 145 {VM_MAYREAD, "mayread" }, \
420adbe9f Vlastimil Babka 2016-03-15 146 {VM_MAYWRITE, "maywrite" }, \
420adbe9f Vlastimil Babka 2016-03-15 147 {VM_MAYEXEC, "mayexec" }, \
420adbe9f Vlastimil Babka 2016-03-15 148 {VM_MAYSHARE, "mayshare" }, \
420adbe9f Vlastimil Babka 2016-03-15 149 {VM_GROWSDOWN, "growsdown" }, \
bcf669179 Kirill A. Shutemov 2016-03-17 150 {VM_UFFD_MISSING, "uffd_missing" }, \
420adbe9f Vlastimil Babka 2016-03-15 151 {VM_PFNMAP, "pfnmap" }, \
420adbe9f Vlastimil Babka 2016-03-15 152 {VM_DENYWRITE, "denywrite" }, \
bcf669179 Kirill A. Shutemov 2016-03-17 153 {VM_UFFD_WP, "uffd_wp" }, \
420adbe9f Vlastimil Babka 2016-03-15 154 {VM_LOCKED, "locked" }, \
420adbe9f Vlastimil Babka 2016-03-15 155 {VM_IO, "io" }, \
420adbe9f Vlastimil Babka 2016-03-15 156 {VM_SEQ_READ, "seqread" }, \
420adbe9f Vlastimil Babka 2016-03-15 157 {VM_RAND_READ, "randread" }, \
420adbe9f Vlastimil Babka 2016-03-15 158 {VM_DONTCOPY, "dontcopy" }, \
420adbe9f Vlastimil Babka 2016-03-15 159 {VM_DONTEXPAND, "dontexpand" }, \
bcf669179 Kirill A. Shutemov 2016-03-17 160 {VM_LOCKONFAULT, "lockonfault" }, \
420adbe9f Vlastimil Babka 2016-03-15 161 {VM_ACCOUNT, "account" }, \
420adbe9f Vlastimil Babka 2016-03-15 162 {VM_NORESERVE, "noreserve" }, \
420adbe9f Vlastimil Babka 2016-03-15 163 {VM_HUGETLB, "hugetlb" }, \
bcf669179 Kirill A. Shutemov 2016-03-17 164 __VM_ARCH_SPECIFIC_1 , \
bcf669179 Kirill A. Shutemov 2016-03-17 @165 __VM_ARCH_SPECIFIC_2 , \
420adbe9f Vlastimil Babka 2016-03-15 166 {VM_DONTDUMP, "dontdump" }, \
420adbe9f Vlastimil Babka 2016-03-15 167 IF_HAVE_VM_SOFTDIRTY(VM_SOFTDIRTY, "softdirty" ) \
420adbe9f Vlastimil Babka 2016-03-15 168 {VM_MIXEDMAP, "mixedmap" }, \
420adbe9f Vlastimil Babka 2016-03-15 169 {VM_HUGEPAGE, "hugepage" }, \
420adbe9f Vlastimil Babka 2016-03-15 170 {VM_NOHUGEPAGE, "nohugepage" }, \
420adbe9f Vlastimil Babka 2016-03-15 171 {VM_MERGEABLE, "mergeable" } \
420adbe9f Vlastimil Babka 2016-03-15 172

:::::: The code at line 131 was first introduced by commit
:::::: bcf6691797f425b301f629bb783b7ff2d0bcfa5a mm, tracing: refresh __def_vmaflag_names

:::::: TO: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip