From: kbuild test robot <lkp@intel.com>
To: Robin Murphy <robin.murphy@arm.com>
Cc: kbuild-all@01.org, Johannes Weiner <hannes@cmpxchg.org>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [liu-song6-linux:uprobe-thp 92/185] arch/arm64/include/asm/pgtable.h:93:27: error: expected identifier or '(' before '!' token
Date: Wed, 29 May 2019 15:54:52 +0800 [thread overview]
Message-ID: <201905291549.xlVZd4Ss%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3378 bytes --]
tree: https://github.com/liu-song-6/linux.git uprobe-thp
head: 950e997c620db50b4f7e578631f6c8b0e1315778
commit: 5760548d3bd197b0858ccaf3ec8039aedba5832f [92/185] arm64: mm: Implement pte_devmap support
config: arm64-allnoconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 7.4.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 5760548d3bd197b0858ccaf3ec8039aedba5832f
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/linux/mm.h:99:0,
from arch/arm64/kernel/asm-offsets.c:23:
>> arch/arm64/include/asm/pgtable.h:93:27: error: expected identifier or '(' before '!' token
#define pte_devmap(pte) (!!(pte_val(pte) & PTE_DEVMAP))
^
>> arch/arm64/include/asm/pgtable.h:390:26: note: in expansion of macro 'pte_devmap'
#define pmd_devmap(pmd) pte_devmap(pmd_pte(pmd))
^~~~~~~~~~
>> include/linux/mm.h:540:19: note: in expansion of macro 'pmd_devmap'
static inline int pmd_devmap(pmd_t pmd)
^~~~~~~~~~
In file included from arch/arm64/kernel/asm-offsets.c:23:0:
>> include/linux/mm.h:544:19: error: redefinition of 'pud_devmap'
static inline int pud_devmap(pud_t pud)
^~~~~~~~~~
In file included from include/linux/mm.h:99:0,
from arch/arm64/kernel/asm-offsets.c:23:
arch/arm64/include/asm/pgtable.h:549:19: note: previous definition of 'pud_devmap' was here
static inline int pud_devmap(pud_t pud)
^~~~~~~~~~
In file included from arch/arm64/kernel/asm-offsets.c:23:0:
>> include/linux/mm.h:548:19: error: redefinition of 'pgd_devmap'
static inline int pgd_devmap(pgd_t pgd)
^~~~~~~~~~
In file included from include/linux/mm.h:99:0,
from arch/arm64/kernel/asm-offsets.c:23:
arch/arm64/include/asm/pgtable.h:641:19: note: previous definition of 'pgd_devmap' was here
static inline int pgd_devmap(pgd_t pgd)
^~~~~~~~~~
make[2]: *** [arch/arm64/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 +93 arch/arm64/include/asm/pgtable.h
83
84 /*
85 * The following only work if pte_present(). Undefined behaviour otherwise.
86 */
87 #define pte_present(pte) (!!(pte_val(pte) & (PTE_VALID | PTE_PROT_NONE)))
88 #define pte_young(pte) (!!(pte_val(pte) & PTE_AF))
89 #define pte_special(pte) (!!(pte_val(pte) & PTE_SPECIAL))
90 #define pte_write(pte) (!!(pte_val(pte) & PTE_WRITE))
91 #define pte_user_exec(pte) (!(pte_val(pte) & PTE_UXN))
92 #define pte_cont(pte) (!!(pte_val(pte) & PTE_CONT))
> 93 #define pte_devmap(pte) (!!(pte_val(pte) & PTE_DEVMAP))
94
---
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: 7835 bytes --]
next reply other threads:[~2019-05-29 7:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-29 7:54 kbuild test robot [this message]
2019-05-29 21:49 ` Andrew Morton
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=201905291549.xlVZd4Ss%lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=hannes@cmpxchg.org \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.org \
--cc=robin.murphy@arm.com \
/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