linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 1860/2084] lib/../mm/internal.h:227:19: note: in expansion of macro 'VM_STACK_FLAGS'
@ 2016-01-28  8:45 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-01-28  8:45 UTC (permalink / raw)
  To: Vlastimil Babka; +Cc: kbuild-all, Andrew Morton, Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 5492 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   888c8375131656144c1605071eab2eb6ac49abc3
commit: cec08ed70d3d5209368a435fed278ae667117a0c [1860/2084] mm, printk: introduce new format string for flags
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 cec08ed70d3d5209368a435fed278ae667117a0c
        # save the attached .config to linux build tree
        make.cross ARCH=frv 

All warnings (new ones prefixed by >>):

   In file included from include/linux/io.h:26:0,
                    from include/linux/clk-provider.h:14,
                    from lib/vsprintf.c:21:
   lib/../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)
                                           ^
>> lib/../mm/internal.h:227: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)
                                           ^
>> lib/../mm/internal.h:227:19: note: in expansion of macro 'VM_STACK_FLAGS'
     return (flags & (VM_STACK_FLAGS & (VM_GROWSUP | VM_GROWSDOWN))) != 0;
                      ^
   lib/../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)
                                           ^
   lib/../mm/internal.h:232:20: note: in expansion of macro 'VM_STACK_FLAGS'
     return (flags & ((VM_STACK_FLAGS & (VM_GROWSUP | VM_GROWSDOWN)) |
                       ^

vim +/VM_STACK_FLAGS +227 lib/../mm/internal.h

99c0fd5e Vlastimil Babka       2014-10-09  211   * use of the result.
99c0fd5e Vlastimil Babka       2014-10-09  212   */
4db0c3c2 Jason Low             2015-04-15  213  #define page_order_unsafe(page)		READ_ONCE(page_private(page))
99c0fd5e Vlastimil Babka       2014-10-09  214  
4bbd4c77 Kirill A. Shutemov    2014-06-04  215  static inline bool is_cow_mapping(vm_flags_t flags)
4bbd4c77 Kirill A. Shutemov    2014-06-04  216  {
4bbd4c77 Kirill A. Shutemov    2014-06-04  217  	return (flags & (VM_SHARED | VM_MAYWRITE)) == VM_MAYWRITE;
4bbd4c77 Kirill A. Shutemov    2014-06-04  218  }
4bbd4c77 Kirill A. Shutemov    2014-06-04  219  
07dff8ae Konstantin Khlebnikov 2016-01-28  220  static inline bool is_exec_mapping(vm_flags_t flags)
07dff8ae Konstantin Khlebnikov 2016-01-28  221  {
07dff8ae Konstantin Khlebnikov 2016-01-28  222  	return (flags & (VM_EXEC | VM_WRITE)) == VM_EXEC;
07dff8ae Konstantin Khlebnikov 2016-01-28  223  }
07dff8ae Konstantin Khlebnikov 2016-01-28  224  
07dff8ae Konstantin Khlebnikov 2016-01-28  225  static inline bool is_stack_mapping(vm_flags_t flags)
07dff8ae Konstantin Khlebnikov 2016-01-28  226  {
07dff8ae Konstantin Khlebnikov 2016-01-28 @227  	return (flags & (VM_STACK_FLAGS & (VM_GROWSUP | VM_GROWSDOWN))) != 0;
07dff8ae Konstantin Khlebnikov 2016-01-28  228  }
07dff8ae Konstantin Khlebnikov 2016-01-28  229  
07dff8ae Konstantin Khlebnikov 2016-01-28  230  static inline bool is_data_mapping(vm_flags_t flags)
07dff8ae Konstantin Khlebnikov 2016-01-28  231  {
07dff8ae Konstantin Khlebnikov 2016-01-28  232  	return (flags & ((VM_STACK_FLAGS & (VM_GROWSUP | VM_GROWSDOWN)) |
07dff8ae Konstantin Khlebnikov 2016-01-28  233  					VM_WRITE | VM_SHARED)) == VM_WRITE;
07dff8ae Konstantin Khlebnikov 2016-01-28  234  }
07dff8ae Konstantin Khlebnikov 2016-01-28  235  

:::::: The code at line 227 was first introduced by commit
:::::: 07dff8ae2bc5c3adf387f95c4d6864b1d06866f2 mm: warn about VmData over RLIMIT_DATA

:::::: TO: Konstantin Khlebnikov <koct9i@gmail.com>
:::::: CC: Stephen Rothwell <sfr@canb.auug.org.au>

---
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: 8178 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-01-28  8:46 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:45 [linux-next:master 1860/2084] lib/../mm/internal.h:227: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;
as well as URLs for NNTP newsgroup(s).