tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/next/linux-next.git master head: da6570438d9bc1fff85f8ce7bcd02fe968289ef9 commit: 179bdfa3a336c352b70b59775c725f507ea5234b [6840/7552] mm: memcontrol: flush percpu vmevents before releasing memcg config: x86_64-randconfig-s2-08191610 (attached as .config) compiler: gcc-6 (Debian 6.3.0-18+deb9u1) 6.3.0 20170516 reproduce: git checkout 179bdfa3a336c352b70b59775c725f507ea5234b # save the attached .config to linux build tree make ARCH=x86_64 If you fix the issue, kindly add following tag Reported-by: kbuild test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): mm/memcontrol.c: In function '__mem_cgroup_free': mm/memcontrol.c:4762:2: error: implicit declaration of function 'memcg_flush_percpu_vmstats' [-Werror=implicit-function-declaration] memcg_flush_percpu_vmstats(memcg, false); ^~~~~~~~~~~~~~~~~~~~~~~~~~ >> mm/memcontrol.c:4763:2: error: implicit declaration of function 'memcg_flush_percpu_vmevents' [-Werror=implicit-function-declaration] memcg_flush_percpu_vmevents(memcg); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Cyclomatic Complexity 5 include/linux/compiler.h:__read_once_size Cyclomatic Complexity 5 include/linux/compiler.h:__write_once_size Cyclomatic Complexity 1 include/linux/kasan-checks.h:kasan_check_read Cyclomatic Complexity 1 include/linux/kasan-checks.h:kasan_check_write Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_read Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_set Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_inc Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_dec Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_dec_and_test Cyclomatic Complexity 2 arch/x86/include/asm/atomic.h:arch_atomic_try_cmpxchg Cyclomatic Complexity 1 arch/x86/include/asm/atomic64_64.h:arch_atomic64_read Cyclomatic Complexity 1 arch/x86/include/asm/atomic64_64.h:arch_atomic64_set Cyclomatic Complexity 1 arch/x86/include/asm/atomic64_64.h:arch_atomic64_add Cyclomatic Complexity 1 arch/x86/include/asm/atomic64_64.h:arch_atomic64_sub_and_test Cyclomatic Complexity 1 arch/x86/include/asm/atomic64_64.h:arch_atomic64_inc Cyclomatic Complexity 2 arch/x86/include/asm/atomic64_64.h:arch_atomic64_try_cmpxchg Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_read Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_set Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_inc Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_dec Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_try_cmpxchg Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_dec_and_test Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic64_read Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic64_set Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic64_add Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic64_inc Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic64_try_cmpxchg Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic64_sub_and_test Cyclomatic Complexity 3 include/linux/atomic-fallback.h:atomic_fetch_add_unless Cyclomatic Complexity 1 include/linux/atomic-fallback.h:atomic_add_unless Cyclomatic Complexity 3 include/linux/atomic-fallback.h:atomic64_fetch_add_unless Cyclomatic Complexity 1 include/linux/atomic-fallback.h:atomic64_add_unless Cyclomatic Complexity 1 include/linux/atomic-fallback.h:atomic64_inc_not_zero Cyclomatic Complexity 1 include/asm-generic/atomic-long.h:atomic_long_read Cyclomatic Complexity 1 include/asm-generic/atomic-long.h:atomic_long_set Cyclomatic Complexity 1 include/asm-generic/atomic-long.h:atomic_long_add Cyclomatic Complexity 1 include/asm-generic/atomic-long.h:atomic_long_inc Cyclomatic Complexity 1 include/asm-generic/atomic-long.h:atomic_long_sub_and_test Cyclomatic Complexity 1 include/asm-generic/atomic-long.h:atomic_long_inc_not_zero Cyclomatic Complexity 2 arch/x86/include/asm/bitops.h:arch_set_bit Cyclomatic Complexity 2 arch/x86/include/asm/bitops.h:arch_clear_bit Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:arch_test_and_set_bit Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:arch_test_and_set_bit_lock Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:constant_test_bit Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:variable_test_bit Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls64 Cyclomatic Complexity 1 include/asm-generic/bitops-instrumented.h:set_bit Cyclomatic Complexity 1 include/asm-generic/bitops-instrumented.h:clear_bit Cyclomatic Complexity 1 include/asm-generic/bitops-instrumented.h:test_and_set_bit Cyclomatic Complexity 1 include/asm-generic/bitops-instrumented.h:test_and_set_bit_lock Cyclomatic Complexity 2 include/asm-generic/bitops-instrumented.h:test_bit Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u64 Cyclomatic Complexity 68 include/asm-generic/getorder.h:get_order Cyclomatic Complexity 1 include/linux/page_counter.h:page_counter_init Cyclomatic Complexity 1 include/linux/page_counter.h:page_counter_read Cyclomatic Complexity 1 include/linux/page_counter.h:page_counter_reset_watermark Cyclomatic Complexity 1 include/linux/percpu-defs.h:__this_cpu_preempt_check Cyclomatic Complexity 1 arch/x86/include/asm/current.h:get_current Cyclomatic Complexity 1 include/linux/list.h:INIT_LIST_HEAD Cyclomatic Complexity 2 include/linux/list.h:__list_add Cyclomatic Complexity 1 include/linux/list.h:list_add Cyclomatic Complexity 1 include/linux/list.h:__list_del Cyclomatic Complexity 2 include/linux/list.h:__list_del_entry Cyclomatic Complexity 1 include/linux/list.h:list_del Cyclomatic Complexity 1 include/linux/list.h:list_del_init Cyclomatic Complexity 1 include/linux/list.h:list_empty Cyclomatic Complexity 1 include/linux/jump_label.h:static_key_count Cyclomatic Complexity 2 include/linux/jump_label.h:static_key_false Cyclomatic Complexity 2 include/linux/jump_label.h:static_key_slow_inc Cyclomatic Complexity 2 include/linux/jump_label.h:static_key_slow_dec Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:native_save_fl Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:native_restore_fl Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:native_irq_disable Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:native_irq_enable Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:arch_local_save_flags Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:arch_local_irq_restore Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:arch_local_irq_disable Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:arch_local_irq_enable Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:arch_local_irq_save Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:arch_irqs_disabled_flags Cyclomatic Complexity 1 arch/x86/include/asm/pgtable_types.h:native_make_pmd Cyclomatic Complexity 1 arch/x86/include/asm/pgtable_types.h:native_pmd_val Cyclomatic Complexity 2 arch/x86/include/asm/pgtable_types.h:pmd_pfn_mask Cyclomatic Complexity 1 arch/x86/include/asm/pgtable_types.h:pmd_flags_mask Cyclomatic Complexity 1 arch/x86/include/asm/pgtable_types.h:pmd_flags Cyclomatic Complexity 1 arch/x86/include/asm/pgtable_types.h:native_make_pte Cyclomatic Complexity 1 arch/x86/include/asm/pgtable_types.h:native_pte_val Cyclomatic Complexity 1 arch/x86/include/asm/pgtable_types.h:pte_flags Cyclomatic Complexity 1 include/linux/string.h:strstrip Cyclomatic Complexity 3 include/linux/string.h:memset Cyclomatic Complexity 4 include/linux/string.h:memcpy Cyclomatic Complexity 1 include/linux/err.h:ERR_PTR Cyclomatic Complexity 1 include/linux/err.h:PTR_ERR Cyclomatic Complexity 1 include/linux/err.h:IS_ERR Cyclomatic Complexity 1 include/linux/thread_info.h:test_and_set_ti_thread_flag Cyclomatic Complexity 1 include/linux/thread_info.h:test_ti_thread_flag Cyclomatic Complexity 1 arch/x86/include/asm/preempt.h:preempt_count Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_add vim +/memcg_flush_percpu_vmevents +4763 mm/memcontrol.c 4753 4754 static void __mem_cgroup_free(struct mem_cgroup *memcg) 4755 { 4756 int node; 4757 4758 /* 4759 * Flush percpu vmstats and vmevents to guarantee the value correctness 4760 * on parent's and all ancestor levels. 4761 */ > 4762 memcg_flush_percpu_vmstats(memcg, false); > 4763 memcg_flush_percpu_vmevents(memcg); 4764 for_each_node(node) 4765 free_mem_cgroup_per_node_info(memcg, node); 4766 free_percpu(memcg->vmstats_percpu); 4767 free_percpu(memcg->vmstats_local); 4768 kfree(memcg); 4769 } 4770 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip