From: kbuild test robot <lkp@intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: kbuild-all@01.org, Will Deacon <will.deacon@arm.com>,
Dave Martin <Dave.Martin@arm.com>,
Philippe Ombredanne <pombredanne@nexb.com>,
linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Subject: Re: [PATCH v1] platform/x86: intel_pmc_core: Introduce PMC_DEVICE() macro
Date: Fri, 15 Dec 2017 05:21:52 +0800 [thread overview]
Message-ID: <201712150435.twZMsl2E%fengguang.wu@intel.com> (raw)
In-Reply-To: <20171212095041.32098-1-andriy.shevchenko@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 6639 bytes --]
Hi Andy,
I love your patch! Yet something to improve:
[auto build test ERROR on platform-drivers-x86/for-next]
[also build test ERROR on v4.15-rc3 next-20171214]
[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/Andy-Shevchenko/platform-x86-intel_pmc_core-Introduce-PMC_DEVICE-macro/20171215-040644
base: git://git.infradead.org/users/dvhart/linux-platform-drivers-x86.git for-next
config: x86_64-randconfig-x007-201750 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
In file included from drivers/platform/x86/intel_pmc_core.c:26:0:
include/linux/pci.h:817:2: error: field name not in record or union initializer
.vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
^
drivers/platform/x86/intel_pmc_core.c:122:30: note: in expansion of macro 'PCI_VDEVICE'
#define PMC_DEVICE(id, data) PCI_VDEVICE(INTEL, id), (kernel_ulong_t)data }
^~~~~~~~~~~
drivers/platform/x86/intel_pmc_core.c:125:2: note: in expansion of macro 'PMC_DEVICE'
PMC_DEVICE(SPT_PMC_PCI_DEVICE_ID, &spt_reg_map),
^~~~~~~~~~
include/linux/pci.h:817:2: note: (near initialization for 'pmc_pci_ids')
.vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
^
drivers/platform/x86/intel_pmc_core.c:122:30: note: in expansion of macro 'PCI_VDEVICE'
#define PMC_DEVICE(id, data) PCI_VDEVICE(INTEL, id), (kernel_ulong_t)data }
^~~~~~~~~~~
drivers/platform/x86/intel_pmc_core.c:125:2: note: in expansion of macro 'PMC_DEVICE'
PMC_DEVICE(SPT_PMC_PCI_DEVICE_ID, &spt_reg_map),
^~~~~~~~~~
include/linux/pci.h:817:34: error: field name not in record or union initializer
.vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
^
drivers/platform/x86/intel_pmc_core.c:122:30: note: in expansion of macro 'PCI_VDEVICE'
#define PMC_DEVICE(id, data) PCI_VDEVICE(INTEL, id), (kernel_ulong_t)data }
^~~~~~~~~~~
drivers/platform/x86/intel_pmc_core.c:125:2: note: in expansion of macro 'PMC_DEVICE'
PMC_DEVICE(SPT_PMC_PCI_DEVICE_ID, &spt_reg_map),
^~~~~~~~~~
include/linux/pci.h:817:34: note: (near initialization for 'pmc_pci_ids')
.vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
^
drivers/platform/x86/intel_pmc_core.c:122:30: note: in expansion of macro 'PCI_VDEVICE'
#define PMC_DEVICE(id, data) PCI_VDEVICE(INTEL, id), (kernel_ulong_t)data }
^~~~~~~~~~~
drivers/platform/x86/intel_pmc_core.c:125:2: note: in expansion of macro 'PMC_DEVICE'
PMC_DEVICE(SPT_PMC_PCI_DEVICE_ID, &spt_reg_map),
^~~~~~~~~~
include/linux/pci.h:818:2: error: field name not in record or union initializer
.subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
^
drivers/platform/x86/intel_pmc_core.c:122:30: note: in expansion of macro 'PCI_VDEVICE'
#define PMC_DEVICE(id, data) PCI_VDEVICE(INTEL, id), (kernel_ulong_t)data }
^~~~~~~~~~~
drivers/platform/x86/intel_pmc_core.c:125:2: note: in expansion of macro 'PMC_DEVICE'
PMC_DEVICE(SPT_PMC_PCI_DEVICE_ID, &spt_reg_map),
^~~~~~~~~~
include/linux/pci.h:818:2: note: (near initialization for 'pmc_pci_ids')
.subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
^
drivers/platform/x86/intel_pmc_core.c:122:30: note: in expansion of macro 'PCI_VDEVICE'
#define PMC_DEVICE(id, data) PCI_VDEVICE(INTEL, id), (kernel_ulong_t)data }
^~~~~~~~~~~
drivers/platform/x86/intel_pmc_core.c:125:2: note: in expansion of macro 'PMC_DEVICE'
PMC_DEVICE(SPT_PMC_PCI_DEVICE_ID, &spt_reg_map),
^~~~~~~~~~
include/linux/pci.h:818:27: error: field name not in record or union initializer
.subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
^
drivers/platform/x86/intel_pmc_core.c:122:30: note: in expansion of macro 'PCI_VDEVICE'
#define PMC_DEVICE(id, data) PCI_VDEVICE(INTEL, id), (kernel_ulong_t)data }
^~~~~~~~~~~
drivers/platform/x86/intel_pmc_core.c:125:2: note: in expansion of macro 'PMC_DEVICE'
PMC_DEVICE(SPT_PMC_PCI_DEVICE_ID, &spt_reg_map),
^~~~~~~~~~
include/linux/pci.h:818:27: note: (near initialization for 'pmc_pci_ids')
.subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
^
drivers/platform/x86/intel_pmc_core.c:122:30: note: in expansion of macro 'PCI_VDEVICE'
#define PMC_DEVICE(id, data) PCI_VDEVICE(INTEL, id), (kernel_ulong_t)data }
^~~~~~~~~~~
drivers/platform/x86/intel_pmc_core.c:125:2: note: in expansion of macro 'PMC_DEVICE'
PMC_DEVICE(SPT_PMC_PCI_DEVICE_ID, &spt_reg_map),
^~~~~~~~~~
>> drivers/platform/x86/intel_pmc_core.c:122:54: error: initializer element is not computable at load time
#define PMC_DEVICE(id, data) PCI_VDEVICE(INTEL, id), (kernel_ulong_t)data }
^
drivers/platform/x86/intel_pmc_core.c:125:2: note: in expansion of macro 'PMC_DEVICE'
PMC_DEVICE(SPT_PMC_PCI_DEVICE_ID, &spt_reg_map),
^~~~~~~~~~
drivers/platform/x86/intel_pmc_core.c:122:54: note: (near initialization for 'pmc_pci_ids[3].subdevice')
#define PMC_DEVICE(id, data) PCI_VDEVICE(INTEL, id), (kernel_ulong_t)data }
^
drivers/platform/x86/intel_pmc_core.c:125:2: note: in expansion of macro 'PMC_DEVICE'
PMC_DEVICE(SPT_PMC_PCI_DEVICE_ID, &spt_reg_map),
^~~~~~~~~~
drivers/platform/x86/intel_pmc_core.c:124:51: warning: missing braces around initializer [-Wmissing-braces]
static const struct pci_device_id pmc_pci_ids[] = {
^
drivers/platform/x86/intel_pmc_core.c:126:2: error: expected identifier or '(' before '{' token
{}
^
drivers/platform/x86/intel_pmc_core.c:127:1: error: expected identifier or '(' before '}' token
};
^
vim +122 drivers/platform/x86/intel_pmc_core.c
121
> 122 #define PMC_DEVICE(id, data) PCI_VDEVICE(INTEL, id), (kernel_ulong_t)data }
123
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32084 bytes --]
next prev parent reply other threads:[~2017-12-14 21:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-12 9:50 Andy Shevchenko
2017-12-12 10:02 ` Andy Shevchenko
2017-12-14 21:21 ` kbuild test robot [this message]
2017-12-14 21:29 ` kbuild test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201712150435.twZMsl2E%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=Dave.Martin@arm.com \
--cc=akpm@linux-foundation.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pombredanne@nexb.com \
--cc=will.deacon@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®