Messages in this thread | | | Date | Sat, 29 Apr 2017 01:50:53 +0800 | From | kbuild test robot <> | Subject | Re: [PATCH 1/2] iommu/s390: Fix IOMMU groups |
| |
Hi Joerg,
[auto build test ERROR on s390/features] [also build test ERROR on v4.11-rc8 next-20170428] [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/Joerg-Roedel/iommu-s390-Fix-iommu-groups-and-add-sysfs-support/20170429-003440 base: https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git features config: s390-default_defconfig (attached as .config) compiler: s390x-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=s390
All errors (new ones prefixed by >>):
In file included from include/trace/define_trace.h:95:0, from include/trace/events/iommu.h:167, from include/linux/iommu.h:27, from arch/s390/include/asm/pci.h:11, from include/linux/pci.h:1627, from include/trace/events/iommu.h:14, from drivers/iommu/iommu-traces.c:12: include/trace/events/iommu.h: In function 'ftrace_test_probe_add_device_to_group': include/trace/trace_events.h:716:2: error: implicit declaration of function 'check_trace_callback_type_add_device_to_group' [-Werror=implicit-function-declaration] check_trace_callback_type_##call(trace_event_raw_event_##template); \ ^ include/trace/events/iommu.h:39:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_group_event, add_device_to_group, ^~~~~~~~~~~~ include/trace/events/iommu.h: In function 'ftrace_test_probe_remove_device_from_group': include/trace/trace_events.h:716:2: error: implicit declaration of function 'check_trace_callback_type_remove_device_from_group' [-Werror=implicit-function-declaration] check_trace_callback_type_##call(trace_event_raw_event_##template); \ ^ include/trace/events/iommu.h:47:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_group_event, remove_device_from_group, ^~~~~~~~~~~~ include/trace/events/iommu.h: In function 'ftrace_test_probe_attach_device_to_domain': include/trace/trace_events.h:716:2: error: implicit declaration of function 'check_trace_callback_type_attach_device_to_domain' [-Werror=implicit-function-declaration] check_trace_callback_type_##call(trace_event_raw_event_##template); \ ^ include/trace/events/iommu.h:72:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_device_event, attach_device_to_domain, ^~~~~~~~~~~~ include/trace/events/iommu.h: In function 'ftrace_test_probe_detach_device_from_domain': include/trace/trace_events.h:716:2: error: implicit declaration of function 'check_trace_callback_type_detach_device_from_domain' [-Werror=implicit-function-declaration] check_trace_callback_type_##call(trace_event_raw_event_##template); \ ^ include/trace/events/iommu.h:79:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_device_event, detach_device_from_domain, ^~~~~~~~~~~~ include/trace/events/iommu.h: In function 'ftrace_test_probe_map': include/trace/trace_events.h:716:2: error: implicit declaration of function 'check_trace_callback_type_map' [-Werror=implicit-function-declaration] check_trace_callback_type_##call(trace_event_raw_event_##template); \ ^ include/trace/trace_events.h:66:2: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(name, name, PARAMS(proto), PARAMS(args)); ^~~~~~~~~~~~ include/trace/events/iommu.h:86:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(map, ^~~~~~~~~~~ include/trace/events/iommu.h: In function 'ftrace_test_probe_unmap': include/trace/trace_events.h:716:2: error: implicit declaration of function 'check_trace_callback_type_unmap' [-Werror=implicit-function-declaration] check_trace_callback_type_##call(trace_event_raw_event_##template); \ ^ include/trace/trace_events.h:66:2: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(name, name, PARAMS(proto), PARAMS(args)); ^~~~~~~~~~~~ include/trace/events/iommu.h:109:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(unmap, ^~~~~~~~~~~ include/trace/events/iommu.h: In function 'ftrace_test_probe_io_page_fault': include/trace/trace_events.h:716:2: error: implicit declaration of function 'check_trace_callback_type_io_page_fault' [-Werror=implicit-function-declaration] check_trace_callback_type_##call(trace_event_raw_event_##template); \ ^ include/trace/events/iommu.h:158:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_error, io_page_fault, ^~~~~~~~~~~~ In file included from arch/s390/include/asm/pci.h:11:0, from include/linux/pci.h:1627, from include/trace/events/iommu.h:14, from drivers/iommu/iommu-traces.c:12: include/linux/iommu.h: In function 'report_iommu_fault': >> include/linux/iommu.h:368:2: error: implicit declaration of function 'trace_io_page_fault' [-Werror=implicit-function-declaration] trace_io_page_fault(dev, iova, flags); ^~~~~~~~~~~~~~~~~~~ In file included from include/trace/events/iommu.h:13:0, from drivers/iommu/iommu-traces.c:12: include/trace/events/iommu.h: At top level: >> include/trace/events/iommu.h:20:11: error: expected ')' before 'int' TP_PROTO(int group_id, struct device *dev), ^ include/linux/tracepoint.h:104:27: note: in definition of macro 'TP_PROTO' #define TP_PROTO(args...) args ^~~~ include/trace/events/iommu.h:41:11: error: expected ')' before 'int' TP_PROTO(int group_id, struct device *dev), ^ include/linux/tracepoint.h:104:27: note: in definition of macro 'TP_PROTO' #define TP_PROTO(args...) args ^~~~ include/trace/events/iommu.h:49:11: error: expected ')' before 'int' TP_PROTO(int group_id, struct device *dev), ^ include/linux/tracepoint.h:104:27: note: in definition of macro 'TP_PROTO' #define TP_PROTO(args...) args ^~~~ >> include/trace/events/iommu.h:56:11: error: expected ')' before 'struct' TP_PROTO(struct device *dev), ^ include/linux/tracepoint.h:104:27: note: in definition of macro 'TP_PROTO' #define TP_PROTO(args...) args ^~~~ include/trace/events/iommu.h:74:11: error: expected ')' before 'struct' TP_PROTO(struct device *dev), ^ include/linux/tracepoint.h:104:27: note: in definition of macro 'TP_PROTO' #define TP_PROTO(args...) args ^~~~ include/trace/events/iommu.h:81:11: error: expected ')' before 'struct' TP_PROTO(struct device *dev), ^ include/linux/tracepoint.h:104:27: note: in definition of macro 'TP_PROTO' #define TP_PROTO(args...) args ^~~~ >> include/trace/events/iommu.h:88:11: error: expected ')' before 'unsigned' TP_PROTO(unsigned long iova, phys_addr_t paddr, size_t size), ^ include/linux/tracepoint.h:104:27: note: in definition of macro 'TP_PROTO' #define TP_PROTO(args...) args ^~~~ include/trace/events/iommu.h:111:11: error: expected ')' before 'unsigned' TP_PROTO(unsigned long iova, size_t size, size_t unmapped_size), ^ include/linux/tracepoint.h:104:27: note: in definition of macro 'TP_PROTO' #define TP_PROTO(args...) args ^~~~ include/trace/events/iommu.h:134:11: error: expected ')' before 'struct' TP_PROTO(struct device *dev, unsigned long iova, int flags), ^ include/linux/tracepoint.h:104:27: note: in definition of macro 'TP_PROTO' #define TP_PROTO(args...) args ^~~~ include/trace/events/iommu.h:160:11: error: expected ')' before 'struct' TP_PROTO(struct device *dev, unsigned long iova, int flags), ^ include/linux/tracepoint.h:104:27: note: in definition of macro 'TP_PROTO' #define TP_PROTO(args...) args ^~~~ >> include/trace/events/iommu.h:20:11: error: expected ')' before 'int' TP_PROTO(int group_id, struct device *dev), ^ include/linux/tracepoint.h:104:27: note: in definition of macro 'TP_PROTO' #define TP_PROTO(args...) args ^~~~ include/linux/tracepoint.h:233:20: error: redefinition of '__tpstrtab_add_device_to_group' static const char __tpstrtab_##name[] \ ^ include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:50:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name) ^~~~~~~~~~~~ include/trace/events/iommu.h:39:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_group_event, add_device_to_group, ^~~~~~~~~~~~ include/linux/tracepoint.h:233:20: note: previous definition of '__tpstrtab_add_device_to_group' was here static const char __tpstrtab_##name[] \ ^ include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:50:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name) ^~~~~~~~~~~~ include/trace/events/iommu.h:39:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_group_event, add_device_to_group, ^~~~~~~~~~~~ include/linux/tracepoint.h:235:20: error: redefinition of '__tracepoint_add_device_to_group' struct tracepoint __tracepoint_##name \ ^ include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:50:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name) ^~~~~~~~~~~~ include/trace/events/iommu.h:39:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_group_event, add_device_to_group, ^~~~~~~~~~~~ include/linux/tracepoint.h:235:20: note: previous definition of '__tracepoint_add_device_to_group' was here struct tracepoint __tracepoint_##name \ ^ include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:50:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name) ^~~~~~~~~~~~ include/trace/events/iommu.h:39:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_group_event, add_device_to_group, ^~~~~~~~~~~~ include/linux/tracepoint.h:238:35: error: redefinition of '__tracepoint_ptr_add_device_to_group' static struct tracepoint * const __tracepoint_ptr_##name __used \ ^ include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:50:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name) ^~~~~~~~~~~~ include/trace/events/iommu.h:39:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_group_event, add_device_to_group, ^~~~~~~~~~~~ include/linux/tracepoint.h:238:35: note: previous definition of '__tracepoint_ptr_add_device_to_group' was here static struct tracepoint * const __tracepoint_ptr_##name __used \ ^ include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:50:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name) ^~~~~~~~~~~~ include/trace/events/iommu.h:39:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_group_event, add_device_to_group, ^~~~~~~~~~~~ include/linux/tracepoint.h:233:20: error: redefinition of '__tpstrtab_remove_device_from_group' static const char __tpstrtab_##name[] \ ^ include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:50:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name) ^~~~~~~~~~~~ include/trace/events/iommu.h:47:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_group_event, remove_device_from_group, ^~~~~~~~~~~~ include/linux/tracepoint.h:233:20: note: previous definition of '__tpstrtab_remove_device_from_group' was here static const char __tpstrtab_##name[] \ ^ include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:50:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name) ^~~~~~~~~~~~ include/trace/events/iommu.h:47:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_group_event, remove_device_from_group, ^~~~~~~~~~~~ include/linux/tracepoint.h:235:20: error: redefinition of '__tracepoint_remove_device_from_group' struct tracepoint __tracepoint_##name \ ^ include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:50:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name) ^~~~~~~~~~~~ include/trace/events/iommu.h:47:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_group_event, remove_device_from_group, ^~~~~~~~~~~~ include/linux/tracepoint.h:235:20: note: previous definition of '__tracepoint_remove_device_from_group' was here struct tracepoint __tracepoint_##name \ ^ include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:50:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name) ^~~~~~~~~~~~ include/trace/events/iommu.h:47:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_group_event, remove_device_from_group, ^~~~~~~~~~~~ include/linux/tracepoint.h:238:35: error: redefinition of '__tracepoint_ptr_remove_device_from_group' static struct tracepoint * const __tracepoint_ptr_##name __used \ ^ include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:50:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name) ^~~~~~~~~~~~ include/trace/events/iommu.h:47:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_group_event, remove_device_from_group, ^~~~~~~~~~~~ include/linux/tracepoint.h:238:35: note: previous definition of '__tracepoint_ptr_remove_device_from_group' was here static struct tracepoint * const __tracepoint_ptr_##name __used \ ^ include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:50:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name) ^~~~~~~~~~~~ include/trace/events/iommu.h:47:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_group_event, remove_device_from_group, ^~~~~~~~~~~~ >> include/trace/events/iommu.h:56:11: error: expected ')' before 'struct' TP_PROTO(struct device *dev), ^ include/linux/tracepoint.h:104:27: note: in definition of macro 'TP_PROTO' #define TP_PROTO(args...) args ^~~~ include/linux/tracepoint.h:233:20: error: redefinition of '__tpstrtab_attach_device_to_domain' static const char __tpstrtab_##name[] \ ^ include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:50:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name) ^~~~~~~~~~~~ include/trace/events/iommu.h:72:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_device_event, attach_device_to_domain, ^~~~~~~~~~~~ include/linux/tracepoint.h:233:20: note: previous definition of '__tpstrtab_attach_device_to_domain' was here static const char __tpstrtab_##name[] \ ^ include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:50:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name) ^~~~~~~~~~~~ include/trace/events/iommu.h:72:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_device_event, attach_device_to_domain, ^~~~~~~~~~~~ include/linux/tracepoint.h:235:20: error: redefinition of '__tracepoint_attach_device_to_domain' struct tracepoint __tracepoint_##name \ ^ include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:50:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name) ^~~~~~~~~~~~ include/trace/events/iommu.h:72:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_device_event, attach_device_to_domain, ^~~~~~~~~~~~ include/linux/tracepoint.h:235:20: note: previous definition of '__tracepoint_attach_device_to_domain' was here struct tracepoint __tracepoint_##name \ ^ include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:50:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name) ^~~~~~~~~~~~ include/trace/events/iommu.h:72:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_device_event, attach_device_to_domain, ^~~~~~~~~~~~ include/linux/tracepoint.h:238:35: error: redefinition of '__tracepoint_ptr_attach_device_to_domain' static struct tracepoint * const __tracepoint_ptr_##name __used \ ^ include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:50:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name) ^~~~~~~~~~~~ include/trace/events/iommu.h:72:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_device_event, attach_device_to_domain, ^~~~~~~~~~~~ include/linux/tracepoint.h:238:35: note: previous definition of '__tracepoint_ptr_attach_device_to_domain' was here static struct tracepoint * const __tracepoint_ptr_##name __used \ ^ include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:50:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name) ^~~~~~~~~~~~ include/trace/events/iommu.h:72:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_device_event, attach_device_to_domain, ^~~~~~~~~~~~ include/linux/tracepoint.h:233:20: error: redefinition of '__tpstrtab_detach_device_from_domain' static const char __tpstrtab_##name[] \ ^ include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:50:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name) ^~~~~~~~~~~~ include/trace/events/iommu.h:79:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_device_event, detach_device_from_domain, ^~~~~~~~~~~~ include/linux/tracepoint.h:233:20: note: previous definition of '__tpstrtab_detach_device_from_domain' was here static const char __tpstrtab_##name[] \ ^ include/linux/tracepoint.h:243:2: note: in expansion of macro 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, NULL, NULL); ^~~~~~~~~~~~~~~ include/trace/define_trace.h:50:2: note: in expansion of macro 'DEFINE_TRACE' DEFINE_TRACE(name) ^~~~~~~~~~~~ include/trace/events/iommu.h:79:1: note: in expansion of macro 'DEFINE_EVENT' DEFINE_EVENT(iommu_device_event, detach_device_from_domain, ..
vim +/trace_io_page_fault +368 include/linux/iommu.h
4f3f8d9d Ohad Ben-Cohen 2011-09-13 362 * invoke it. 4f3f8d9d Ohad Ben-Cohen 2011-09-13 363 */ 4f3f8d9d Ohad Ben-Cohen 2011-09-13 364 if (domain->handler) 77ca2332 Ohad Ben-Cohen 2012-05-21 365 ret = domain->handler(domain, dev, iova, flags, 77ca2332 Ohad Ben-Cohen 2012-05-21 366 domain->handler_token); 4a77a6cf Joerg Roedel 2008-11-26 367 56fa4849 Shuah Khan 2013-09-24 @368 trace_io_page_fault(dev, iova, flags); 4f3f8d9d Ohad Ben-Cohen 2011-09-13 369 return ret; 4a77a6cf Joerg Roedel 2008-11-26 370 } 4a77a6cf Joerg Roedel 2008-11-26 371
:::::: The code at line 368 was first introduced by commit :::::: 56fa484969c367e3ae43a012a7b99f75bb4f3bdb iommu: Change iommu driver to call io_page_fault trace event
:::::: TO: Shuah Khan <shuah.kh@samsung.com> :::::: CC: Joerg Roedel <joro@8bytes.org>
--- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation [unhandled content-type:application/gzip] | |