linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Dan Williams <dan.j.williams@intel.com>
Cc: kbuild-all@01.org, Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 13808/14071] arch/arm/include/asm/pgtable-3level.h:228:25: note: in expansion of macro 'pmd_write'
Date: Thu, 23 Nov 2017 00:44:50 +0800	[thread overview]
Message-ID: <201711230046.iK2mFk89%fengguang.wu@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   aa1fbe633d3034f9f838ff13387af04771e68e31
commit: 5292abe86ee6b74a475d33d38bf5a266dacece0b [13808/14071] mm: fix device-dax pud write-faults triggered by get_user_pages()
config: arm-axm55xx_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 5292abe86ee6b74a475d33d38bf5a266dacece0b
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

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

   In file included from arch/arm/include/asm/pgtable.h:32:0,
                    from include/linux/memremap.h:8,
                    from include/linux/mm.h:27,
                    from arch/arm/kernel/asm-offsets.c:15:
>> arch/arm/include/asm/pgtable-3level.h:212:32: error: expected identifier or '(' before '!' token
    #define pmd_isclear(pmd, val) (!(pmd_val(pmd) & (val)))
                                   ^
>> arch/arm/include/asm/pgtable-3level.h:225:26: note: in expansion of macro 'pmd_isclear'
    #define pmd_write(pmd)  (pmd_isclear((pmd), L_PMD_SECT_RDONLY))
                             ^~~~~~~~~~~
>> arch/arm/include/asm/pgtable-3level.h:228:25: note: in expansion of macro 'pmd_write'
    #define pud_write(pud)  pmd_write(__pmd(pud_val(pud)))
                            ^~~~~~~~~
   include/asm-generic/pgtable.h:817:19: note: in expansion of macro 'pud_write'
    static inline int pud_write(pud_t pud)
                      ^~~~~~~~~
   make[2]: *** [arch/arm/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2

vim +/pmd_write +228 arch/arm/include/asm/pgtable-3level.h

1355e2a6 Catalin Marinas 2012-07-25  209  
f2950706 Steven Capper   2014-07-18  210  #define pmd_isset(pmd, val)	((u32)(val) == (val) ? pmd_val(pmd) & (val) \
f2950706 Steven Capper   2014-07-18  211  						: !!(pmd_val(pmd) & (val)))
f2950706 Steven Capper   2014-07-18 @212  #define pmd_isclear(pmd, val)	(!(pmd_val(pmd) & (val)))
f2950706 Steven Capper   2014-07-18  213  
62453188 Will Deacon     2016-06-07  214  #define pmd_present(pmd)	(pmd_isset((pmd), L_PMD_SECT_VALID))
f2950706 Steven Capper   2014-07-18  215  #define pmd_young(pmd)		(pmd_isset((pmd), PMD_SECT_AF))
bd951303 Steve Capper    2014-10-09  216  #define pte_special(pte)	(pte_isset((pte), L_PTE_SPECIAL))
bd951303 Steve Capper    2014-10-09  217  static inline pte_t pte_mkspecial(pte_t pte)
bd951303 Steve Capper    2014-10-09  218  {
bd951303 Steve Capper    2014-10-09  219  	pte_val(pte) |= L_PTE_SPECIAL;
bd951303 Steve Capper    2014-10-09  220  	return pte;
bd951303 Steve Capper    2014-10-09  221  }
bd951303 Steve Capper    2014-10-09  222  #define	__HAVE_ARCH_PTE_SPECIAL
8d962507 Catalin Marinas 2012-07-25  223  
8d962507 Catalin Marinas 2012-07-25  224  #define __HAVE_ARCH_PMD_WRITE
ded94779 Steven Capper   2014-07-18 @225  #define pmd_write(pmd)		(pmd_isclear((pmd), L_PMD_SECT_RDONLY))
ded94779 Steven Capper   2014-07-18  226  #define pmd_dirty(pmd)		(pmd_isset((pmd), L_PMD_SECT_DIRTY))
b8cd51af Steve Capper    2014-10-09  227  #define pud_page(pud)		pmd_page(__pmd(pud_val(pud)))
b8cd51af Steve Capper    2014-10-09 @228  #define pud_write(pud)		pmd_write(__pmd(pud_val(pud)))
8d962507 Catalin Marinas 2012-07-25  229  

:::::: The code at line 228 was first introduced by commit
:::::: b8cd51afe05a98ef907e61c603d5c5b7ad6242d8 arm: mm: enable RCU fast_gup

:::::: TO: Steve Capper <steve.capper@linaro.org>
:::::: CC: Linus Torvalds <torvalds@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/gzip, Size: 20335 bytes --]

             reply	other threads:[~2017-11-22 16:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-22 16:44 kbuild test robot [this message]
2017-11-22 21:37 ` Dan Williams

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=201711230046.iK2mFk89%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=dan.j.williams@intel.com \
    --cc=kbuild-all@01.org \
    --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