Re: [PATCH] checkpatch: Avoid suggesting struct definitions should be const

2017-04-10 Thread Arthur Brainville (Ybalrid)
On Mon, Apr 10, 2017 at 10:45:55AM -0700, Joe Perches wrote: > Many structs are generally used const and there is a known list > of these structs. > > struct definitions should not be generally be declared const. > > Add a test for the lack of an open brace immediately after the > struct to avoid

[PATCH] checkpatch: Avoid suggesting struct definitions should be const

2017-04-10 Thread Joe Perches
Many structs are generally used const and there is a known list of these structs. struct definitions should not be generally be declared const. Add a test for the lack of an open brace immediately after the struct to avoid definitions. This avoids the false positive "struct foo should normally b