[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 01/31] checkpatch: Fix use of uninitialized value
From: |
Alex Bennée |
Subject: |
[PATCH v3 01/31] checkpatch: Fix use of uninitialized value |
Date: |
Wed, 12 May 2021 11:20:21 +0100 |
From: Greg Kurz <groug@kaod.org>
checkfilename() doesn't always set $acpi_testexpected. Fix the following
warning:
Use of uninitialized value $acpi_testexpected in string eq at
./scripts/checkpatch.pl line 1529.
Fixes: d2f1af0e4120 ("checkpatch: don't emit warning on newly created acpi data
files")
Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Isaku Yamahata <isaku.yamahata@intel.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210408164610.14229-1-alex.bennee@linaro.org>
Message-Id: <161786467973.295167.5612704777283969903.stgit@bahia.lan>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
scripts/checkpatch.pl | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 8f7053ec9b..3d185cceac 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1532,6 +1532,7 @@ sub process {
($line =~ /\{\s*([\w\/\.\-]*)\s*\=\>\s*([\w\/\.\-]*)\s*\}/
&&
(defined($1) || defined($2)))) &&
!(($realfile ne '') &&
+ defined($acpi_testexpected) &&
($realfile eq $acpi_testexpected))) {
$reported_maintainer_file = 1;
WARN("added, moved or deleted file(s), does MAINTAINERS
need updating?\n" . $herecurr);
--
2.20.1
- [PATCH v3 00/31] testing/next pre-PR (hexagon, tricore, misc), Alex Bennée, 2021/05/12
- [PATCH v3 01/31] checkpatch: Fix use of uninitialized value,
Alex Bennée <=
- [PATCH v3 02/31] tests/docker: fix copying of executable in "update", Alex Bennée, 2021/05/12
- [PATCH v3 03/31] tests/docker: make executable an optional argument to "update", Alex Bennée, 2021/05/12
- [PATCH v3 04/31] tests/docker: allow "update" to add the current user, Alex Bennée, 2021/05/12
- [PATCH v3 05/31] tests/docker: add "fetch" sub-command, Alex Bennée, 2021/05/12
- [PATCH v3 08/31] gitlab: add build-user-hexagon test, Alex Bennée, 2021/05/12
- [PATCH v3 07/31] tests/tcg: Use Hexagon Docker image, Alex Bennée, 2021/05/12
- [PATCH v3 06/31] docker: Add Hexagon image, Alex Bennée, 2021/05/12
- [PATCH v3 09/31] tests/tcg: don't iterate through other arch compilers, Alex Bennée, 2021/05/12
- [PATCH v3 10/31] tests/docker: Added libbpf library to the docker files., Alex Bennée, 2021/05/12
- [PATCH v3 12/31] tests/tcg: Run timeout cmds using --foreground, Alex Bennée, 2021/05/12