diff options
| author | Joe Perches <[email protected]> | 2015-04-16 12:44:42 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2015-04-17 09:03:58 -0400 |
| commit | c17893c7407fbe988f5901596c3e5e75c0dc0f67 (patch) | |
| tree | f3e590db15b6f5fac82efbc8b5353d9c382b715d /tools/perf/scripts/python/bin | |
| parent | d7fe8065ad891a2ad38b73ff10b97d08f0fb3b0b (diff) | |
checkpatch: add a test for const with __read_mostly uses
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.
Signed-off-by: Joe Perches <[email protected]>
Cc: Andy Whitcroft <[email protected]>
Cc: Andi Kleen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions