[PATCH] ethdev: add extension keyword to statement expression macro
Ferruh Yigit
ferruh.yigit at amd.com
Sat Nov 11 00:25:54 CET 2023
On 11/10/2023 8:49 PM, Tyler Retzlaff wrote:
> On Fri, Nov 10, 2023 at 05:22:52PM +0000, Ferruh Yigit wrote:
>> On 11/9/2023 8:13 PM, Tyler Retzlaff wrote:
>>> add missing __extension__ keyword to macros using gcc statement
>>> expression extension.
>>>
>>> Signed-off-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
>>>
>>
>> Acked-by: Ferruh Yigit <ferruh.yigit at amd.com>
>>
>>
>> It seems there are a few more usage not marked in lib folder [1], and
>> more including drivers.
>
> yeah, sorry i'm not doing them all at once. though given the number of
> instances left i'll see if i can find a few minutes maybe just clear
> lib/* entirely drivers like for everything else are lower priority for
> me right now (always open to help of course).
>
that is OK, I just want to remind
>>
>> Is this compiler extension causing any problem for the Windows build or
>> MSVC toolchain?
>
> just the msvc toolchain, builds with gcc/clang targeting windows work fine.
>
> i'm working internally with the msvc toolchain team to enable support
> for the extension on the condition that it be marked with the
> __extension__ keyword so i'm just making sure it is applied
> consistently.
>
Nice, if just marking extensions is sufficient, that is easy to do.
>>
>>
>>
>> [1]
>> $ grep -r '({' lib/ | grep -v __extension__
>> lib/port/rte_port_source_sink.c:({
>> lib/port/rte_port_source_sink.c:({
>> lib/pipeline/rte_swx_pipeline_internal.h:({
>> lib/pipeline/rte_pipeline.c: ({ (p)->n_pkts_ah_drop =
>> lib/pipeline/rte_pipeline.c: ({ (counter) += (p)->n_pkts_ah_drop;
>> lib/pipeline/rte_pipeline.c: ({ (p)->pkts_drop_mask =
>> lib/pipeline/rte_pipeline.c:({
>> lib/ethdev/rte_mtr.c:({
>> lib/ethdev/rte_mtr.c:({
>> lib/ethdev/rte_tm.c:({
More information about the dev
mailing list