tree:
https://github.com/weiny2/linux-kernel.git lm-misc4
head: 413900345f279daed0a18bbe2a961937f3bed04a
commit: ac6e51614cb3f8e21f9cc4361f99cf2b8797c777 [6/9] arch/kmap: Remove redundant arch
specific kmaps
config: mips-32r2_defconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout ac6e51614cb3f8e21f9cc4361f99cf2b8797c777
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/preempt.h:5,
from ./arch/mips/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/compat.h:10,
from arch/mips/kernel/asm-offsets.c:12:
arch/mips/include/asm/cacheflush.h: In function 'flush_kernel_dcache_page':
include/linux/page-flags.h:382:41: error: implicit declaration of function
'page_zonenum' [-Werror=implicit-function-declaration]
382 | #define PageHighMem(__p) is_highmem_idx(page_zonenum(__p))
| ^~~~~~~~~~~~
arch/mips/include/asm/bug.h:34:44: note: in definition of macro 'BUG_ON'
34 | #define BUG_ON(C) __BUG_ON((unsigned long)(C))
| ^
arch/mips/include/asm/cacheflush.h:131:31: note: in expansion of macro
'PageHighMem'
131 | BUG_ON(cpu_has_dc_aliases && PageHighMem(page));
| ^~~~~~~~~~~
In file included from arch/mips/include/asm/tlbflush.h:25,
from arch/mips/include/asm/highmem.h:28,
from arch/mips/include/asm/pgtable-32.h:22,
from arch/mips/include/asm/pgtable.h:14,
from include/linux/mm.h:95,
from arch/mips/kernel/asm-offsets.c:15:
arch/mips/include/asm/mmu_context.h: In function 'switch_mm':
arch/mips/include/asm/mmu_context.h:165:2: error: implicit declaration of function
'htw_stop' [-Werror=implicit-function-declaration]
165 | htw_stop();
| ^~~~~~~~
> arch/mips/include/asm/mmu_context.h:174:2: error: implicit
declaration of function 'htw_start'; did you mean 'va_start'?
[-Werror=implicit-function-declaration]
174 | htw_start();
| ^~~~~~~~~
| va_start
In file included from arch/mips/include/asm/pgtable-32.h:22,
from arch/mips/include/asm/pgtable.h:14,
from include/linux/mm.h:95,
from arch/mips/kernel/asm-offsets.c:15:
arch/mips/include/asm/highmem.h: In function 'kmap':
arch/mips/include/asm/highmem.h:55:15: error: implicit declaration of function
'__kmap'; did you mean 'kmap'? [-Werror=implicit-function-declaration]
55 | void *addr = __kmap(page);
| ^~~~~~
| kmap
arch/mips/include/asm/highmem.h:55:15: warning: initialization of 'void *' from
'int' makes pointer from integer without a cast [-Wint-conversion]
In file included from arch/mips/kernel/asm-offsets.c:15:
include/linux/mm.h: At top level:
include/linux/mm.h:1051:30: error: conflicting types for 'page_zonenum'
1051 | static inline enum zone_type page_zonenum(const struct page *page)
| ^~~~~~~~~~~~
In file included from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/preempt.h:5,
from ./arch/mips/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/compat.h:10,
from arch/mips/kernel/asm-offsets.c:12:
include/linux/page-flags.h:382:41: note: previous implicit declaration of
'page_zonenum' was here
382 | #define PageHighMem(__p) is_highmem_idx(page_zonenum(__p))
| ^~~~~~~~~~~~
arch/mips/include/asm/bug.h:34:44: note: in definition of macro 'BUG_ON'
34 | #define BUG_ON(C) __BUG_ON((unsigned long)(C))
| ^
arch/mips/include/asm/cacheflush.h:131:31: note: in expansion of macro
'PageHighMem'
131 | BUG_ON(cpu_has_dc_aliases && PageHighMem(page));
| ^~~~~~~~~~~
In file included from include/linux/pagemap.h:11,
from include/linux/blkdev.h:16,
from include/linux/blk-cgroup.h:23,
from include/linux/writeback.h:14,
from include/linux/memcontrol.h:22,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/mips/kernel/asm-offsets.c:17:
include/linux/highmem.h:34:14: error: conflicting types for '__kmap'
34 | extern void *__kmap(struct page *page);
| ^~~~~~
In file included from arch/mips/include/asm/pgtable-32.h:22,
from arch/mips/include/asm/pgtable.h:14,
from include/linux/mm.h:95,
from arch/mips/kernel/asm-offsets.c:15:
arch/mips/include/asm/highmem.h:55:15: note: previous implicit declaration of
'__kmap' was here
55 | void *addr = __kmap(page);
| ^~~~~~
In file included from include/linux/pagemap.h:11,
from include/linux/blkdev.h:16,
from include/linux/blk-cgroup.h:23,
from include/linux/writeback.h:14,
from include/linux/memcontrol.h:22,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/mips/kernel/asm-offsets.c:17:
include/linux/highmem.h:40:21: error: redefinition of 'kmap'
40 | static inline void *kmap(struct page *page)
| ^~~~
In file included from arch/mips/include/asm/pgtable-32.h:22,
from arch/mips/include/asm/pgtable.h:14,
from include/linux/mm.h:95,
from arch/mips/kernel/asm-offsets.c:15:
arch/mips/include/asm/highmem.h:53:21: note: previous definition of 'kmap' was
here
53 | static inline void *kmap(struct page *page)
| ^~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:100: arch/mips/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1141: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:180: sub-make] Error 2
34 real 7 user 15 sys 67.54% cpu make prepare
vim +174 arch/mips/include/asm/mmu_context.h
^1da177e4c3f41 include/asm-mips/mmu_context.h Linus Torvalds 2005-04-16 157
^1da177e4c3f41 include/asm-mips/mmu_context.h Linus Torvalds 2005-04-16 158 static
inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,
^1da177e4c3f41 include/asm-mips/mmu_context.h Linus Torvalds 2005-04-16 159
struct task_struct *tsk)
^1da177e4c3f41 include/asm-mips/mmu_context.h Linus Torvalds 2005-04-16 160 {
^1da177e4c3f41 include/asm-mips/mmu_context.h Linus Torvalds 2005-04-16 161
unsigned int cpu = smp_processor_id();
^1da177e4c3f41 include/asm-mips/mmu_context.h Linus Torvalds 2005-04-16 162
unsigned long flags;
^1da177e4c3f41 include/asm-mips/mmu_context.h Linus Torvalds 2005-04-16 163
local_irq_save(flags);
^1da177e4c3f41 include/asm-mips/mmu_context.h Linus Torvalds 2005-04-16 164
ed4cbc81addbc0 arch/mips/include/asm/mmu_context.h Markos Chandras 2015-01-26 165
htw_stop();
42d5b846574f09 arch/mips/include/asm/mmu_context.h Paul Burton 2019-02-02 166
check_switch_mmu_context(next);
^1da177e4c3f41 include/asm-mips/mmu_context.h Linus Torvalds 2005-04-16 167
^1da177e4c3f41 include/asm-mips/mmu_context.h Linus Torvalds 2005-04-16 168 /*
^1da177e4c3f41 include/asm-mips/mmu_context.h Linus Torvalds 2005-04-16 169 *
Mark current->active_mm as not "active" anymore.
^1da177e4c3f41 include/asm-mips/mmu_context.h Linus Torvalds 2005-04-16 170 * We
don't want to mislead possible IPI tlb flush routines.
^1da177e4c3f41 include/asm-mips/mmu_context.h Linus Torvalds 2005-04-16 171 */
55b8cab49dd43d arch/mips/include/asm/mmu_context.h Rusty Russell 2009-09-24 172
cpumask_clear_cpu(cpu, mm_cpumask(prev));
55b8cab49dd43d arch/mips/include/asm/mmu_context.h Rusty Russell 2009-09-24 173
cpumask_set_cpu(cpu, mm_cpumask(next));
ed4cbc81addbc0 arch/mips/include/asm/mmu_context.h Markos Chandras 2015-01-26 @174
htw_start();
^1da177e4c3f41 include/asm-mips/mmu_context.h Linus Torvalds 2005-04-16 175
^1da177e4c3f41 include/asm-mips/mmu_context.h Linus Torvalds 2005-04-16 176
local_irq_restore(flags);
^1da177e4c3f41 include/asm-mips/mmu_context.h Linus Torvalds 2005-04-16 177 }
^1da177e4c3f41 include/asm-mips/mmu_context.h Linus Torvalds 2005-04-16 178
:::::: The code at line 174 was first introduced by commit
:::::: ed4cbc81addbc076b016c5b979fd1a02f0897f0a MIPS: HTW: Prevent accidental HTW start
due to nested htw_{start, stop}
:::::: TO: Markos Chandras <markos.chandras(a)imgtec.com>
:::::: CC: Ralf Baechle <ralf(a)linux-mips.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org