Re: [PATCH 1/1] mm/page_owner: ignore everything below the IRQ entry point

From: kbuild test robot
Date: Tue Dec 05 2017 - 01:06:04 EST


Hi Maninder,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on mmotm/master]
[also build test ERROR on v4.15-rc2 next-20171204]
[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/Maninder-Singh/mm-page_owner-ignore-everything-below-the-IRQ-entry-point/20171205-122901
base: git://git.cmpxchg.org/linux-mmotm.git master
config: tile-allmodconfig (attached as .config)
compiler: tilegx-linux-gcc (GCC) 5.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=tile

All error/warnings (new ones prefixed by >>):

In file included from include/linux/interrupt.h:22:0,
from include/linux/kernel_stat.h:9,
from mm//swap.c:18:
>> arch/tile/include/asm/sections.h:18:29: error: redefinition of 'arch_is_kernel_data'
#define arch_is_kernel_data arch_is_kernel_data
^
>> arch/tile/include/asm/sections.h:38:19: note: in expansion of macro 'arch_is_kernel_data'
static inline int arch_is_kernel_data(unsigned long addr)
^
In file included from include/linux/stacktrace.h:6:0,
from include/linux/lockdep.h:29,
from include/linux/spinlock_types.h:18,
from include/linux/spinlock.h:82,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from mm//swap.c:16:
include/asm-generic/sections.h:70:19: note: previous definition of 'arch_is_kernel_data' was here
static inline int arch_is_kernel_data(unsigned long addr)
^

vim +/arch_is_kernel_data +18 arch/tile/include/asm/sections.h

867e359b Chris Metcalf 2010-05-28 17
867e359b Chris Metcalf 2010-05-28 @18 #define arch_is_kernel_data arch_is_kernel_data
867e359b Chris Metcalf 2010-05-28 19
867e359b Chris Metcalf 2010-05-28 20 #include <asm-generic/sections.h>
867e359b Chris Metcalf 2010-05-28 21
4a556f4f Chris Metcalf 2013-08-07 22 extern char vdso_start[], vdso_end[];
4a556f4f Chris Metcalf 2013-08-07 23 #ifdef CONFIG_COMPAT
4a556f4f Chris Metcalf 2013-08-07 24 extern char vdso32_start[], vdso32_end[];
4a556f4f Chris Metcalf 2013-08-07 25 #endif
0707ad30 Chris Metcalf 2010-06-25 26
0707ad30 Chris Metcalf 2010-06-25 27 /* Not exactly sections, but PC comparison points in the code. */
0707ad30 Chris Metcalf 2010-06-25 28 extern char __rt_sigreturn[], __rt_sigreturn_end[];
2f9ac29e Chris Metcalf 2013-08-06 29 #ifdef __tilegx__
2f9ac29e Chris Metcalf 2013-08-06 30 extern char __start_unalign_asm_code[], __end_unalign_asm_code[];
2f9ac29e Chris Metcalf 2013-08-06 31 #else
0707ad30 Chris Metcalf 2010-06-25 32 extern char sys_cmpxchg[], __sys_cmpxchg_end[];
0707ad30 Chris Metcalf 2010-06-25 33 extern char __sys_cmpxchg_grab_lock[];
0707ad30 Chris Metcalf 2010-06-25 34 extern char __start_atomic_asm_code[], __end_atomic_asm_code[];
0707ad30 Chris Metcalf 2010-06-25 35 #endif
867e359b Chris Metcalf 2010-05-28 36
40a3b8df Jiang Liu 2013-07-03 37 /* Handle the discontiguity between _sdata and _text. */
867e359b Chris Metcalf 2010-05-28 @38 static inline int arch_is_kernel_data(unsigned long addr)
867e359b Chris Metcalf 2010-05-28 39 {
867e359b Chris Metcalf 2010-05-28 40 return addr >= (unsigned long)_sdata &&
867e359b Chris Metcalf 2010-05-28 41 addr < (unsigned long)_end;
867e359b Chris Metcalf 2010-05-28 42 }
867e359b Chris Metcalf 2010-05-28 43

:::::: The code at line 18 was first introduced by commit
:::::: 867e359b97c970a60626d5d76bbe2a8fadbf38fb arch/tile: core support for Tilera 32-bit chips.

:::::: TO: Chris Metcalf <cmetcalf@xxxxxxxxxx>
:::::: CC: Chris Metcalf <cmetcalf@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