From: Stephen Rothwell <sfr@canb•auug.org.au>
To: Huacai Chen <chenhuacai@loongson•cn>
Cc: Huacai Chen <chenhuacai@kernel•org>,
Tianrui Zhao <zhaotianrui@loongson•cn>,
Xianglai Li <lixianglai@loongson•cn>,
Linux Kernel Mailing List <linux-kernel@vger•kernel.org>,
Linux Next Mailing List <linux-next@vger•kernel.org>
Subject: linux-next: build failure after merge of the loongarch tree
Date: Thu, 12 Sep 2024 10:35:24 +1000 [thread overview]
Message-ID: <20240912103524.62ac1dae@canb.auug.org.au> (raw)
[-- 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 --]
next reply other threads:[~2024-09-12 0:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-12 0:35 Stephen Rothwell [this message]
2024-09-12 3:33 ` linux-next: build failure after merge of the loongarch tree lixianglai
-- strict thread matches above, loose matches on Subject: below --
2022-08-07 23:03 Stephen Rothwell
2022-08-08 7:28 ` Huacai Chen
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=20240912103524.62ac1dae@canb.auug.org.au \
--to=sfr@canb$(echo .)auug.org.au \
--cc=chenhuacai@kernel$(echo .)org \
--cc=chenhuacai@loongson$(echo .)cn \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-next@vger$(echo .)kernel.org \
--cc=lixianglai@loongson$(echo .)cn \
--cc=zhaotianrui@loongson$(echo .)cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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