lkml.org 
[lkml]   [2015]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] checkpatch: Add a test for const with __read_mostly uses
On Wed, Apr 08, 2015 at 05:14:49PM -0700, Joe Perches wrote:
> const objects shouldn't be __read_mostly. They are read-only.
>
> Marking these objects as __read_mostly causes section conflicts
> with LTO linking.
>
> So add a test to try to avoid this issue.

Thanks Joe. Looks good thanks. I suspect excluding *
will miss quite a few cases, but there's no way around it.

-Andi


\
 
 \ /
  Last update: 2015-04-09 03:01    [W:0.046 / U:2.788 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site