include/linux/atomic.h:475:29: error: implicit declaration of function 'cmpxchg64'
From: kbuild test robot
Date: Sun Sep 17 2017 - 02:31:29 EST
Hi Rob,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
commit: 0ae349a0f33fb040a2bc228fdc6d60111455feab iommu/qcom: Add qcom_iommu
date: 5 weeks ago
config: m32r-allmodconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 6.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 0ae349a0f33fb040a2bc228fdc6d60111455feab
# save the attached .config to linux build tree
make.cross ARCH=m32r
All errors (new ones prefixed by >>):
In file included from drivers//iommu/io-pgtable-arm.c:23:0:
drivers//iommu/io-pgtable-arm.c: In function 'arm_lpae_install_table':
>> include/linux/atomic.h:475:29: error: implicit declaration of function 'cmpxchg64' [-Werror=implicit-function-declaration]
#define cmpxchg64_relaxed cmpxchg64
^
drivers//iommu/io-pgtable-arm.c:341:8: note: in expansion of macro 'cmpxchg64_relaxed'
old = cmpxchg64_relaxed(ptep, curr, new);
^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from drivers/iommu/io-pgtable-arm.c:23:0:
drivers/iommu/io-pgtable-arm.c: In function 'arm_lpae_install_table':
>> include/linux/atomic.h:475:29: error: implicit declaration of function 'cmpxchg64' [-Werror=implicit-function-declaration]
#define cmpxchg64_relaxed cmpxchg64
^
drivers/iommu/io-pgtable-arm.c:341:8: note: in expansion of macro 'cmpxchg64_relaxed'
old = cmpxchg64_relaxed(ptep, curr, new);
^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/cmpxchg64 +475 include/linux/atomic.h
654672d4 Will Deacon 2015-08-06 472
654672d4 Will Deacon 2015-08-06 473 /* cmpxchg64_relaxed */
654672d4 Will Deacon 2015-08-06 474 #ifndef cmpxchg64_relaxed
654672d4 Will Deacon 2015-08-06 @475 #define cmpxchg64_relaxed cmpxchg64
654672d4 Will Deacon 2015-08-06 476 #define cmpxchg64_acquire cmpxchg64
654672d4 Will Deacon 2015-08-06 477 #define cmpxchg64_release cmpxchg64
654672d4 Will Deacon 2015-08-06 478
:::::: The code at line 475 was first introduced by commit
:::::: 654672d4ba1a6001c365833be895f9477c4d5eab locking/atomics: Add _{acquire|release|relaxed}() variants of some atomic operations
:::::: TO: Will Deacon <will.deacon@xxxxxxx>
:::::: CC: Ingo Molnar <mingo@xxxxxxxxxx>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip