diff options
author | Joe Perches <[email protected]> | 2018-09-04 15:46:20 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2018-09-04 16:45:02 -0700 |
commit | c5967e989f1fe702e75d7405b9251ec7e490d847 (patch) | |
tree | d083551d8f67cdde55f4c31c06b0a59762580f9d /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 62ec0d8c4f332dedf19d6fad15ddea639044d5fe (diff) |
checkpatch: add __ro_after_init to known $Attribute
__ro_after_init is a specific __attribute__ that checkpatch does currently
not understand.
Add it to the known $Attribute types so that code that uses variables
declared with __ro_after_init are not thought to be a modifier type.
This appears as a defect in checkpatch output of code like:
static bool trust_cpu __ro_after_init = IS_ENABLED(CONFIG_RANDOM_TRUST_CPU);
[...]
if (trust_cpu && arch_init) {
where checkpatch reports:
ERROR: space prohibited after that '&&' (ctx:WxW)
if (trust_cpu && arch_init) {
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Joe Perches <[email protected]>
Reported-by: Kees Cook <[email protected]>
Tested-by: Kees Cook <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions