tree:
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git mm/tlb
head: 55e3796107033e2da8c8093a5e6c098e68b9c42c
commit: 55e3796107033e2da8c8093a5e6c098e68b9c42c [10/10] m68k/tlb: Fix __p*_free_tlb()
config: m68k-randconfig-r006-20200716 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 55e3796107033e2da8c8093a5e6c098e68b9c42c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from arch/m68k/include/asm/pgalloc.h:12,
from include/asm-generic/tlb.h:17,
from arch/m68k/include/asm/tlb.h:5,
from arch/m68k/kernel/sys_m68k.c:35:
arch/m68k/include/asm/mcf_pgalloc.h: In function '__pte_free_tlb':
> arch/m68k/include/asm/mcf_pgalloc.h:43:2: error: implicit
declaration of function 'tlb_remove_page' [-Werror=implicit-function-declaration]
43 | tlb_remove_page(tlb, page);
| ^~~~~~~~~~~~~~~
In file included from arch/m68k/include/asm/tlb.h:5,
from arch/m68k/kernel/sys_m68k.c:35:
include/asm-generic/tlb.h: At top level:
> include/asm-generic/tlb.h:446:20: warning: conflicting types for
'tlb_remove_page'
446 | static inline void tlb_remove_page(struct
mmu_gather *tlb, struct page *page)
| ^~~~~~~~~~~~~~~
> include/asm-generic/tlb.h:446:20: error: static declaration of
'tlb_remove_page' follows non-static declaration
In file included from
arch/m68k/include/asm/pgalloc.h:12,
from include/asm-generic/tlb.h:17,
from arch/m68k/include/asm/tlb.h:5,
from arch/m68k/kernel/sys_m68k.c:35:
arch/m68k/include/asm/mcf_pgalloc.h:43:2: note: previous implicit declaration of
'tlb_remove_page' was here
43 | tlb_remove_page(tlb, page);
| ^~~~~~~~~~~~~~~
arch/m68k/kernel/sys_m68k.c:40:17: warning: no previous prototype for
'sys_mmap2' [-Wmissing-prototypes]
40 | asmlinkage long sys_mmap2(unsigned long addr, unsigned long len,
| ^~~~~~~~~
arch/m68k/kernel/sys_m68k.c:378:1: warning: no previous prototype for
'sys_cacheflush' [-Wmissing-prototypes]
378 | sys_cacheflush (unsigned long addr, int scope, int cache, unsigned long len)
| ^~~~~~~~~~~~~~
arch/m68k/kernel/sys_m68k.c:461:1: warning: no previous prototype for
'sys_atomic_cmpxchg_32' [-Wmissing-prototypes]
461 | sys_atomic_cmpxchg_32(unsigned long newval, int oldval, int d3, int d4, int
d5,
| ^~~~~~~~~~~~~~~~~~~~~
arch/m68k/kernel/sys_m68k.c:560:16: warning: no previous prototype for
'sys_getpagesize' [-Wmissing-prototypes]
560 | asmlinkage int sys_getpagesize(void)
| ^~~~~~~~~~~~~~~
arch/m68k/kernel/sys_m68k.c:565:26: warning: no previous prototype for
'sys_get_thread_area' [-Wmissing-prototypes]
565 | asmlinkage unsigned long sys_get_thread_area(void)
| ^~~~~~~~~~~~~~~~~~~
arch/m68k/kernel/sys_m68k.c:570:16: warning: no previous prototype for
'sys_set_thread_area' [-Wmissing-prototypes]
570 | asmlinkage int sys_set_thread_area(unsigned long tp)
| ^~~~~~~~~~~~~~~~~~~
arch/m68k/kernel/sys_m68k.c:576:16: warning: no previous prototype for
'sys_atomic_barrier' [-Wmissing-prototypes]
576 | asmlinkage int sys_atomic_barrier(void)
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/rculist.h:10,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from include/linux/sched/numa_balancing.h:10,
from include/trace/events/sched.h:8,
from kernel/sched/core.c:10:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with
null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET
&& (void *)(kaddr) < high_memory)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro
'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
In file included from arch/m68k/include/asm/bug.h:32,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/preempt.h:5,
from ./arch/m68k/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from arch/m68k/include/asm/irqflags.h:6,
from include/linux/irqflags.h:16,
from arch/m68k/include/asm/atomic.h:6,
from include/linux/atomic.h:7,
from include/linux/rcupdate.h:25,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from include/linux/sched/numa_balancing.h:10,
from include/trace/events/sched.h:8,
from kernel/sched/core.c:10:
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with
null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET
&& (void *)(kaddr) < high_memory)
| ^~
include/asm-generic/bug.h:145:27: note: in definition of macro 'WARN_ON_ONCE'
145 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
arch/m68k/include/asm/page_mm.h:170:25: note: in expansion of macro
'virt_addr_valid'
170 | #define pfn_valid(pfn) virt_addr_valid(pfn_to_virt(pfn))
| ^~~~~~~~~~~~~~~
include/linux/dma-mapping.h:352:19: note: in expansion of macro 'pfn_valid'
352 | if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr))))
| ^~~~~~~~~
In file included from arch/m68k/include/asm/pgalloc.h:12,
from include/asm-generic/tlb.h:17,
from arch/m68k/include/asm/tlb.h:5,
from kernel/sched/sched.h:69,
from kernel/sched/core.c:13:
arch/m68k/include/asm/mcf_pgalloc.h: In function '__pte_free_tlb':
> arch/m68k/include/asm/mcf_pgalloc.h:43:2: error: implicit
declaration of function 'tlb_remove_page' [-Werror=implicit-function-declaration]
43 | tlb_remove_page(tlb, page);
| ^~~~~~~~~~~~~~~
In file included from arch/m68k/include/asm/tlb.h:5,
from kernel/sched/sched.h:69,
from kernel/sched/core.c:13:
include/asm-generic/tlb.h: At top level:
> include/asm-generic/tlb.h:446:20: warning: conflicting types for
'tlb_remove_page'
446 | static inline void tlb_remove_page(struct
mmu_gather *tlb, struct page *page)
| ^~~~~~~~~~~~~~~
> include/asm-generic/tlb.h:446:20: error: static declaration of
'tlb_remove_page' follows non-static declaration
In file included from
arch/m68k/include/asm/pgalloc.h:12,
from include/asm-generic/tlb.h:17,
from arch/m68k/include/asm/tlb.h:5,
from kernel/sched/sched.h:69,
from kernel/sched/core.c:13:
arch/m68k/include/asm/mcf_pgalloc.h:43:2: note: previous implicit declaration of
'tlb_remove_page' was here
43 | tlb_remove_page(tlb, page);
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/rculist.h:10,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from kernel/sched/sched.h:5,
from kernel/sched/fair.c:23:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with
null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET
&& (void *)(kaddr) < high_memory)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro
'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
In file included from arch/m68k/include/asm/bug.h:32,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/preempt.h:5,
from ./arch/m68k/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from arch/m68k/include/asm/irqflags.h:6,
from include/linux/irqflags.h:16,
from arch/m68k/include/asm/atomic.h:6,
from include/linux/atomic.h:7,
from include/linux/rcupdate.h:25,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from kernel/sched/sched.h:5,
from kernel/sched/fair.c:23:
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with
null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET
&& (void *)(kaddr) < high_memory)
| ^~
include/asm-generic/bug.h:145:27: note: in definition of macro 'WARN_ON_ONCE'
145 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
arch/m68k/include/asm/page_mm.h:170:25: note: in expansion of macro
'virt_addr_valid'
170 | #define pfn_valid(pfn) virt_addr_valid(pfn_to_virt(pfn))
| ^~~~~~~~~~~~~~~
include/linux/dma-mapping.h:352:19: note: in expansion of macro 'pfn_valid'
352 | if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr))))
| ^~~~~~~~~
In file included from arch/m68k/include/asm/pgalloc.h:12,
from include/asm-generic/tlb.h:17,
from arch/m68k/include/asm/tlb.h:5,
from kernel/sched/sched.h:69,
from kernel/sched/fair.c:23:
arch/m68k/include/asm/mcf_pgalloc.h: In function '__pte_free_tlb':
> arch/m68k/include/asm/mcf_pgalloc.h:43:2: error: implicit
declaration of function 'tlb_remove_page' [-Werror=implicit-function-declaration]
43 | tlb_remove_page(tlb, page);
| ^~~~~~~~~~~~~~~
In file included from arch/m68k/include/asm/tlb.h:5,
from kernel/sched/sched.h:69,
from kernel/sched/fair.c:23:
include/asm-generic/tlb.h: At top level:
> include/asm-generic/tlb.h:446:20: warning: conflicting types for
'tlb_remove_page'
446 | static inline void tlb_remove_page(struct
mmu_gather *tlb, struct page *page)
| ^~~~~~~~~~~~~~~
> include/asm-generic/tlb.h:446:20: error: static declaration of
'tlb_remove_page' follows non-static declaration
In file included from
arch/m68k/include/asm/pgalloc.h:12,
from include/asm-generic/tlb.h:17,
from arch/m68k/include/asm/tlb.h:5,
from kernel/sched/sched.h:69,
from kernel/sched/fair.c:23:
arch/m68k/include/asm/mcf_pgalloc.h:43:2: note: previous implicit declaration of
'tlb_remove_page' was here
43 | tlb_remove_page(tlb, page);
| ^~~~~~~~~~~~~~~
kernel/sched/fair.c:5360:6: warning: no previous prototype for
'init_cfs_bandwidth' [-Wmissing-prototypes]
5360 | void init_cfs_bandwidth(struct cfs_bandwidth *cfs_b) {}
| ^~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11091:6: warning: no previous prototype for
'free_fair_sched_group' [-Wmissing-prototypes]
11091 | void free_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11093:5: warning: no previous prototype for
'alloc_fair_sched_group' [-Wmissing-prototypes]
11093 | int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11098:6: warning: no previous prototype for
'online_fair_sched_group' [-Wmissing-prototypes]
11098 | void online_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11100:6: warning: no previous prototype for
'unregister_fair_sched_group' [-Wmissing-prototypes]
11100 | void unregister_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/rculist.h:10,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from kernel/sched/sched.h:5,
from kernel/sched/rt.c:6:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with
null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET
&& (void *)(kaddr) < high_memory)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro
'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
In file included from arch/m68k/include/asm/bug.h:32,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/preempt.h:5,
from ./arch/m68k/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from arch/m68k/include/asm/irqflags.h:6,
from include/linux/irqflags.h:16,
from arch/m68k/include/asm/atomic.h:6,
from include/linux/atomic.h:7,
from include/linux/rcupdate.h:25,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from kernel/sched/sched.h:5,
from kernel/sched/rt.c:6:
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with
null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET
&& (void *)(kaddr) < high_memory)
| ^~
include/asm-generic/bug.h:145:27: note: in definition of macro 'WARN_ON_ONCE'
145 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
arch/m68k/include/asm/page_mm.h:170:25: note: in expansion of macro
'virt_addr_valid'
170 | #define pfn_valid(pfn) virt_addr_valid(pfn_to_virt(pfn))
| ^~~~~~~~~~~~~~~
include/linux/dma-mapping.h:352:19: note: in expansion of macro 'pfn_valid'
352 | if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr))))
| ^~~~~~~~~
In file included from arch/m68k/include/asm/pgalloc.h:12,
from include/asm-generic/tlb.h:17,
from arch/m68k/include/asm/tlb.h:5,
from kernel/sched/sched.h:69,
from kernel/sched/rt.c:6:
arch/m68k/include/asm/mcf_pgalloc.h: In function '__pte_free_tlb':
> arch/m68k/include/asm/mcf_pgalloc.h:43:2: error: implicit
declaration of function 'tlb_remove_page' [-Werror=implicit-function-declaration]
43 | tlb_remove_page(tlb, page);
| ^~~~~~~~~~~~~~~
In file included from arch/m68k/include/asm/tlb.h:5,
from kernel/sched/sched.h:69,
from kernel/sched/rt.c:6:
include/asm-generic/tlb.h: At top level:
> include/asm-generic/tlb.h:446:20: warning: conflicting types for
'tlb_remove_page'
446 | static inline void tlb_remove_page(struct
mmu_gather *tlb, struct page *page)
| ^~~~~~~~~~~~~~~
> include/asm-generic/tlb.h:446:20: error: static declaration of
'tlb_remove_page' follows non-static declaration
In file included from
arch/m68k/include/asm/pgalloc.h:12,
from include/asm-generic/tlb.h:17,
from arch/m68k/include/asm/tlb.h:5,
from kernel/sched/sched.h:69,
from kernel/sched/rt.c:6:
arch/m68k/include/asm/mcf_pgalloc.h:43:2: note: previous implicit declaration of
'tlb_remove_page' was here
43 | tlb_remove_page(tlb, page);
| ^~~~~~~~~~~~~~~
kernel/sched/rt.c:253:6: warning: no previous prototype for
'free_rt_sched_group' [-Wmissing-prototypes]
253 | void free_rt_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~
kernel/sched/rt.c:255:5: warning: no previous prototype for
'alloc_rt_sched_group' [-Wmissing-prototypes]
255 | int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent)
| ^~~~~~~~~~~~~~~~~~~~
kernel/sched/rt.c:668:6: warning: no previous prototype for
'sched_rt_bandwidth_account' [-Wmissing-prototypes]
668 | bool sched_rt_bandwidth_account(struct rt_rq *rt_rq)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from arch/m68k/include/asm/pgalloc.h:12,
from include/asm-generic/tlb.h:17,
from arch/m68k/include/asm/tlb.h:5,
from mm/oom_kill.c:47:
arch/m68k/include/asm/mcf_pgalloc.h: In function '__pte_free_tlb':
> arch/m68k/include/asm/mcf_pgalloc.h:43:2: error: implicit
declaration of function 'tlb_remove_page' [-Werror=implicit-function-declaration]
43 | tlb_remove_page(tlb, page);
| ^~~~~~~~~~~~~~~
In file included from arch/m68k/include/asm/tlb.h:5,
from mm/oom_kill.c:47:
include/asm-generic/tlb.h: At top level:
> include/asm-generic/tlb.h:446:20: warning: conflicting types for
'tlb_remove_page'
446 | static inline void tlb_remove_page(struct
mmu_gather *tlb, struct page *page)
| ^~~~~~~~~~~~~~~
> include/asm-generic/tlb.h:446:20: error: static declaration of
'tlb_remove_page' follows non-static declaration
In file included from
arch/m68k/include/asm/pgalloc.h:12,
from include/asm-generic/tlb.h:17,
from arch/m68k/include/asm/tlb.h:5,
from mm/oom_kill.c:47:
arch/m68k/include/asm/mcf_pgalloc.h:43:2: note: previous implicit declaration of
'tlb_remove_page' was here
43 | tlb_remove_page(tlb, page);
| ^~~~~~~~~~~~~~~
In file included from arch/m68k/include/asm/page.h:60,
from arch/m68k/include/asm/thread_info.h:6,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/m68k/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from arch/m68k/include/asm/irqflags.h:6,
from include/linux/irqflags.h:16,
from arch/m68k/include/asm/atomic.h:6,
from include/linux/atomic.h:7,
from include/linux/rcupdate.h:25,
from include/linux/rculist.h:11,
from include/linux/sched/signal.h:5,
from include/linux/oom.h:6,
from mm/oom_kill.c:21:
mm/internal.h: In function 'mem_map_next':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with
null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET
&& (void *)(kaddr) < high_memory)
| ^~
arch/m68k/include/asm/page_mm.h:170:25: note: in expansion of macro
'virt_addr_valid'
170 | #define pfn_valid(pfn) virt_addr_valid(pfn_to_virt(pfn))
| ^~~~~~~~~~~~~~~
mm/internal.h:455:8: note: in expansion of macro 'pfn_valid'
455 | if (!pfn_valid(pfn))
| ^~~~~~~~~
cc1: some warnings being treated as errors
..
vim +/tlb_remove_page +43 arch/m68k/include/asm/mcf_pgalloc.h
36
37 static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t pgtable,
38 unsigned long address)
39 {
40 struct page *page = virt_to_page(pgtable);
41
42 pgtable_pte_page_dtor(page);
43 tlb_remove_page(tlb, page);
44 }
45
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org