lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Fri, 12 May 2017 23:00:40 +0800
From:   kbuild test robot <>
Cc:,,,,,,,,,, Kan Liang <>
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]

config: i386-tinyconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
        # 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	};
  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	}
  3584	static DEFINE_MUTEX(freeze_on_smi_mutex);
  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                   Intel Corporation

Download attachment ".config.gz" of type "application/gzip" (6363 bytes)

Powered by blists - more mailing lists