summaryrefslogtreecommitdiffstats
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2018-09-05 00:46:20 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2018-09-05 01:45:02 +0200
commitc5967e989f1fe702e75d7405b9251ec7e490d847 (patch)
treed083551d8f67cdde55f4c31c06b0a59762580f9d /lib/Kconfig.debug
parentmm: fix BUG_ON() in vmf_insert_pfn_pud() from VM_MIXEDMAP removal (diff)
downloadlinux-c5967e989f1fe702e75d7405b9251ec7e490d847.tar.xz
linux-c5967e989f1fe702e75d7405b9251ec7e490d847.zip
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/0fa8a2cb83ade4c525e18261ecf6cfede3015983.camel@perches.com Signed-off-by: Joe Perches <joe@perches.com> Reported-by: Kees Cook <keescook@chromium.org> Tested-by: Kees Cook <keescook@chromium.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions