* linux-next: build failure after merge of the loongarch tree
@ 2022-08-07 23:03 Stephen Rothwell
2022-08-08 7:28 ` Huacai Chen
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Rothwell @ 2022-08-07 23:03 UTC (permalink / raw)
To: Huacai Chen
Cc: Huacai Chen, Linux Kernel Mailing List, Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 3956 bytes --]
Hi all,
After merging the loongarch tree, today's linux-next build (x86_64
allmodconfig) failed like this:
drivers/acpi/tables.c: In function 'acpi_table_print_madt_entry':
drivers/acpi/tables.c:213:14: error: 'ACPI_MADT_TYPE_CORE_PIC' undeclared (first use in this function); did you mean 'ACPI_MADT_TYPE_IO_SAPIC'?
213 | case ACPI_MADT_TYPE_CORE_PIC:
| ^~~~~~~~~~~~~~~~~~~~~~~
| ACPI_MADT_TYPE_IO_SAPIC
drivers/acpi/tables.c:213:14: note: each undeclared identifier is reported only once for each function it appears in
In file included from include/linux/printk.h:573,
from include/linux/kernel.h:29,
from drivers/acpi/tables.c:13:
drivers/acpi/tables.c:218:35: error: invalid use of undefined type 'struct acpi_madt_core_pic'
218 | p->processor_id, p->core_id,
| ^~
include/linux/dynamic_debug.h:134:29: note: in definition of macro '__dynamic_func_call'
134 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:162:9: note: in expansion of macro '_dynamic_func_call'
162 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:588:9: note: in expansion of macro 'dynamic_pr_debug'
588 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
drivers/acpi/tables.c:217:25: note: in expansion of macro 'pr_debug'
217 | pr_debug("CORE PIC (processor_id[0x%02x] core_id[0x%02x] %s)\n",
| ^~~~~~~~
drivers/acpi/tables.c:218:52: error: invalid use of undefined type 'struct acpi_madt_core_pic'
218 | p->processor_id, p->core_id,
| ^~
include/linux/dynamic_debug.h:134:29: note: in definition of macro '__dynamic_func_call'
134 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:162:9: note: in expansion of macro '_dynamic_func_call'
162 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:588:9: note: in expansion of macro 'dynamic_pr_debug'
588 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
drivers/acpi/tables.c:217:25: note: in expansion of macro 'pr_debug'
217 | pr_debug("CORE PIC (processor_id[0x%02x] core_id[0x%02x] %s)\n",
| ^~~~~~~~
drivers/acpi/tables.c:219:36: error: invalid use of undefined type 'struct acpi_madt_core_pic'
219 | (p->flags & ACPI_MADT_ENABLED) ? "enabled" : "disabled");
| ^~
include/linux/dynamic_debug.h:134:29: note: in definition of macro '__dynamic_func_call'
134 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:162:9: note: in expansion of macro '_dynamic_func_call'
162 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:588:9: note: in expansion of macro 'dynamic_pr_debug'
588 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
drivers/acpi/tables.c:217:25: note: in expansion of macro 'pr_debug'
217 | pr_debug("CORE PIC (processor_id[0x%02x] core_id[0x%02x] %s)\n",
| ^~~~~~~~
Caused by commit
0541f3fad39f ("LoongArch: Parse MADT to get multi-processor information")
I have used the loongarch tree from next-20220805 for today.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linux-next: build failure after merge of the loongarch tree
2022-08-07 23:03 linux-next: build failure after merge of the loongarch tree Stephen Rothwell
@ 2022-08-08 7:28 ` Huacai Chen
0 siblings, 0 replies; 4+ messages in thread
From: Huacai Chen @ 2022-08-08 7:28 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Huacai Chen, Linux Kernel Mailing List, Linux Next Mailing List
Hi, Stephen,
On Mon, Aug 8, 2022 at 7:03 AM Stephen Rothwell <sfr@canb•auug.org.au> wrote:
>
> Hi all,
>
> After merging the loongarch tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
>
> drivers/acpi/tables.c: In function 'acpi_table_print_madt_entry':
> drivers/acpi/tables.c:213:14: error: 'ACPI_MADT_TYPE_CORE_PIC' undeclared (first use in this function); did you mean 'ACPI_MADT_TYPE_IO_SAPIC'?
> 213 | case ACPI_MADT_TYPE_CORE_PIC:
> | ^~~~~~~~~~~~~~~~~~~~~~~
> | ACPI_MADT_TYPE_IO_SAPIC
> drivers/acpi/tables.c:213:14: note: each undeclared identifier is reported only once for each function it appears in
> In file included from include/linux/printk.h:573,
> from include/linux/kernel.h:29,
> from drivers/acpi/tables.c:13:
> drivers/acpi/tables.c:218:35: error: invalid use of undefined type 'struct acpi_madt_core_pic'
> 218 | p->processor_id, p->core_id,
> | ^~
> include/linux/dynamic_debug.h:134:29: note: in definition of macro '__dynamic_func_call'
> 134 | func(&id, ##__VA_ARGS__); \
> | ^~~~~~~~~~~
> include/linux/dynamic_debug.h:162:9: note: in expansion of macro '_dynamic_func_call'
> 162 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
> | ^~~~~~~~~~~~~~~~~~
> include/linux/printk.h:588:9: note: in expansion of macro 'dynamic_pr_debug'
> 588 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
> | ^~~~~~~~~~~~~~~~
> drivers/acpi/tables.c:217:25: note: in expansion of macro 'pr_debug'
> 217 | pr_debug("CORE PIC (processor_id[0x%02x] core_id[0x%02x] %s)\n",
> | ^~~~~~~~
> drivers/acpi/tables.c:218:52: error: invalid use of undefined type 'struct acpi_madt_core_pic'
> 218 | p->processor_id, p->core_id,
> | ^~
> include/linux/dynamic_debug.h:134:29: note: in definition of macro '__dynamic_func_call'
> 134 | func(&id, ##__VA_ARGS__); \
> | ^~~~~~~~~~~
> include/linux/dynamic_debug.h:162:9: note: in expansion of macro '_dynamic_func_call'
> 162 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
> | ^~~~~~~~~~~~~~~~~~
> include/linux/printk.h:588:9: note: in expansion of macro 'dynamic_pr_debug'
> 588 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
> | ^~~~~~~~~~~~~~~~
> drivers/acpi/tables.c:217:25: note: in expansion of macro 'pr_debug'
> 217 | pr_debug("CORE PIC (processor_id[0x%02x] core_id[0x%02x] %s)\n",
> | ^~~~~~~~
> drivers/acpi/tables.c:219:36: error: invalid use of undefined type 'struct acpi_madt_core_pic'
> 219 | (p->flags & ACPI_MADT_ENABLED) ? "enabled" : "disabled");
> | ^~
> include/linux/dynamic_debug.h:134:29: note: in definition of macro '__dynamic_func_call'
> 134 | func(&id, ##__VA_ARGS__); \
> | ^~~~~~~~~~~
> include/linux/dynamic_debug.h:162:9: note: in expansion of macro '_dynamic_func_call'
> 162 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
> | ^~~~~~~~~~~~~~~~~~
> include/linux/printk.h:588:9: note: in expansion of macro 'dynamic_pr_debug'
> 588 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
> | ^~~~~~~~~~~~~~~~
> drivers/acpi/tables.c:217:25: note: in expansion of macro 'pr_debug'
> 217 | pr_debug("CORE PIC (processor_id[0x%02x] core_id[0x%02x] %s)\n",
> | ^~~~~~~~
>
> Caused by commit
>
> 0541f3fad39f ("LoongArch: Parse MADT to get multi-processor information")
>
> I have used the loongarch tree from next-20220805 for today.
I will fix it today, thanks.
Huacai
>
> --
> Cheers,
> Stephen Rothwell
^ permalink raw reply [flat|nested] 4+ messages in thread
* linux-next: build failure after merge of the loongarch tree
@ 2024-09-12 0:35 Stephen Rothwell
2024-09-12 3:33 ` lixianglai
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Rothwell @ 2024-09-12 0:35 UTC (permalink / raw)
To: Huacai Chen
Cc: Huacai Chen, Tianrui Zhao, Xianglai Li, Linux Kernel Mailing List,
Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 18836 bytes --]
Hi all,
After merging the loongarch tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:
In file included from include/trace/define_trace.h:102,
from include/trace/events/kvm.h:530,
from arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:65:
include/trace/events/kvm.h: In function 'trace_raw_output_kvm_iocsr':
include/trace/events/kvm.h:244:44: error: left-hand operand of comma expression has no effect [-Werror=unused-value]
244 | ({ KVM_TRACE_IOCSR_READ_UNSATISFIED, "unsatisfied-read" }, \
| ^
include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
203 | trace_event_printf(iter, print); \
| ^~~~~
include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
45 | PARAMS(print)); \
| ^~~~~~
include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
248 | TRACE_EVENT(kvm_iocsr,
| ^~~~~~~~~~~
include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
| ^~~~~~~~~
include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
| ^~~~~~~~~~~~~~~~
include/trace/events/kvm.h:270:51: note: in expansion of macro 'kvm_trace_symbol_iocsr'
270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
| ^~~~~~~~~~~~~~~~~~~~~~
include/trace/events/kvm.h:244:65: error: expected ';' before '}' token
244 | ({ KVM_TRACE_IOCSR_READ_UNSATISFIED, "unsatisfied-read" }, \
| ^
include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
203 | trace_event_printf(iter, print); \
| ^~~~~
include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
45 | PARAMS(print)); \
| ^~~~~~
include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
248 | TRACE_EVENT(kvm_iocsr,
| ^~~~~~~~~~~
include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
| ^~~~~~~~~
include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
| ^~~~~~~~~~~~~~~~
include/trace/events/kvm.h:270:51: note: in expansion of macro 'kvm_trace_symbol_iocsr'
270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
| ^~~~~~~~~~~~~~~~~~~~~~
include/trace/events/kvm.h:244:66: error: expected ')' before ',' token
244 | ({ KVM_TRACE_IOCSR_READ_UNSATISFIED, "unsatisfied-read" }, \
| ^
include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
203 | trace_event_printf(iter, print); \
| ^~~~~
include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
45 | PARAMS(print)); \
| ^~~~~~
include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
248 | TRACE_EVENT(kvm_iocsr,
| ^~~~~~~~~~~
include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
| ^~~~~~~~~
include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
| ^~~~~~~~~~~~~~~~
include/trace/events/kvm.h:270:51: note: in expansion of macro 'kvm_trace_symbol_iocsr'
270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
| ^~~~~~~~~~~~~~~~~~~~~~
include/trace/events/kvm.h:244:9: error: initialization of 'long unsigned int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
244 | ({ KVM_TRACE_IOCSR_READ_UNSATISFIED, "unsatisfied-read" }, \
| ^
include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
203 | trace_event_printf(iter, print); \
| ^~~~~
include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
45 | PARAMS(print)); \
| ^~~~~~
include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
248 | TRACE_EVENT(kvm_iocsr,
| ^~~~~~~~~~~
include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
| ^~~~~~~~~
include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
| ^~~~~~~~~~~~~~~~
include/trace/events/kvm.h:270:51: note: in expansion of macro 'kvm_trace_symbol_iocsr'
270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
| ^~~~~~~~~~~~~~~~~~~~~~
include/trace/events/kvm.h:244:9: note: (near initialization for 'symbols[0].mask')
244 | ({ KVM_TRACE_IOCSR_READ_UNSATISFIED, "unsatisfied-read" }, \
| ^
include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
203 | trace_event_printf(iter, print); \
| ^~~~~
include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
45 | PARAMS(print)); \
| ^~~~~~
include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
248 | TRACE_EVENT(kvm_iocsr,
| ^~~~~~~~~~~
include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
| ^~~~~~~~~
include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
| ^~~~~~~~~~~~~~~~
include/trace/events/kvm.h:270:51: note: in expansion of macro 'kvm_trace_symbol_iocsr'
270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
| ^~~~~~~~~~~~~~~~~~~~~~
include/trace/events/kvm.h:244:9: error: initializer element is not constant
244 | ({ KVM_TRACE_IOCSR_READ_UNSATISFIED, "unsatisfied-read" }, \
| ^
include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
203 | trace_event_printf(iter, print); \
| ^~~~~
include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
45 | PARAMS(print)); \
| ^~~~~~
include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
248 | TRACE_EVENT(kvm_iocsr,
| ^~~~~~~~~~~
include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
| ^~~~~~~~~
include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
| ^~~~~~~~~~~~~~~~
include/trace/events/kvm.h:270:51: note: in expansion of macro 'kvm_trace_symbol_iocsr'
270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
| ^~~~~~~~~~~~~~~~~~~~~~
include/trace/events/kvm.h:244:9: note: (near initialization for 'symbols[0].mask')
244 | ({ KVM_TRACE_IOCSR_READ_UNSATISFIED, "unsatisfied-read" }, \
| ^
include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
203 | trace_event_printf(iter, print); \
| ^~~~~
include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
45 | PARAMS(print)); \
| ^~~~~~
include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
248 | TRACE_EVENT(kvm_iocsr,
| ^~~~~~~~~~~
include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
| ^~~~~~~~~
include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
| ^~~~~~~~~~~~~~~~
include/trace/events/kvm.h:270:51: note: in expansion of macro 'kvm_trace_symbol_iocsr'
270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
| ^~~~~~~~~~~~~~~~~~~~~~
include/trace/stages/stage3_trace_output.h:77:37: error: braces around scalar initializer [-Werror]
77 | static const struct trace_print_flags symbols[] = \
| ^~~~~~~~~~~~~~~~~
include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
203 | trace_event_printf(iter, print); \
| ^~~~~
include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
45 | PARAMS(print)); \
| ^~~~~~
include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
248 | TRACE_EVENT(kvm_iocsr,
| ^~~~~~~~~~~
include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
| ^~~~~~~~~
include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
| ^~~~~~~~~~~~~~~~
include/trace/stages/stage3_trace_output.h:77:37: note: (near initialization for 'symbols[0].name')
77 | static const struct trace_print_flags symbols[] = \
| ^~~~~~~~~~~~~~~~~
include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
203 | trace_event_printf(iter, print); \
| ^~~~~
include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
45 | PARAMS(print)); \
| ^~~~~~
include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
248 | TRACE_EVENT(kvm_iocsr,
| ^~~~~~~~~~~
include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
| ^~~~~~~~~
include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
| ^~~~~~~~~~~~~~~~
include/trace/stages/stage3_trace_output.h:78:43: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
78 | { symbol_array, { -1, NULL }}; \
| ^
include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
203 | trace_event_printf(iter, print); \
| ^~~~~
include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
45 | PARAMS(print)); \
| ^~~~~~
include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
248 | TRACE_EVENT(kvm_iocsr,
| ^~~~~~~~~~~
include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
| ^~~~~~~~~
include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
| ^~~~~~~~~~~~~~~~
include/trace/stages/stage3_trace_output.h:78:43: note: (near initialization for 'symbols[0].name')
78 | { symbol_array, { -1, NULL }}; \
| ^
include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
203 | trace_event_printf(iter, print); \
| ^~~~~
include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
45 | PARAMS(print)); \
| ^~~~~~
include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
248 | TRACE_EVENT(kvm_iocsr,
| ^~~~~~~~~~~
include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
| ^~~~~~~~~
include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
| ^~~~~~~~~~~~~~~~
include/linux/stddef.h:8:14: error: excess elements in scalar initializer [-Werror]
8 | #define NULL ((void *)0)
| ^
include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
203 | trace_event_printf(iter, print); \
| ^~~~~
include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
45 | PARAMS(print)); \
| ^~~~~~
include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
248 | TRACE_EVENT(kvm_iocsr,
| ^~~~~~~~~~~
include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
| ^~~~~~~~~
include/trace/stages/stage3_trace_output.h:78:47: note: in expansion of macro 'NULL'
78 | { symbol_array, { -1, NULL }}; \
| ^~~~
include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
| ^~~~~~~~~~~~~~~~
include/linux/stddef.h:8:14: note: (near initialization for 'symbols[0].name')
8 | #define NULL ((void *)0)
| ^
include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
203 | trace_event_printf(iter, print); \
| ^~~~~
include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
45 | PARAMS(print)); \
| ^~~~~~
include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
248 | TRACE_EVENT(kvm_iocsr,
| ^~~~~~~~~~~
include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
| ^~~~~~~~~
include/trace/stages/stage3_trace_output.h:78:47: note: in expansion of macro 'NULL'
78 | { symbol_array, { -1, NULL }}; \
| ^~~~
include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
| ^~~~~~~~~~~~~~~~
include/trace/stages/stage3_trace_output.h:78:25: error: missing braces around initializer [-Werror=missing-braces]
78 | { symbol_array, { -1, NULL }}; \
| ^
include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
203 | trace_event_printf(iter, print); \
| ^~~~~
include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
45 | PARAMS(print)); \
| ^~~~~~
include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
248 | TRACE_EVENT(kvm_iocsr,
| ^~~~~~~~~~~
include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
| ^~~~~~~~~
include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Caused by commit
a7e93cf65d8a ("LoongArch: KVM: Add iocsr and mmio bus simulation in kernel")
I have used the loongarch tree from next-20240911 for today.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linux-next: build failure after merge of the loongarch tree
2024-09-12 0:35 Stephen Rothwell
@ 2024-09-12 3:33 ` lixianglai
0 siblings, 0 replies; 4+ messages in thread
From: lixianglai @ 2024-09-12 3:33 UTC (permalink / raw)
To: Stephen Rothwell, Huacai Chen
Cc: Huacai Chen, Tianrui Zhao, Linux Kernel Mailing List,
Linux Next Mailing List
Hi Stephen Rothwell:
Thank you very much for your feedback.
I think the following modification can solve the compilation problem of
ppc64.
I have verified it on the x86 cross environment,
and I will incorporate the modification into the next version of patch.
#define kvm_trace_symbol_iocsr \
- ({ KVM_TRACE_IOCSR_READ_UNSATISFIED, "unsatisfied-read" }, \
+ { KVM_TRACE_IOCSR_READ_UNSATISFIED, "unsatisfied-read" }, \
{ KVM_TRACE_IOCSR_READ, "read" }, \
- { KVM_TRACE_IOCSR_WRITE, "write" })
+ { KVM_TRACE_IOCSR_WRITE, "write" }
Thanks,
Xianglai.
> Hi all,
>
> After merging the loongarch tree, today's linux-next build (powerpc
> ppc64_defconfig) failed like this:
>
> In file included from include/trace/define_trace.h:102,
> from include/trace/events/kvm.h:530,
> from arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:65:
> include/trace/events/kvm.h: In function 'trace_raw_output_kvm_iocsr':
> include/trace/events/kvm.h:244:44: error: left-hand operand of comma expression has no effect [-Werror=unused-value]
> 244 | ({ KVM_TRACE_IOCSR_READ_UNSATISFIED, "unsatisfied-read" }, \
> | ^
> include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
> 203 | trace_event_printf(iter, print); \
> | ^~~~~
> include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
> 45 | PARAMS(print)); \
> | ^~~~~~
> include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
> 248 | TRACE_EVENT(kvm_iocsr,
> | ^~~~~~~~~~~
> include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
> 269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
> | ^~~~~~~~~
> include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
> 270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
> | ^~~~~~~~~~~~~~~~
> include/trace/events/kvm.h:270:51: note: in expansion of macro 'kvm_trace_symbol_iocsr'
> 270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
> | ^~~~~~~~~~~~~~~~~~~~~~
> include/trace/events/kvm.h:244:65: error: expected ';' before '}' token
> 244 | ({ KVM_TRACE_IOCSR_READ_UNSATISFIED, "unsatisfied-read" }, \
> | ^
> include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
> 203 | trace_event_printf(iter, print); \
> | ^~~~~
> include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
> 45 | PARAMS(print)); \
> | ^~~~~~
> include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
> 248 | TRACE_EVENT(kvm_iocsr,
> | ^~~~~~~~~~~
> include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
> 269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
> | ^~~~~~~~~
> include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
> 270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
> | ^~~~~~~~~~~~~~~~
> include/trace/events/kvm.h:270:51: note: in expansion of macro 'kvm_trace_symbol_iocsr'
> 270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
> | ^~~~~~~~~~~~~~~~~~~~~~
> include/trace/events/kvm.h:244:66: error: expected ')' before ',' token
> 244 | ({ KVM_TRACE_IOCSR_READ_UNSATISFIED, "unsatisfied-read" }, \
> | ^
> include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
> 203 | trace_event_printf(iter, print); \
> | ^~~~~
> include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
> 45 | PARAMS(print)); \
> | ^~~~~~
> include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
> 248 | TRACE_EVENT(kvm_iocsr,
> | ^~~~~~~~~~~
> include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
> 269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
> | ^~~~~~~~~
> include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
> 270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
> | ^~~~~~~~~~~~~~~~
> include/trace/events/kvm.h:270:51: note: in expansion of macro 'kvm_trace_symbol_iocsr'
> 270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
> | ^~~~~~~~~~~~~~~~~~~~~~
> include/trace/events/kvm.h:244:9: error: initialization of 'long unsigned int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
> 244 | ({ KVM_TRACE_IOCSR_READ_UNSATISFIED, "unsatisfied-read" }, \
> | ^
> include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
> 203 | trace_event_printf(iter, print); \
> | ^~~~~
> include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
> 45 | PARAMS(print)); \
> | ^~~~~~
> include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
> 248 | TRACE_EVENT(kvm_iocsr,
> | ^~~~~~~~~~~
> include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
> 269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
> | ^~~~~~~~~
> include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
> 270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
> | ^~~~~~~~~~~~~~~~
> include/trace/events/kvm.h:270:51: note: in expansion of macro 'kvm_trace_symbol_iocsr'
> 270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
> | ^~~~~~~~~~~~~~~~~~~~~~
> include/trace/events/kvm.h:244:9: note: (near initialization for 'symbols[0].mask')
> 244 | ({ KVM_TRACE_IOCSR_READ_UNSATISFIED, "unsatisfied-read" }, \
> | ^
> include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
> 203 | trace_event_printf(iter, print); \
> | ^~~~~
> include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
> 45 | PARAMS(print)); \
> | ^~~~~~
> include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
> 248 | TRACE_EVENT(kvm_iocsr,
> | ^~~~~~~~~~~
> include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
> 269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
> | ^~~~~~~~~
> include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
> 270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
> | ^~~~~~~~~~~~~~~~
> include/trace/events/kvm.h:270:51: note: in expansion of macro 'kvm_trace_symbol_iocsr'
> 270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
> | ^~~~~~~~~~~~~~~~~~~~~~
> include/trace/events/kvm.h:244:9: error: initializer element is not constant
> 244 | ({ KVM_TRACE_IOCSR_READ_UNSATISFIED, "unsatisfied-read" }, \
> | ^
> include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
> 203 | trace_event_printf(iter, print); \
> | ^~~~~
> include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
> 45 | PARAMS(print)); \
> | ^~~~~~
> include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
> 248 | TRACE_EVENT(kvm_iocsr,
> | ^~~~~~~~~~~
> include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
> 269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
> | ^~~~~~~~~
> include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
> 270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
> | ^~~~~~~~~~~~~~~~
> include/trace/events/kvm.h:270:51: note: in expansion of macro 'kvm_trace_symbol_iocsr'
> 270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
> | ^~~~~~~~~~~~~~~~~~~~~~
> include/trace/events/kvm.h:244:9: note: (near initialization for 'symbols[0].mask')
> 244 | ({ KVM_TRACE_IOCSR_READ_UNSATISFIED, "unsatisfied-read" }, \
> | ^
> include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
> 203 | trace_event_printf(iter, print); \
> | ^~~~~
> include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
> 45 | PARAMS(print)); \
> | ^~~~~~
> include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
> 248 | TRACE_EVENT(kvm_iocsr,
> | ^~~~~~~~~~~
> include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
> 269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
> | ^~~~~~~~~
> include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
> 270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
> | ^~~~~~~~~~~~~~~~
> include/trace/events/kvm.h:270:51: note: in expansion of macro 'kvm_trace_symbol_iocsr'
> 270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
> | ^~~~~~~~~~~~~~~~~~~~~~
> include/trace/stages/stage3_trace_output.h:77:37: error: braces around scalar initializer [-Werror]
> 77 | static const struct trace_print_flags symbols[] = \
> | ^~~~~~~~~~~~~~~~~
> include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
> 203 | trace_event_printf(iter, print); \
> | ^~~~~
> include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
> 45 | PARAMS(print)); \
> | ^~~~~~
> include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
> 248 | TRACE_EVENT(kvm_iocsr,
> | ^~~~~~~~~~~
> include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
> 269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
> | ^~~~~~~~~
> include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
> 270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
> | ^~~~~~~~~~~~~~~~
> include/trace/stages/stage3_trace_output.h:77:37: note: (near initialization for 'symbols[0].name')
> 77 | static const struct trace_print_flags symbols[] = \
> | ^~~~~~~~~~~~~~~~~
> include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
> 203 | trace_event_printf(iter, print); \
> | ^~~~~
> include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
> 45 | PARAMS(print)); \
> | ^~~~~~
> include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
> 248 | TRACE_EVENT(kvm_iocsr,
> | ^~~~~~~~~~~
> include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
> 269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
> | ^~~~~~~~~
> include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
> 270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
> | ^~~~~~~~~~~~~~~~
> include/trace/stages/stage3_trace_output.h:78:43: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
> 78 | { symbol_array, { -1, NULL }}; \
> | ^
> include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
> 203 | trace_event_printf(iter, print); \
> | ^~~~~
> include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
> 45 | PARAMS(print)); \
> | ^~~~~~
> include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
> 248 | TRACE_EVENT(kvm_iocsr,
> | ^~~~~~~~~~~
> include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
> 269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
> | ^~~~~~~~~
> include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
> 270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
> | ^~~~~~~~~~~~~~~~
> include/trace/stages/stage3_trace_output.h:78:43: note: (near initialization for 'symbols[0].name')
> 78 | { symbol_array, { -1, NULL }}; \
> | ^
> include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
> 203 | trace_event_printf(iter, print); \
> | ^~~~~
> include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
> 45 | PARAMS(print)); \
> | ^~~~~~
> include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
> 248 | TRACE_EVENT(kvm_iocsr,
> | ^~~~~~~~~~~
> include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
> 269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
> | ^~~~~~~~~
> include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
> 270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
> | ^~~~~~~~~~~~~~~~
> include/linux/stddef.h:8:14: error: excess elements in scalar initializer [-Werror]
> 8 | #define NULL ((void *)0)
> | ^
> include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
> 203 | trace_event_printf(iter, print); \
> | ^~~~~
> include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
> 45 | PARAMS(print)); \
> | ^~~~~~
> include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
> 248 | TRACE_EVENT(kvm_iocsr,
> | ^~~~~~~~~~~
> include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
> 269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
> | ^~~~~~~~~
> include/trace/stages/stage3_trace_output.h:78:47: note: in expansion of macro 'NULL'
> 78 | { symbol_array, { -1, NULL }}; \
> | ^~~~
> include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
> 270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
> | ^~~~~~~~~~~~~~~~
> include/linux/stddef.h:8:14: note: (near initialization for 'symbols[0].name')
> 8 | #define NULL ((void *)0)
> | ^
> include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
> 203 | trace_event_printf(iter, print); \
> | ^~~~~
> include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
> 45 | PARAMS(print)); \
> | ^~~~~~
> include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
> 248 | TRACE_EVENT(kvm_iocsr,
> | ^~~~~~~~~~~
> include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
> 269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
> | ^~~~~~~~~
> include/trace/stages/stage3_trace_output.h:78:47: note: in expansion of macro 'NULL'
> 78 | { symbol_array, { -1, NULL }}; \
> | ^~~~
> include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
> 270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
> | ^~~~~~~~~~~~~~~~
> include/trace/stages/stage3_trace_output.h:78:25: error: missing braces around initializer [-Werror=missing-braces]
> 78 | { symbol_array, { -1, NULL }}; \
> | ^
> include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
> 203 | trace_event_printf(iter, print); \
> | ^~~~~
> include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
> 45 | PARAMS(print)); \
> | ^~~~~~
> include/trace/events/kvm.h:248:1: note: in expansion of macro 'TRACE_EVENT'
> 248 | TRACE_EVENT(kvm_iocsr,
> | ^~~~~~~~~~~
> include/trace/events/kvm.h:269:9: note: in expansion of macro 'TP_printk'
> 269 | TP_printk("iocsr %s len %u gpa 0x%llx val 0x%llx",
> | ^~~~~~~~~
> include/trace/events/kvm.h:270:19: note: in expansion of macro '__print_symbolic'
> 270 | __print_symbolic(__entry->type, kvm_trace_symbol_iocsr),
> | ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
>
> Caused by commit
>
> a7e93cf65d8a ("LoongArch: KVM: Add iocsr and mmio bus simulation in kernel")
>
> I have used the loongarch tree from next-20240911 for today.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-09-12 3:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-07 23:03 linux-next: build failure after merge of the loongarch tree Stephen Rothwell
2022-08-08 7:28 ` Huacai Chen
-- strict thread matches above, loose matches on Subject: below --
2024-09-12 0:35 Stephen Rothwell
2024-09-12 3:33 ` lixianglai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox