aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorJoe Perches <[email protected]>2020-10-15 20:12:09 -0700
committerLinus Torvalds <[email protected]>2020-10-16 11:11:21 -0700
commit99ca38c2aa7da5ab39e55f13fd425c6101903ccb (patch)
tree2f209a09fbe8a7a1dc9a5dfe461b565476df9fa0 /scripts/gdb/linux/tasks.py
parentc12093a11462b775a83ed600bf0036c8bef3e841 (diff)
checkpatch: warn on self-assignments
The uninitialized_var() macro was removed recently via commit 63a0895d960a ("compiler: Remove uninitialized_var() macro") as it's not a particularly useful warning and its use can "paper over real bugs". Add a checkpatch test to warn on self-assignments as a means to avoid compiler warnings and as a back-door mechanism to reproduce the old uninitialized_var macro behavior. [[email protected]: coding style fixes] Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Cc: Kees Cook <[email protected]> Cc: Gustavo A. R. Silva <[email protected]> Cc: Denis Efremov <[email protected]> Cc: Julia Lawall <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions