diff options
author | Joe Perches <joe@perches.com> | 2014-10-13 15:51:55 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-14 02:18:15 +0200 |
commit | 08a2843e77fc581d204c1e83de4678b746cdbd6e (patch) | |
tree | e1cddaa649c00e4181f19c01d76fead28b5af8e0 /scripts/spelling.txt | |
parent | d2207ccbc59900311c88bb9150b24253cd4ddd49 (diff) | |
download | op-kernel-dev-08a2843e77fc581d204c1e83de4678b746cdbd6e.zip op-kernel-dev-08a2843e77fc581d204c1e83de4678b746cdbd6e.tar.gz |
checkpatch: warn on macros with flow control statements
Macros with flow control statements (goto and return) are not very nice to
read as any flow movement is unexpected.
Try to highlight them and emit a warning on their definition.
Avoid warning on macros that use argument concatenation as those macros
commonly create another function where the concatenation is used in the
function name definition like:
#define FOO_FUNC(name, rtn_type) \
rtn_type func##name(arg1, ...) \
{ \
rtn_type rtn; \
[code...] \
return rtn; \
}
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/spelling.txt')
0 files changed, 0 insertions, 0 deletions