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

From: Luo Jie
Date: Mon Jun 16 2025 - 12:20:21 EST




On 6/16/2025 9:52 PM, Markus Elfring wrote:
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

I agree that using indentation would make the code excerpt clearer.
Thanks.