Re: [cocci] [v4 2/5] arm64: tlb: Convert the opencoded field modify

From: Markus Elfring
Date: Mon Jun 16 2025 - 09:55:21 EST


>>> Replace below code with the wrapper FIELD_MODIFY(MASK, &reg, val)
>>> - reg &= ~MASK;
>>> - reg |= FIELD_PREP(MASK, val);

> I will review the generated message to improve the formatting as you
> suggested, the next time I use it.
Would indentation be more helpful for the mentioned code excerpt
(instead of trying to describe lines with bullet points)?

Regards,
Markus