On 15.04.2024 23:05, Andi Shyti wrote: > Hi Heiner, > > On Fri, Apr 12, 2024 at 12:21:58PM +0200, Heiner Kallweit wrote: >> Annotate this variable as __ro_after_init to protect it from being >> overwritten later. > > What is the reason behind this patch? Where is the risk of > overwriting this variable? > The annotation makes clear that this variable is to be written by init code only, w/o having to check all usage in the driver. Currently the variable isn't written later, however the annotation protects from any such potential attempt in the future. The original commit message has more arguments for using this annotation. https://lwn.net/Articles/676145/ > Andi Heiner