linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Konstantin Khlebnikov <koct9i@gmail.com>
Cc: kbuild-all@01.org, Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 1761/2084] arch/mn10300/include/asm/page.h:124:27: error: 'READ_IMPLIES_EXEC' undeclared
Date: Thu, 28 Jan 2016 16:23:55 +0800	[thread overview]
Message-ID: <201601281651.JtF4Cw8u%fengguang.wu@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 6383 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: mn10300-asb2364_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=mn10300 

All errors (new ones prefixed by >>):

   In file included from arch/mn10300/include/asm/thread_info.h:17:0,
                    from include/linux/thread_info.h:54,
                    from include/asm-generic/preempt.h:4,
                    from arch/mn10300/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:59,
                    from include/linux/spinlock.h:50,
                    from include/linux/wait.h:8,
                    from include/linux/fs.h:5,
                    from include/linux/dax.h:4,
                    from mm/filemap.c:14:
   mm/internal.h: In function 'is_stack_mapping':
>> arch/mn10300/include/asm/page.h:124: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/mn10300/include/asm/page.h:124: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/mn10300/include/asm/page.h:124: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 +/READ_IMPLIES_EXEC +124 arch/mn10300/include/asm/page.h

b920de1b include/asm-mn10300/page.h      David Howells 2008-02-08  108  #define pfn_to_page(pfn)	(mem_map + ((pfn) - __pfn_disp))
b920de1b include/asm-mn10300/page.h      David Howells 2008-02-08  109  #define page_to_pfn(page)	((unsigned long)((page) - mem_map) + __pfn_disp)
d2c0f041 arch/mn10300/include/asm/page.h Dan Williams  2016-01-15  110  #define __pfn_to_phys(pfn)	PFN_PHYS(pfn)
b920de1b include/asm-mn10300/page.h      David Howells 2008-02-08  111  
b920de1b include/asm-mn10300/page.h      David Howells 2008-02-08  112  #define pfn_valid(pfn)					\
b920de1b include/asm-mn10300/page.h      David Howells 2008-02-08  113  ({							\
b920de1b include/asm-mn10300/page.h      David Howells 2008-02-08  114  	unsigned long __pfn = (pfn) - __pfn_disp;	\
b920de1b include/asm-mn10300/page.h      David Howells 2008-02-08  115  	__pfn < max_mapnr;				\
b920de1b include/asm-mn10300/page.h      David Howells 2008-02-08  116  })
b920de1b include/asm-mn10300/page.h      David Howells 2008-02-08  117  
b920de1b include/asm-mn10300/page.h      David Howells 2008-02-08  118  #define virt_to_page(kaddr)	pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
b920de1b include/asm-mn10300/page.h      David Howells 2008-02-08  119  #define virt_addr_valid(kaddr)	pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
b920de1b include/asm-mn10300/page.h      David Howells 2008-02-08  120  #define page_to_phys(page)	(page_to_pfn(page) << PAGE_SHIFT)
b920de1b include/asm-mn10300/page.h      David Howells 2008-02-08  121  
b920de1b include/asm-mn10300/page.h      David Howells 2008-02-08  122  #define VM_DATA_DEFAULT_FLAGS \
b920de1b include/asm-mn10300/page.h      David Howells 2008-02-08  123  	(VM_READ | VM_WRITE | \
b920de1b include/asm-mn10300/page.h      David Howells 2008-02-08 @124  	((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0) | \
b920de1b include/asm-mn10300/page.h      David Howells 2008-02-08  125  		 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
b920de1b include/asm-mn10300/page.h      David Howells 2008-02-08  126  
b920de1b include/asm-mn10300/page.h      David Howells 2008-02-08  127  #endif /* __KERNEL__ */
b920de1b include/asm-mn10300/page.h      David Howells 2008-02-08  128  
b920de1b include/asm-mn10300/page.h      David Howells 2008-02-08  129  #endif /* _ASM_PAGE_H */

:::::: The code at line 124 was first introduced by commit
:::::: b920de1b77b72ca9432ac3f97edb26541e65e5dd mn10300: add the MN10300/AM33 architecture to the kernel

:::::: TO: David Howells <dhowells@redhat.com>
:::::: CC: Linus Torvalds <torvalds@woody.linux-foundation.org>

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

                 reply	other threads:[~2016-01-28  8:24 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=201601281651.JtF4Cw8u%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=kbuild-all@01.org \
    --cc=koct9i@gmail.com \
    --cc=linux-mm@kvack.org \
    /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