Skip to contentSkip to conversation

checkpatch-fix-use-of-uninitialized-value-warnings.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 22, 2013 Checkpatch

lore
Share & tools
lore
#0 lore raw

Subject: [merged] checkpatch-fix-use-of-uninitialized-value-warnings.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 22 Nov 2013 13:21:46 -0800

The patch titled
Subject: checkpatch: fix "Use of uninitialized value" warnings
has been removed from the -mm tree. Its filename was
checkpatch-fix-use-of-uninitialized-value-warnings.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Joe Perches <[email protected]>
Subject: checkpatch: fix "Use of uninitialized value" warnings

checkpatch is currently confused about some complex macros and references undefined variables $stat and $cond.

Make sure these are defined before using them.

---

 scripts/checkpatch.pl |    1 +
 1 file changed, 1 insertion(+)
scripts/checkpatch.pl renamed from scripts/checkpatch.pl~checkpatch-fix-use-of-uninitialized-value-warnings +1 -0
diff -puN scripts/checkpatch.pl~checkpatch-fix-use-of-uninitialized-value-warnings scripts/checkpatch.pl
@@ -3289,6 +3289,7 @@ sub process {
 			}
 		}
 		if (!defined $suppress_whiletrailers{$linenr} &&
+		    defined($stat) && defined($cond) &&
 		    $line =~ /\b(?:if|while|for)\s*\(/ && $line !~ /^.\s*#/) {
 			my ($s, $c) = ($stat, $cond);
 

_

Patches currently in -mm which might be from [email protected] are

origin.patch kernel-timerc-convert-kmalloc_nodegfp_zero-to-kzalloc_node.patch lib-parserc-add-match_wildcard-function.patch lib-parserc-put-export_symbols-in-the-conventional-place.patch dynamic_debug-add-wildcard-support-to-filter-files-functions-modules.patch dynamic-debug-howtotxt-update-since-new-wildcard-support.patch printk-cache-mark-printk_once-test-variable-__read_mostly.patch printk-cache-mark-printk_once-test-variable-__read_mostly-fix.patch get_maintainer-add-commit-author-information-to-rolestats.patch checkpatchpl-check-for-function-declarations-without-arguments.patch linux-next.patch