tree: https://git.kernel.org/pub/scm/linux/kernel/git/mhocko/mm.git down_write_killable-core-4.5-merge head: 2abae317b1c05a462762da079706a9222c99209f commit: b5e50bccc40edf01218784bd14a6f9c2222b638b [11/12] locking, rwsem: provide down_write_killable config: i386-randconfig-x0-04170940 (attached as .config) reproduce: git checkout b5e50bccc40edf01218784bd14a6f9c2222b638b # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): In file included from include/linux/rwsem.h:52:0, from include/linux/mm_types.h:10, from include/linux/sched.h:27, from kernel/locking/rwsem.c:9: kernel/locking/rwsem.c: In function 'down_write_killable': >> arch/x86/include/asm/rwsem.h:106:2: error: 'asm' operand has impossible constraints asm volatile("# beginning down_write\n\t" \ ^ arch/x86/include/asm/rwsem.h:128:13: note: in expansion of macro '____down_write' if (IS_ERR(____down_write(sem, "call_rwsem_down_write_failed_killable"))) ^ vim +/asm +106 arch/x86/include/asm/rwsem.h ^1da177e include/asm-i386/rwsem.h Linus Torvalds 2005-04-16 100 * lock for writing ^1da177e include/asm-i386/rwsem.h Linus Torvalds 2005-04-16 101 */ fae51f6c arch/x86/include/asm/rwsem.h Michal Hocko 2016-02-01 102 #define ____down_write(sem, slow_path) \ fae51f6c arch/x86/include/asm/rwsem.h Michal Hocko 2016-02-01 103 ({ \ fae51f6c arch/x86/include/asm/rwsem.h Michal Hocko 2016-02-01 104 long tmp; \ fae51f6c arch/x86/include/asm/rwsem.h Michal Hocko 2016-02-01 105 struct rw_semaphore* ret = sem; \ fae51f6c arch/x86/include/asm/rwsem.h Michal Hocko 2016-02-01 @106 asm volatile("# beginning down_write\n\t" \ fae51f6c arch/x86/include/asm/rwsem.h Michal Hocko 2016-02-01 107 LOCK_PREFIX " xadd %1,(%2)\n\t" \ fae51f6c arch/x86/include/asm/rwsem.h Michal Hocko 2016-02-01 108 /* adds 0xffff0001, returns the old value */ \ fae51f6c arch/x86/include/asm/rwsem.h Michal Hocko 2016-02-01 109 " test " __ASM_SEL(%w1,%k1) "," __ASM_SEL(%w1,%k1) "\n\t" \ :::::: The code at line 106 was first introduced by commit :::::: fae51f6cba6ec620af820033d4feecb075a11909 x86, rwsem: provide __down_write_killable :::::: TO: Michal Hocko <mhocko@xxxxxxxx> :::::: CC: Michal Hocko <mhocko@xxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data