From 17c74a3009176f33d45095df100afb23a1b48ca9 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 25 Sep 2020 14:50:52 +1000 Subject: [PATCH] checkpatch-warn-on-self-assignments-checkpatch-fixes WARNING: Unknown commit id '63a0895d960a', maybe rebased or not pulled? #4: The uninitialized_var() macro was removed recently via commit 63a0895d960a WARNING: 'assigments' may be misspelled - perhaps 'assignments'? #30: FILE: scripts/checkpatch.pl:3904: +# check for self assigments used to avoid compiler warnings total: 0 errors, 2 warnings, 17 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. ./patches/checkpatch-warn-on-self-assignments.patch has style problems, please review. NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 300b2659aab3..8b37262fdf85 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3901,7 +3901,7 @@ sub process { #ignore lines not being added next if ($line =~ /^[^\+]/); -# check for self assigments used to avoid compiler warnings +# check for self assignments used to avoid compiler warnings # e.g.: int foo = foo, *bar = NULL; # struct foo bar = *(&(bar)); if ($line =~ /^\+\s*(?:$Declare)?([A-Za-z_][A-Za-z\d_]*)\s*=/) {