linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Michal Hocko <mhocko@kernel.org>
Cc: kbuild-all@01.org, Andrew Morton <akpm@linux-foundation.org>,
	Vlastimil Babka <vbabka@suse.cz>,
	linux-mm@kvack.org, LKML <linux-kernel@vger.kernel.org>,
	Michal Hocko <mhocko@suse.com>
Subject: Re: [PATCH] mm, vmalloc: properly track vmalloc users
Date: Wed, 3 May 2017 08:52:01 +0800	[thread overview]
Message-ID: <201705030806.pzzQRBiN%fengguang.wu@intel.com> (raw)
In-Reply-To: <20170502134657.12381-1-mhocko@kernel.org>

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

Hi Michal,

[auto build test ERROR on mmotm/master]
[also build test ERROR on next-20170502]
[cannot apply to v4.11]
[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/Michal-Hocko/mm-vmalloc-properly-track-vmalloc-users/20170503-065022
base:   git://git.cmpxchg.org/linux-mmotm.git master
config: m68k-m5475evb_defconfig (attached as .config)
compiler: m68k-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=m68k 

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

   In file included from arch/m68k/include/asm/pgtable_mm.h:145:0,
                    from arch/m68k/include/asm/pgtable.h:4,
                    from include/linux/vmalloc.h:9,
                    from arch/m68k/kernel/module.c:9:
   arch/m68k/include/asm/mcf_pgtable.h: In function 'nocache_page':
>> arch/m68k/include/asm/mcf_pgtable.h:339:43: error: 'init_mm' undeclared (first use in this function)
    #define pgd_offset_k(address) pgd_offset(&init_mm, address)
                                              ^
   arch/m68k/include/asm/mcf_pgtable.h:334:35: note: in definition of macro 'pgd_offset'
    #define pgd_offset(mm, address) ((mm)->pgd + pgd_index(address))
                                      ^
>> arch/m68k/include/asm/mcf_pgtable.h:366:8: note: in expansion of macro 'pgd_offset_k'
     dir = pgd_offset_k(addr);
           ^
   arch/m68k/include/asm/mcf_pgtable.h:339:43: note: each undeclared identifier is reported only once for each function it appears in
    #define pgd_offset_k(address) pgd_offset(&init_mm, address)
                                              ^
   arch/m68k/include/asm/mcf_pgtable.h:334:35: note: in definition of macro 'pgd_offset'
    #define pgd_offset(mm, address) ((mm)->pgd + pgd_index(address))
                                      ^
>> arch/m68k/include/asm/mcf_pgtable.h:366:8: note: in expansion of macro 'pgd_offset_k'
     dir = pgd_offset_k(addr);
           ^
   arch/m68k/include/asm/mcf_pgtable.h: In function 'cache_page':
>> arch/m68k/include/asm/mcf_pgtable.h:339:43: error: 'init_mm' undeclared (first use in this function)
    #define pgd_offset_k(address) pgd_offset(&init_mm, address)
                                              ^
   arch/m68k/include/asm/mcf_pgtable.h:334:35: note: in definition of macro 'pgd_offset'
    #define pgd_offset(mm, address) ((mm)->pgd + pgd_index(address))
                                      ^
   arch/m68k/include/asm/mcf_pgtable.h:382:8: note: in expansion of macro 'pgd_offset_k'
     dir = pgd_offset_k(addr);
           ^

vim +/init_mm +339 arch/m68k/include/asm/mcf_pgtable.h

91521c2e Greg Ungerer 2011-10-14  333  #define pgd_index(address)	((address) >> PGDIR_SHIFT)
91521c2e Greg Ungerer 2011-10-14  334  #define pgd_offset(mm, address)	((mm)->pgd + pgd_index(address))
91521c2e Greg Ungerer 2011-10-14  335  
91521c2e Greg Ungerer 2011-10-14  336  /*
91521c2e Greg Ungerer 2011-10-14  337   * Find an entry in a kernel pagetable directory.
91521c2e Greg Ungerer 2011-10-14  338   */
91521c2e Greg Ungerer 2011-10-14 @339  #define pgd_offset_k(address)	pgd_offset(&init_mm, address)
91521c2e Greg Ungerer 2011-10-14  340  
91521c2e Greg Ungerer 2011-10-14  341  /*
91521c2e Greg Ungerer 2011-10-14  342   * Find an entry in the second-level pagetable.
91521c2e Greg Ungerer 2011-10-14  343   */
91521c2e Greg Ungerer 2011-10-14  344  static inline pmd_t *pmd_offset(pgd_t *pgd, unsigned long address)
91521c2e Greg Ungerer 2011-10-14  345  {
91521c2e Greg Ungerer 2011-10-14  346  	return (pmd_t *) pgd;
91521c2e Greg Ungerer 2011-10-14  347  }
91521c2e Greg Ungerer 2011-10-14  348  
91521c2e Greg Ungerer 2011-10-14  349  /*
91521c2e Greg Ungerer 2011-10-14  350   * Find an entry in the third-level pagetable.
91521c2e Greg Ungerer 2011-10-14  351   */
91521c2e Greg Ungerer 2011-10-14  352  #define __pte_offset(address)	((address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
91521c2e Greg Ungerer 2011-10-14  353  #define pte_offset_kernel(dir, address) \
91521c2e Greg Ungerer 2011-10-14  354  	((pte_t *) __pmd_page(*(dir)) + __pte_offset(address))
91521c2e Greg Ungerer 2011-10-14  355  
91521c2e Greg Ungerer 2011-10-14  356  /*
91521c2e Greg Ungerer 2011-10-14  357   * Disable caching for page at given kernel virtual address.
91521c2e Greg Ungerer 2011-10-14  358   */
91521c2e Greg Ungerer 2011-10-14  359  static inline void nocache_page(void *vaddr)
91521c2e Greg Ungerer 2011-10-14  360  {
91521c2e Greg Ungerer 2011-10-14  361  	pgd_t *dir;
91521c2e Greg Ungerer 2011-10-14  362  	pmd_t *pmdp;
91521c2e Greg Ungerer 2011-10-14  363  	pte_t *ptep;
91521c2e Greg Ungerer 2011-10-14  364  	unsigned long addr = (unsigned long) vaddr;
91521c2e Greg Ungerer 2011-10-14  365  
91521c2e Greg Ungerer 2011-10-14 @366  	dir = pgd_offset_k(addr);
91521c2e Greg Ungerer 2011-10-14  367  	pmdp = pmd_offset(dir, addr);
91521c2e Greg Ungerer 2011-10-14  368  	ptep = pte_offset_kernel(pmdp, addr);
91521c2e Greg Ungerer 2011-10-14  369  	*ptep = pte_mknocache(*ptep);

:::::: The code at line 339 was first introduced by commit
:::::: 91521c2ea6e3d5a790df40988101ad099ddbf7c8 m68k: page table support definitions and code for ColdFire MMU

:::::: TO: Greg Ungerer <gerg@uclinux.org>
:::::: CC: Greg Ungerer <gerg@uclinux.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/gzip, Size: 6516 bytes --]

  reply	other threads:[~2017-05-03  0:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-02 13:46 [PATCH] mm, vmalloc: properly track vmalloc users Michal Hocko
2017-05-03  0:52 ` kbuild test robot [this message]
2017-05-03  6:37   ` Michal Hocko
2017-05-03 13:09     ` Michal Hocko
2017-05-09 11:19     ` Michal Hocko
2017-05-03  1:29 ` kbuild test robot

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=201705030806.pzzQRBiN%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@kernel.org \
    --cc=mhocko@suse.com \
    --cc=vbabka@suse.cz \
    /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;
as well as URLs for NNTP newsgroup(s).