Message ID | 1515756676-3860-47-git-send-email-pbonzini@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="M1Nf3q8/"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zJ1N503k0z9s81 for <incoming@patchwork.ozlabs.org>; Fri, 12 Jan 2018 22:53:09 +1100 (AEDT) Received: from localhost ([::1]:35313 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1eZxtS-0000od-VH for incoming@patchwork.ozlabs.org; Fri, 12 Jan 2018 06:53:07 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1eZxZH-0007w8-8d for qemu-devel@nongnu.org; Fri, 12 Jan 2018 06:32:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1eZxZG-00060J-HD for qemu-devel@nongnu.org; Fri, 12 Jan 2018 06:32:15 -0500 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:42373) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1eZxZG-0005z8-BH for qemu-devel@nongnu.org; Fri, 12 Jan 2018 06:32:14 -0500 Received: by mail-wm0-x242.google.com with SMTP id b141so11528484wme.1 for <qemu-devel@nongnu.org>; Fri, 12 Jan 2018 03:32:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=3cg63NDUmgBpGpBxxApA/29oZGAjDVw5iBbPXqLg6Tc=; b=M1Nf3q8/7EMHMfXuIhPsBT3jel0SSieUbGRzo+1aVclU0PwGlWvAikTZ49mjUrNsA3 7oDKufezbtOH3jT0bL6igaPZ/AqqUAX19b4YDZ8wl+xRPhR+cYQURZyEC0mYOuAXRPOw N+rBC/EDad5SfWrbPS1dbOLGM0ZEbbzdwA8zhnFAja+ke5TmeWGBdERr+1z69SvyMnQw eMx0jXCMjtiFAMCh1dPnZAYn4hsxH6uvcDjb+9eNhRqt1mGfH3snQCUXoFLBCaz4mFlF wy2/Uvb+QTtgKIEY1LGNGcSwgTFfX3Dgq0TWpigw+nHVRsBvQfA+/uirC3SPsP7AGZdP M3VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=3cg63NDUmgBpGpBxxApA/29oZGAjDVw5iBbPXqLg6Tc=; b=IEjLxns/Z/lLxHwMcV3sMGBt+iVDOpA8mkWrip6MxLs5nSxcq7KSXw44nqYlGxg7Pz 0GQRVDA6LIaiA+K1hSWrHPSdz3sC9ejtXNgqgyzWbVRUl09ggO0fsKqOiEEg4cWHP0Z7 SE3WU53ldxrkLy1dBn19UzblUeByPiUy0VvDmSq2lb+hPNZ0++YkUcEXPiFTdVLw/IFG XFRhoEXQw+2PGMKZo+JE8L1yWCKg86XbyBNTGMksIMfPjy7g+EIkGrMniRrbCWBRA42K oWYA/zQOON2OMpu5JXuEyGqJZwzrz2S4SK9UBfkwfr1Pdjf7DrQJ9k6UwdzfL7I0XB8y ZdZg== X-Gm-Message-State: AKwxytfDA3I7wuP10olk4FsVDGhpQ86oMV49cyKeD/je7WY9E5CmaHSV sAi+kjXodo7pPi+tlYrLY/eQsHM/ X-Google-Smtp-Source: ACJfBot04QXNSVK6fPm22HhFuVzuQ1HhJf39oaWWvl9jNoI+CauTYFUv9lNGoZ3/Ksyd6lONtjrAMg== X-Received: by 10.28.84.14 with SMTP id i14mr270803wmb.30.1515756733014; Fri, 12 Jan 2018 03:32:13 -0800 (PST) Received: from 640k.lan (dynamic-adsl-78-12-229-84.clienti.tiscali.it. [78.12.229.84]) by smtp.gmail.com with ESMTPSA id l8sm2732271wmg.46.2018.01.12.03.32.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Jan 2018 03:32:11 -0800 (PST) From: Paolo Bonzini <pbonzini@redhat.com> To: qemu-devel@nongnu.org Date: Fri, 12 Jan 2018 12:31:10 +0100 Message-Id: <1515756676-3860-47-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1515756676-3860-1-git-send-email-pbonzini@redhat.com> References: <1515756676-3860-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::242 Subject: [Qemu-devel] [PULL 46/52] checkpatch: Enforce proper do/while (0) style X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
[PULL,01/52] scsi-generic: Add share-rw option
|
expand
|
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 3dc27d9..accba24 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1622,6 +1622,11 @@ sub process { } } +# 'do ... while (0/false)' only makes sense in macros, without trailing ';' + if ($line =~ /while\s*\((0|false)\);/) { + ERROR("suspicious ; after while (0)\n" . $herecurr); + } + # Check relative indent for conditionals and blocks. if ($line =~ /\b(?:(?:if|while|for)\s*\(|do\b)/ && $line !~ /^.\s*#/ && $line !~ /\}\s*while\s*/) { my ($s, $c) = ($stat, $cond);