include/linux/compiler.h:183: undefined reference to `__tracepoint_dwc3_readl'

From: kbuild test robot
Date: Sun Feb 18 2018 - 09:01:16 EST


Hi Zhenyu,

It's probably a bug fix that unveils the link errors.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c786427f57b6dc4f56f9a84da52b41216e94f125
commit: c20164dbd508c410f5d5f6b121e6cfae7c2da8ba drm/i915/gvt: always use i915_reg_t for MMIO handler definition
date: 8 weeks ago
config: x86_64-randconfig-h0-02181955 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout c20164dbd508c410f5d5f6b121e6cfae7c2da8ba
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

drivers/usb/dwc3/core.o: In function `__read_once_size':
>> include/linux/compiler.h:183: undefined reference to `__tracepoint_dwc3_readl'
>> include/linux/compiler.h:183: undefined reference to `__tracepoint_dwc3_readl'
>> include/linux/compiler.h:183: undefined reference to `__tracepoint_dwc3_writel'
>> include/linux/compiler.h:183: undefined reference to `__tracepoint_dwc3_writel'
>> include/linux/compiler.h:183: undefined reference to `__tracepoint_dwc3_writel'
>> include/linux/compiler.h:183: undefined reference to `__tracepoint_dwc3_writel'
>> include/linux/compiler.h:183: undefined reference to `__tracepoint_dwc3_readl'
>> include/linux/compiler.h:183: undefined reference to `__tracepoint_dwc3_readl'
>> include/linux/compiler.h:183: undefined reference to `__tracepoint_dwc3_writel'
>> include/linux/compiler.h:183: undefined reference to `__tracepoint_dwc3_writel'
>> include/linux/compiler.h:183: undefined reference to `__tracepoint_dwc3_writel'
>> include/linux/compiler.h:183: undefined reference to `__tracepoint_dwc3_writel'
>> include/linux/compiler.h:183: undefined reference to `__tracepoint_dwc3_writel'
drivers/usb/dwc3/core.o:include/linux/compiler.h:183: more undefined references to `__tracepoint_dwc3_writel' follow
drivers/usb/dwc3/core.o: In function `__read_once_size':
>> include/linux/compiler.h:183: undefined reference to `__tracepoint_dwc3_readl'
>> include/linux/compiler.h:183: undefined reference to `__tracepoint_dwc3_readl'
>> include/linux/compiler.h:183: undefined reference to `__tracepoint_dwc3_writel'
>> include/linux/compiler.h:183: undefined reference to `__tracepoint_dwc3_writel'
>> include/linux/compiler.h:183: undefined reference to `__tracepoint_dwc3_readl'
>> include/linux/compiler.h:183: undefined reference to `__tracepoint_dwc3_readl'
>> include/linux/compiler.h:183: undefined reference to `__tracepoint_dwc3_readl'

vim +183 include/linux/compiler.h

d976441f Andrey Ryabinin 2015-10-19 179
d976441f Andrey Ryabinin 2015-10-19 180 static __always_inline
d976441f Andrey Ryabinin 2015-10-19 181 void __read_once_size(const volatile void *p, void *res, int size)
230fa253 Christian Borntraeger 2014-11-25 182 {
d976441f Andrey Ryabinin 2015-10-19 @183 __READ_ONCE_SIZE;
230fa253 Christian Borntraeger 2014-11-25 184 }
d976441f Andrey Ryabinin 2015-10-19 185

:::::: The code at line 183 was first introduced by commit
:::::: d976441f44bc5d48635d081d277aa76556ffbf8b compiler, atomics, kasan: Provide READ_ONCE_NOCHECK()

:::::: TO: Andrey Ryabinin <aryabinin@xxxxxxxxxxxxx>
:::::: 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