[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201602141301.fXA1nSag%fengguang.wu@intel.com>
Date: Sun, 14 Feb 2016 13:07:09 +0800
From: kbuild test robot <lkp@...el.com>
To: Chen Yucong <slaoub@...il.com>
Cc: kbuild-all@...org, mingo@...nel.org, tglx@...utronix.de,
hpa@...or.com, x86@...nel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] x86/kernel: use pr_<level>() and dev_<level>
Hi Chen,
[auto build test WARNING on tip/x86/core]
[also build test WARNING on v4.5-rc3 next-20160212]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]
url: https://github.com/0day-ci/linux/commits/Chen-Yucong/x86-kernel-use-pr_-level-and-dev_-level/20160214-121236
config: x86_64-allmodconfig (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
>> arch/x86/pci/mmconfig_64.c:16:0: warning: "pr_fmt" redefined
#define pr_fmt(fmt) "PCI: " fmt
^
In file included from include/linux/kernel.h:13:0,
from include/linux/list.h:8,
from include/linux/pci.h:25,
from arch/x86/pci/mmconfig_64.c:8:
include/linux/printk.h:236:0: note: this is the location of the previous definition
#define pr_fmt(fmt) fmt
^
vim +/pr_fmt +16 arch/x86/pci/mmconfig_64.c
1 /*
2 * mmconfig.c - Low-level direct PCI config space access via MMCONFIG
3 *
4 * This is an 64bit optimized version that always keeps the full mmconfig
5 * space mapped. This allows lockless config space operation.
6 */
7
8 #include <linux/pci.h>
9 #include <linux/init.h>
10 #include <linux/acpi.h>
11 #include <linux/bitmap.h>
12 #include <linux/rcupdate.h>
13 #include <asm/e820.h>
14 #include <asm/pci_x86.h>
15
> 16 #define pr_fmt(fmt) "PCI: " fmt
17
18 static char __iomem *pci_dev_base(unsigned int seg, unsigned int bus, unsigned int devfn)
19 {
20 struct pci_mmcfg_region *cfg = pci_mmconfig_lookup(seg, bus);
21
22 if (cfg && cfg->virt)
23 return cfg->virt + (PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12));
24 return NULL;
---
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/octet-stream" (53128 bytes)
Powered by blists - more mailing lists