On Fri, 26 Aug 2022, Jan Beulich wrote:
> On 26.08.2022 09:58, Xenia Ragiadakou wrote:
> > On 8/26/22 09:21, Jan Beulich wrote:
> >> On 25.08.2022 20:09, Stefano Stabellini wrote:
> >>> But first, let's confirm whether this change:
> >>>
> >>>
> >>> #define dt_for_each_property_node(dn, pp)
On 26.08.2022 09:58, Xenia Ragiadakou wrote:
> On 8/26/22 09:21, Jan Beulich wrote:
>> On 25.08.2022 20:09, Stefano Stabellini wrote:
>>> But first, let's confirm whether this change:
>>>
>>>
>>> #define dt_for_each_property_node(dn, pp) \
>>> -for ( pp = dn->properties; pp
On 8/26/22 09:21, Jan Beulich wrote:
On 25.08.2022 20:09, Stefano Stabellini wrote:
But first, let's confirm whether this change:
#define dt_for_each_property_node(dn, pp) \
-for ( pp = dn->properties; pp != NULL; pp = pp->next )
+for ( pp = (dn)->properties; pp !
On 25.08.2022 20:09, Stefano Stabellini wrote:
> But first, let's confirm whether this change:
>
>
> #define dt_for_each_property_node(dn, pp) \
> -for ( pp = dn->properties; pp != NULL; pp = pp->next )
> +for ( pp = (dn)->properties; pp != NULL; pp = (pp)->next )
>
>
CC MISRA C working group
Short summary: we are discussing whether the following is sufficient to
address MISRA C Rule 20.7, and also in general for safety:
#define dt_for_each_property_node(dn, pp) \
-for ( pp = dn->properties; pp != NULL; pp = pp->next )
+for ( pp = (
On 25.08.2022 10:02, Xenia Ragiadakou wrote:
> On 8/22/22 14:48, Jan Beulich wrote:
>> On 22.08.2022 12:43, Xenia Ragiadakou wrote:
>>> On 8/22/22 12:59, Jan Beulich wrote:
On 19.08.2022 21:43, Xenia Ragiadakou wrote:
> In macros dt_for_each_property_node(), dt_for_each_device_node() and
>
On 8/22/22 14:48, Jan Beulich wrote:
On 22.08.2022 12:43, Xenia Ragiadakou wrote:
On 8/22/22 12:59, Jan Beulich wrote:
On 19.08.2022 21:43, Xenia Ragiadakou wrote:
In macros dt_for_each_property_node(), dt_for_each_device_node() and
dt_for_each_child_node(), add parentheses around the macro
On 22.08.2022 12:43, Xenia Ragiadakou wrote:
> On 8/22/22 12:59, Jan Beulich wrote:
>> On 19.08.2022 21:43, Xenia Ragiadakou wrote:
>>> In macros dt_for_each_property_node(), dt_for_each_device_node() and
>>> dt_for_each_child_node(), add parentheses around the macro parameters that
>>> have the ar
Hi Jan,
On 8/22/22 12:59, Jan Beulich wrote:
On 19.08.2022 21:43, Xenia Ragiadakou wrote:
In macros dt_for_each_property_node(), dt_for_each_device_node() and
dt_for_each_child_node(), add parentheses around the macro parameters that
have the arrow operator applied, to prevent against unintende
On 19.08.2022 21:43, Xenia Ragiadakou wrote:
> In macros dt_for_each_property_node(), dt_for_each_device_node() and
> dt_for_each_child_node(), add parentheses around the macro parameters that
> have the arrow operator applied, to prevent against unintended expansions.
Why is this relevant only wh
On Fri, 19 Aug 2022, Xenia Ragiadakou wrote:
> In macros dt_for_each_property_node(), dt_for_each_device_node() and
> dt_for_each_child_node(), add parentheses around the macro parameters that
> have the arrow operator applied, to prevent against unintended expansions.
>
> Signed-off-by: Xenia Rag
11 matches
Mail list logo