[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201711241016.wL1LMdfX%fengguang.wu@intel.com>
Date: Fri, 24 Nov 2017 10:54:18 +0800
From: kbuild test robot <fengguang.wu@...el.com>
To: Hugh Dickins <hugh.dickins@...cali.co.uk>
Cc: kbuild-all@...org, linux-kernel@...r.kernel.org,
tipbuild@...or.com, Ingo Molnar <mingo@...nel.org>,
Dave Hansen <dave.hansen@...ux.intel.com>
Subject: [tip:WIP.x86/mm 37/50] arch/x86/events/intel/ds.c:296:2: note: in
expansion of macro 'if'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/mm
head: 7d2da250f83856bbf697d58a3c10c5673e8146bc
commit: 93e8b1bed0d21ad5a5bf0e1151a9163a72f89072 [37/50] x86/mm/kaiser: Map virtually-addressed performance monitoring buffers
config: i386-randconfig-x019-201747 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
git checkout 93e8b1bed0d21ad5a5bf0e1151a9163a72f89072
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
In file included from arch/x86/include/asm/bitops.h:16:0,
from include/linux/bitops.h:38,
from arch/x86/events/intel/ds.c:2:
arch/x86/events/intel/ds.c: In function 'dsalloc':
arch/x86/events/intel/ds.c:296:6: error: implicit declaration of function 'kaiser_add_mapping' [-Werror=implicit-function-declaration]
if (kaiser_add_mapping(addr, size, __PAGE_KERNEL | _PAGE_GLOBAL) < 0) {
^
include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> arch/x86/events/intel/ds.c:296:2: note: in expansion of macro 'if'
if (kaiser_add_mapping(addr, size, __PAGE_KERNEL | _PAGE_GLOBAL) < 0) {
^~
arch/x86/events/intel/ds.c: In function 'dsfree':
arch/x86/events/intel/ds.c:307:2: error: implicit declaration of function 'kaiser_remove_mapping' [-Werror=implicit-function-declaration]
kaiser_remove_mapping((unsigned long)buffer, size);
^~~~~~~~~~~~~~~~~~~~~
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:fls
Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u32
Cyclomatic Complexity 1 include/linux/percpu-defs.h:__this_cpu_preempt_check
Cyclomatic Complexity 1 include/asm-generic/getorder.h:__get_order
Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:paravirt_read_msr
Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:paravirt_write_msr
Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:wrmsrl
Cyclomatic Complexity 1 arch/x86/include/asm/msr.h:wrmsr_on_cpu
Cyclomatic Complexity 3 arch/x86/include/asm/processor.h:get_debugctlmsr
Cyclomatic Complexity 3 arch/x86/include/asm/processor.h:update_debugctlmsr
Cyclomatic Complexity 1 include/linux/nodemask.h:node_state
Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_lock_acquire
Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_lock_release
Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_read_lock
Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_read_unlock
Cyclomatic Complexity 1 include/linux/gfp.h:__alloc_pages
Cyclomatic Complexity 2 include/linux/gfp.h:__alloc_pages_node
Cyclomatic Complexity 1 include/linux/slab.h:__kmalloc_node
Cyclomatic Complexity 1 include/linux/slab.h:kmalloc_node
Cyclomatic Complexity 1 include/linux/slab.h:kzalloc_node
Cyclomatic Complexity 1 include/linux/cpu.h:cpus_read_lock
Cyclomatic Complexity 1 include/linux/cpu.h:cpus_read_unlock
Cyclomatic Complexity 1 include/linux/cpu.h:get_online_cpus
Cyclomatic Complexity 1 include/linux/cpu.h:put_online_cpus
Cyclomatic Complexity 1 include/linux/perf_event.h:perf_sample_data_init
Cyclomatic Complexity 1 include/linux/perf_event.h:has_branch_stack
Cyclomatic Complexity 1 arch/x86/events/intel/../perf_event.h:kernel_ip
Cyclomatic Complexity 4 arch/x86/events/intel/../perf_event.h:set_linear_ip
Cyclomatic Complexity 1 arch/x86/events/intel/ds.c:intel_pmu_drain_pebs_buffer
Cyclomatic Complexity 3 arch/x86/events/intel/ds.c:pebs_needs_sched_cb
Cyclomatic Complexity 3 arch/x86/events/intel/ds.c:pebs_update_threshold
Cyclomatic Complexity 3 arch/x86/events/intel/ds.c:intel_hsw_weight
Cyclomatic Complexity 9 arch/x86/events/intel/ds.c:intel_hsw_transaction
Cyclomatic Complexity 14 arch/x86/events/intel/ds.c:get_next_pebs_record_by_bit
Cyclomatic Complexity 3 arch/x86/events/intel/ds.c:release_ds_buffer
Cyclomatic Complexity 7 arch/x86/events/intel/ds.c:load_latency_data
Cyclomatic Complexity 9 arch/x86/events/intel/ds.c:precise_datala_hsw
Cyclomatic Complexity 7 arch/x86/events/intel/ds.c:precise_store_data
Cyclomatic Complexity 69 arch/x86/events/intel/ds.c:dsfree
Cyclomatic Complexity 9 arch/x86/events/intel/ds.c:release_pebs_buffer
Cyclomatic Complexity 9 arch/x86/events/intel/ds.c:release_bts_buffer
Cyclomatic Complexity 1 arch/x86/events/intel/ds.c:alloc_ds_buffer
Cyclomatic Complexity 70 arch/x86/events/intel/ds.c:dsalloc
Cyclomatic Complexity 10 arch/x86/events/intel/ds.c:alloc_bts_buffer
Cyclomatic Complexity 8 arch/x86/events/intel/ds.c:alloc_pebs_buffer
Cyclomatic Complexity 6 arch/x86/events/intel/ds.c:pebs_update_state
Cyclomatic Complexity 24 arch/x86/events/intel/ds.c:intel_pmu_pebs_fixup_ip
Cyclomatic Complexity 69 arch/x86/events/intel/ds.c:setup_pebs_sample_data
Cyclomatic Complexity 6 arch/x86/events/intel/ds.c:__intel_pmu_pebs_event
Cyclomatic Complexity 42 arch/x86/events/intel/ds.c:intel_pmu_drain_pebs_nhm
Cyclomatic Complexity 9 arch/x86/events/intel/ds.c:intel_pmu_drain_pebs_core
Cyclomatic Complexity 1 arch/x86/events/intel/ds.c:intel_pmu_pebs_data_source_nhm
Cyclomatic Complexity 2 arch/x86/events/intel/ds.c:intel_pmu_pebs_data_source_skl
Cyclomatic Complexity 3 arch/x86/events/intel/ds.c:init_debug_store_on_cpu
Cyclomatic Complexity 2 arch/x86/events/intel/ds.c:fini_debug_store_on_cpu
Cyclomatic Complexity 5 arch/x86/events/intel/ds.c:release_ds_buffers
Cyclomatic Complexity 43 arch/x86/events/intel/ds.c:reserve_ds_buffers
Cyclomatic Complexity 7 arch/x86/events/intel/ds.c:intel_pmu_enable_bts
Cyclomatic Complexity 3 arch/x86/events/intel/ds.c:intel_pmu_disable_bts
Cyclomatic Complexity 18 arch/x86/events/intel/ds.c:intel_pmu_drain_bts_buffer
Cyclomatic Complexity 8 arch/x86/events/intel/ds.c:intel_pebs_constraints
Cyclomatic Complexity 4 arch/x86/events/intel/ds.c:intel_pmu_pebs_sched_task
Cyclomatic Complexity 3 arch/x86/events/intel/ds.c:intel_pmu_pebs_add
Cyclomatic Complexity 7 arch/x86/events/intel/ds.c:intel_pmu_pebs_enable
Cyclomatic Complexity 3 arch/x86/events/intel/ds.c:intel_pmu_pebs_del
Cyclomatic Complexity 9 arch/x86/events/intel/ds.c:intel_pmu_pebs_disable
Cyclomatic Complexity 3 arch/x86/events/intel/ds.c:intel_pmu_pebs_enable_all
Cyclomatic Complexity 3 arch/x86/events/intel/ds.c:intel_pmu_pebs_disable_all
Cyclomatic Complexity 9 arch/x86/events/intel/ds.c:intel_ds_init
Cyclomatic Complexity 3 arch/x86/events/intel/ds.c:perf_restore_debug_store
cc1: some warnings being treated as errors
vim +/if +296 arch/x86/events/intel/ds.c
285
286 static void *dsalloc(size_t size, gfp_t flags, int node)
287 {
288 unsigned int order = get_order(size);
289 struct page *page;
290 unsigned long addr;
291
292 page = __alloc_pages_node(node, flags | __GFP_ZERO, order);
293 if (!page)
294 return NULL;
295 addr = (unsigned long)page_address(page);
> 296 if (kaiser_add_mapping(addr, size, __PAGE_KERNEL | _PAGE_GLOBAL) < 0) {
297 __free_pages(page, order);
298 addr = 0;
299 }
300 return (void *)addr;
301 }
302
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (23734 bytes)
Powered by blists - more mailing lists