All of lore.kernel.org
 help / color / mirror / Atom feed
* [yao:perf-intel-next 78/113] arch/x86/events/intel/uncore_snbep.c:6292:2: note: in expansion of macro 'pr_info'
@ 2020-05-28 13:01 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-28 13:01 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4373 bytes --]

tree:   yao/perf-intel-next
head:   36086096ecdcd11f5dfc73d2780537e2483ac70b
commit: be048cbcb77cee35def588aa84a6af8095f2b1d9 [78/113] perf/x86/intel/uncore: Support IAL uncore unit
config: i386-randconfig-r003-20200528 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
        git checkout be048cbcb77cee35def588aa84a6af8095f2b1d9
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>, old ones prefixed by <<):

In file included from include/linux/printk.h:7,
from include/linux/kernel.h:15,
from include/asm-generic/bug.h:19,
from arch/x86/include/asm/bug.h:83,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from arch/x86/events/intel/uncore.h:2,
from arch/x86/events/intel/uncore_snbep.c:3:
arch/x86/events/intel/uncore_snbep.c: In function 'spr_uncore_ial_mmio_init_box':
>> include/linux/kern_levels.h:5:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=]
5 | #define KERN_SOH "001"  /* ASCII Start Of Header */
|                  ^~~~~~
include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH'
14 | #define KERN_INFO KERN_SOH "6" /* informational */
|                   ^~~~~~~~
>> include/linux/printk.h:305:9: note: in expansion of macro 'KERN_INFO'
305 |  printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
|         ^~~~~~~~~
>> arch/x86/events/intel/uncore_snbep.c:6292:2: note: in expansion of macro 'pr_info'
6292 |  pr_info("UNCORE: MEMBAR0 + box_ctl:  0x%llxn", addr);
|  ^~~~~~~
arch/x86/events/intel/uncore_snbep.c:6292:44: note: format string is defined here
6292 |  pr_info("UNCORE: MEMBAR0 + box_ctl:  0x%llxn", addr);
|                                         ~~~^
|                                            |
|                                            long long unsigned int
|                                         %x

vim +/pr_info +6292 arch/x86/events/intel/uncore_snbep.c

  6241	
  6242	static void spr_uncore_ial_mmio_init_box(struct intel_uncore_box *box,
  6243						 int mem_offset, unsigned int box_ctl)
  6244	{
  6245		struct pci_dev *pdev = spr_uncore_ial_get_mc_dev(box);
  6246		resource_size_t addr;
  6247		u64 pci_dword;
  6248		void __iomem *io_addr;
  6249	
  6250		if (!pdev)
  6251			return;
  6252	
  6253		pr_info("UNCORE: Init IAL: PMU %d DIE %d\n", box->pmu->pmu_idx, box->dieid);
  6254	
  6255		pci_read_config_dword(pdev, 0x4c8, (u32 *)&pci_dword);
  6256		pci_read_config_dword(pdev, 0x4c8 + 4, (u32 *)&pci_dword + 1);
  6257	
  6258		pr_info("UNCORE: RCRBBAR:  0x%llx\n", pci_dword);
  6259	
  6260		if (!(pci_dword & 1))
  6261			return;
  6262		pci_dword &= ~1ULL;
  6263	
  6264		//read RCRB memory region for MEMBAR0
  6265		addr = (resource_size_t)pci_dword;
  6266		io_addr = ioremap(addr, 0x20);
  6267		if (!io_addr) {
  6268			pr_info("UNCORE: failed to map RCRB\n");
  6269			return;
  6270		}
  6271		pci_dword = readq(io_addr + SPR_IAL_MEMBAR0_OFFSET);
  6272	
  6273		pr_info("UNCORE: MEMBAR0:  0x%llx\n", pci_dword);
  6274	
  6275		//unmap RCRB memory region
  6276		iounmap(io_addr);
  6277	
  6278		pci_dword &= ~0xffULL;
  6279		addr = (resource_size_t)pci_dword;
  6280		/*
  6281		 *TODO: Hardcode MEMBAR 0 for now.
  6282		 *
  6283		 * addr = (resource_size_t)pci_dword;
  6284		 * ioremap(addr, SPR_IAL_MMIO_SIZE)
  6285		 * membar0_addr = readq(io_addr + SPR_IAL_MEMBAR0_OFFSET)
  6286		 * membar0_addr += SPR_IAL_U0_MMIO_PMON_BOX_CTL
  6287		 * ioremap(membar0_addr, 0x900)
  6288		 * Hardcode MEMBAR 0 for now.
  6289		 */
  6290		addr += box_ctl;
  6291	
> 6292		pr_info("UNCORE: MEMBAR0 + box_ctl:  0x%llx\n", addr);
  6293		box->io_addr = ioremap(addr, 0x100);
  6294		if (!box->io_addr) {
  6295			pr_info("UNCORE: failed to map membar 0\n");
  6296			return;
  6297		}
  6298	
  6299		writel(SPR_PMON_BOX_CTL_INT, box->io_addr);
  6300	}
  6301	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 45542 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-28 13:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-28 13:01 [yao:perf-intel-next 78/113] arch/x86/events/intel/uncore_snbep.c:6292:2: note: in expansion of macro 'pr_info' kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.