qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH] scripts/checkpatch: fix uninitialised value check
@ 2021-04-08 16:46 Alex Bennée
  2021-04-08 16:50 ` Peter Maydell
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Bennée @ 2021-04-08 16:46 UTC (permalink / raw)
  To: qemu-devel
  Cc: Isaku Yamahata, Alex Bennée, berrange, Michael S . Tsirkin

This was starting to show up in the check-patch test on gitlab.

Fixes: d2f1af0e41 ("checkpatch: don't emit warning on newly created acpi data files")
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Cc: Isaku Yamahata <isaku.yamahata@intel.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
---
 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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [RFC PATCH] scripts/checkpatch: fix uninitialised value check
  2021-04-08 16:46 [RFC PATCH] scripts/checkpatch: fix uninitialised value check Alex Bennée
@ 2021-04-08 16:50 ` Peter Maydell
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2021-04-08 16:50 UTC (permalink / raw)
  To: Alex Bennée
  Cc: Isaku Yamahata, Daniel P. Berrange, QEMU Developers, Michael S . Tsirkin

On Thu, 8 Apr 2021 at 17:49, Alex Bennée <alex.bennee@linaro.org> wrote:
>
> This was starting to show up in the check-patch test on gitlab.
>
> Fixes: d2f1af0e41 ("checkpatch: don't emit warning on newly created acpi data files")
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> Cc: Isaku Yamahata <isaku.yamahata@intel.com>
> Cc: Michael S. Tsirkin <mst@redhat.com>
> ---
>  scripts/checkpatch.pl | 1 +
>  1 file changed, 1 insertion(+)


Already submitted by Greg:
https://patchew.org/QEMU/161786467973.295167.5612704777283969903.stgit@bahia.lan/

thanks
-- PMM


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-08 16:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-08 16:46 [RFC PATCH] scripts/checkpatch: fix uninitialised value check Alex Bennée
2021-04-08 16:50 ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).