Messages in this thread | | | Date | Fri, 12 May 2017 23:00:40 +0800 | From | kbuild test robot <> | Subject | Re: [PATCH V6] perf/x86: add sysfs entry to freeze counter on SMI |
| |
Hi Kan,
[auto build test WARNING on tip/x86/core] [also build test WARNING on v4.11 next-20170512] [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/kan-liang-intel-com/perf-x86-add-sysfs-entry-to-freeze-counter-on-SMI/20170512-223452 config: i386-tinyconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386
All warnings (new ones prefixed by >>):
arch/x86/events/intel/core.c: In function 'freeze_on_smi_show': >> arch/x86/events/intel/core.c:3581:24: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] return sprintf(buf, "%d\n", x86_pmu.attr_freeze_on_smi); ^
vim +3581 arch/x86/events/intel/core.c
3565 EVENT_PTR(mem_ld_hsw), 3566 EVENT_PTR(mem_st_hsw), 3567 EVENT_PTR(td_slots_issued), 3568 EVENT_PTR(td_slots_retired), 3569 EVENT_PTR(td_fetch_bubbles), 3570 EVENT_PTR(td_total_slots), 3571 EVENT_PTR(td_total_slots_scale), 3572 EVENT_PTR(td_recovery_bubbles), 3573 EVENT_PTR(td_recovery_bubbles_scale), 3574 NULL 3575 }; 3576 3577 static ssize_t freeze_on_smi_show(struct device *cdev, 3578 struct device_attribute *attr, 3579 char *buf) 3580 { > 3581 return sprintf(buf, "%d\n", x86_pmu.attr_freeze_on_smi); 3582 } 3583 3584 static DEFINE_MUTEX(freeze_on_smi_mutex); 3585 3586 static ssize_t freeze_on_smi_store(struct device *cdev, 3587 struct device_attribute *attr, 3588 const char *buf, size_t count) 3589 {
--- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation [unhandled content-type:application/gzip] | |