Re: [PATCH v4 3/5] getcpu_cache: wire up ARM system call

From: kbuild test robot
Date: Tue Feb 23 2016 - 19:57:13 EST


Hi Mathieu,

[auto build test ERROR on tip/x86/core]
[also build test ERROR on v4.5-rc5]
[cannot apply to next-20160223]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url: https://github.com/0day-ci/linux/commits/Mathieu-Desnoyers/getcpu_cache-system-call-for-4-6/20160224-073424
config: arm-at91_dt_defconfig (attached as .config)
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 >>):

arch/arm/kernel/entry-common.S: Assembler messages:
>> arch/arm/kernel/entry-common.S:132: Error: __NR_syscalls is not equal to the size of the syscall table

vim +132 arch/arm/kernel/entry-common.S

9fff2fa0 Al Viro 2012-10-10 116 movne r0, r4
14327c66 Russell King 2015-04-21 117 badrne lr, 1f
6ebbf2ce Russell King 2014-06-30 118 retne r5
68687c84 Russell King 2012-10-15 119 1: get_thread_info tsk
^1da177e Linus Torvalds 2005-04-16 120 b ret_slow_syscall
93ed3970 Catalin Marinas 2008-08-28 121 ENDPROC(ret_from_fork)
^1da177e Linus Torvalds 2005-04-16 122
fa1b4f91 Al Viro 2006-01-19 123 .equ NR_syscalls,0
fa1b4f91 Al Viro 2006-01-19 124 #define CALL(x) .equ NR_syscalls,NR_syscalls+1
^1da177e Linus Torvalds 2005-04-16 125 #include "calls.S"
1f66e06f Wade Farnsworth 2012-09-07 126
1f66e06f Wade Farnsworth 2012-09-07 127 /*
1f66e06f Wade Farnsworth 2012-09-07 128 * Ensure that the system call table is equal to __NR_syscalls,
1f66e06f Wade Farnsworth 2012-09-07 129 * which is the value the rest of the system sees
1f66e06f Wade Farnsworth 2012-09-07 130 */
1f66e06f Wade Farnsworth 2012-09-07 131 .ifne NR_syscalls - __NR_syscalls
1f66e06f Wade Farnsworth 2012-09-07 @132 .error "__NR_syscalls is not equal to the size of the syscall table"
1f66e06f Wade Farnsworth 2012-09-07 133 .endif
1f66e06f Wade Farnsworth 2012-09-07 134
fa1b4f91 Al Viro 2006-01-19 135 #undef CALL
fa1b4f91 Al Viro 2006-01-19 136 #define CALL(x) .long x
^1da177e Linus Torvalds 2005-04-16 137
^1da177e Linus Torvalds 2005-04-16 138 /*=============================================================================
^1da177e Linus Torvalds 2005-04-16 139 * SWI handler
^1da177e Linus Torvalds 2005-04-16 140 *-----------------------------------------------------------------------------

:::::: The code at line 132 was first introduced by commit
:::::: 1f66e06fb6414732bef7bf4a071ef76a837badec ARM: 7524/1: support syscall tracing

:::::: TO: Wade Farnsworth <wade_farnsworth@xxxxxxxxxx>
:::::: CC: Russell King <rmk+kernel@xxxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data