lkml.org 
[lkml]   [2017]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 1/3] locking/spinlock_debug: Reduce lockup suspected message clutter
Hi Waiman,

[auto build test ERROR on tip/locking/core]
[also build test ERROR on v4.10-rc6 next-20170201]
[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/Waiman-Long/locking-spinlock_debug-Change-it-to-a-mostly-fair-lock/20170202-052215
config: arm-omap2plus_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm

All errors (new ones prefixed by >>):

kernel/built-in.o: In function `do_raw_spin_lock':
>> arch/arm/include/asm/cmpxchg.h:109: undefined reference to `__bad_xchg'
>> kernel/built-in.o:(.debug_addr+0x28c6c): undefined reference to `__bad_xchg'

vim +109 arch/arm/include/asm/cmpxchg.h

9f97da78 David Howells 2012-03-28 93 asm volatile("@ __xchg1\n"
9f97da78 David Howells 2012-03-28 94 " swpb %0, %1, [%2]"
9f97da78 David Howells 2012-03-28 95 : "=&r" (ret)
9f97da78 David Howells 2012-03-28 96 : "r" (x), "r" (ptr)
9f97da78 David Howells 2012-03-28 97 : "memory", "cc");
9f97da78 David Howells 2012-03-28 98 break;
9f97da78 David Howells 2012-03-28 99 case 4:
9f97da78 David Howells 2012-03-28 100 asm volatile("@ __xchg4\n"
9f97da78 David Howells 2012-03-28 101 " swp %0, %1, [%2]"
9f97da78 David Howells 2012-03-28 102 : "=&r" (ret)
9f97da78 David Howells 2012-03-28 103 : "r" (x), "r" (ptr)
9f97da78 David Howells 2012-03-28 104 : "memory", "cc");
9f97da78 David Howells 2012-03-28 105 break;
9f97da78 David Howells 2012-03-28 106 #endif
9f97da78 David Howells 2012-03-28 107 default:
31cd08c3 Russell King 2015-05-19 108 /* Cause a link-time error, the xchg() size is not supported */
9f97da78 David Howells 2012-03-28 @109 __bad_xchg(ptr, size), ret = 0;
9f97da78 David Howells 2012-03-28 110 break;
9f97da78 David Howells 2012-03-28 111 }
9f97da78 David Howells 2012-03-28 112
9f97da78 David Howells 2012-03-28 113 return ret;
9f97da78 David Howells 2012-03-28 114 }
9f97da78 David Howells 2012-03-28 115
0ca326de Will Deacon 2015-08-06 116 #define xchg_relaxed(ptr, x) ({ \
e001bbae Russell King 2015-05-26 117 (__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), \

:::::: The code at line 109 was first introduced by commit
:::::: 9f97da78bf018206fb623cd351d454af2f105fe0 Disintegrate asm/system.h for ARM

:::::: TO: David Howells <dhowells@redhat.com>
:::::: CC: David Howells <dhowells@redhat.com>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2017-02-02 03:22    [W:0.082 / U:0.628 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site