[linux-next:master 1860/2084] lib/../mm/internal.h:227:19: note: in expansion of macro 'VM_STACK_FLAGS'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
:::::: CC: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]