From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
To: Jeongtae Park <jtp.park@samsung.com>
Cc: Adam Manzanares <a.manzanares@samsung.com>,
Alison Schofield <alison.schofield@intel.com>,
Ayush Mishra <ayush.m55@samsung.com>,
"Dan Williams" <dan.j.williams@intel.com>,
Davidlohr Bueso <dave@stgolabs.net>, Fan Ni <fan.ni@samsung.com>,
<gourry.memverge@gmail.com>, <linux-cxl@vger.kernel.org>,
Kyungsan Kim <ks0204.kim@samsung.com>,
"Wonjae Lee" <wj28.lee@samsung.com>,
Hojin Nam <hj96.nam@samsung.com>,
Junhyeok Im <junhyeok.im@samsung.com>,
Jehoon Park <jehoon.park@samsung.com>,
"Youngshin Park" <yshin0.park@samsung.com>,
Jeongtae Park <jeongtae.park@gmail.com>
Subject: Re: hw/cxl: avoid build error with lower(<=9) gcc versions
Date: Wed, 18 Oct 2023 17:37:49 +0100 [thread overview]
Message-ID: <20231018173749.00000e53@huawei.com> (raw)
In-Reply-To: <20231014120322.4145387-1-jtp.park@samsung.com>
On Sat, 14 Oct 2023 21:03:22 +0900
Jeongtae Park <jtp.park@samsung.com> wrote:
> We are testing on the below branch[1] and getting the following build
> error when using gcc-9 or gcc-7 (gcc-11 is ok).
>
> I was reported in private to Jonathan Cameron, and he will get rid of
> it soon.
>
> This is just for your information and for keeping on list.
>
> Thanks
> /jtpark
>
> [1]: https://gitlab.com/jic23/qemu/-/tree/cxl-2023-09-13/
>
> Reported-by: Kyungsan Kim <ks0204.kim@samsung.com>
> Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
FWIW this affects CLANG as well. I have no idea why reducing the scope
surrounding a _Static_assert() has the affect. If anyone has any pointers
to why that would be great. Same thing in a build issue report from Michael.
> ---
> hw/cxl/cxl-component-utils.c | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/hw/cxl/cxl-component-utils.c b/hw/cxl/cxl-component-utils.c
> index c022a90774..fd15d9a61e 100644
> --- a/hw/cxl/cxl-component-utils.c
> +++ b/hw/cxl/cxl-component-utils.c
> @@ -325,9 +325,11 @@ void cxl_component_register_init_common(uint32_t *reg_state,
> case CXL2_ROOT_PORT:
> case CXL2_UPSTREAM_PORT:
> case CXL2_DOWNSTREAM_PORT:
> - init_cap_reg(RAS, 2, 2);
> - ras_init_common(reg_state, write_msk);
> - break;
> + {
> + init_cap_reg(RAS, 2, 2);
> + ras_init_common(reg_state, write_msk);
> + break;
> + }
> default:
> break;
> }
prev parent reply other threads:[~2023-10-18 16:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20231014120038epcas2p388517f5719bcd6517ff83580aebe9f53@epcas2p3.samsung.com>
2023-10-14 12:03 ` hw/cxl: avoid build error with lower(<=9) gcc versions Jeongtae Park
2023-10-18 16:37 ` Jonathan Cameron [this message]
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=20231018173749.00000e53@huawei.com \
--to=jonathan.cameron@huawei.com \
--cc=a.manzanares@samsung.com \
--cc=alison.schofield@intel.com \
--cc=ayush.m55@samsung.com \
--cc=dan.j.williams@intel.com \
--cc=dave@stgolabs.net \
--cc=fan.ni@samsung.com \
--cc=gourry.memverge@gmail.com \
--cc=hj96.nam@samsung.com \
--cc=jehoon.park@samsung.com \
--cc=jeongtae.park@gmail.com \
--cc=jtp.park@samsung.com \
--cc=junhyeok.im@samsung.com \
--cc=ks0204.kim@samsung.com \
--cc=linux-cxl@vger.kernel.org \
--cc=wj28.lee@samsung.com \
--cc=yshin0.park@samsung.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.