From patchwork Mon Feb 21 09:27:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 544416 Delivered-To: patch@linaro.org Received: by 2002:ac0:e142:0:0:0:0:0 with SMTP id r2csp3105927imn; Mon, 21 Feb 2022 01:47:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/j6LGop1oZ+jwogimKjMrbQcfL4BGtRa0lDDedOispwF/X3z4AMlT5OlOZSk+JjZWzzbU X-Received: by 2002:a37:c44d:0:b0:60d:d761:516a with SMTP id h13-20020a37c44d000000b0060dd761516amr11152752qkm.273.1645436866829; Mon, 21 Feb 2022 01:47:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645436866; cv=none; d=google.com; s=arc-20160816; b=bnXZaRUXPFaKB9wH16EgGJHUDoDQ13UoI95qb9QSuym6pctjtRdXPjtWYi6f+aokBg lkzKe2ANfS+/PdxdwevO5oYtjz0Mjck6EWSosInbuRQdi5qC2VkCsJ3YK+TzmOvnaMen njM/Q6chPeFdhTUE9oZbdznBsDzw+8eiVqewsI1PwY5Q+m68SqbA8J1u2AQQTfHkCUJa gCosUmQ0Tc9G6z5kD8UZn2MQAldh73ZG469IAOfxrd+Ihh09eMrg0iRe6tlDfGz3Lz8F gYSknZQJnwM2X5sCjXJCUcnYEDLfkxOB372LPblGFD91Fi9GF1ra3qFJq+5Kr41KnYkh blBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=ohvqOffcepW7CtlFg3ZQ+s1HR00RGP932N5zAI3tYFM=; b=BIkRMvMh+j7aNb2d/VPmyczbX1iaPNyCZkPzEGwPfEeZymhjuYdSERX3oMXL8c+/dO V+cMwadDXA4DzjXNyMNl5D8QjH5EPnVweG65nV2PEdxQQNxMMR87ho0oP25dTYYa8WnF EpTPFxYdDidCYqd/FyMjGG+QL4RCEd0NNJR4P1PRwUap5amW02GdpQaN5KnU8plrKci5 /QkFD7Oeh4K0YHF62qXvxb5BDsP6tG0bTLDDlhR7brBjJGFNeE28n6ru1cxo0OqZ8k3J v4MVxwVx/JpXCc0/30pHr3sD/j6erS4U0oYjlJVc3ZKHcHEHQ7Z098V4XFOE31s82xjg DV0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K64WrwKY; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id h1si15067121qkn.309.2022.02.21.01.47.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Feb 2022 01:47:46 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K64WrwKY; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:36608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nM5II-0000aw-3d for patch@linaro.org; Mon, 21 Feb 2022 04:47:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nM4zL-0007xx-2p for qemu-devel@nongnu.org; Mon, 21 Feb 2022 04:28:11 -0500 Received: from [2a00:1450:4864:20::335] (port=37401 helo=mail-wm1-x335.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nM4zJ-0000zm-Gk for qemu-devel@nongnu.org; Mon, 21 Feb 2022 04:28:10 -0500 Received: by mail-wm1-x335.google.com with SMTP id p14-20020a05600c1d8e00b0037f881182a8so899809wms.2 for ; Mon, 21 Feb 2022 01:28:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=ohvqOffcepW7CtlFg3ZQ+s1HR00RGP932N5zAI3tYFM=; b=K64WrwKYAlEvYlJaxl9/Xft/Nwcwpd4Y4yk6dj/MrJaKpqHGI1FF6kTVdqGS3Un7DK ILkF3U/9V0MwXNzJBX6CiLaIx7J/W5LLvNNhG2pew+/+36kUPtNx+tfktnYL7ZhRjfNc G/l9dYchBpssbtR9AbA9KR28F5xAfoSxiWZ5XLUtgXgLQNnRfELjM5QrUblHffkLn36E cBzaa+9mGiOXy39iKa5t6OklqlPNPfpOOI4V82bESTxLn3D3ux1QobSi+M9lzaw64oyN E12HrTAsom8B1L9CiZgboGEGu1l6fhYk36eBEB5zrMSMzapHpZNtmskAP38R4pueyEOK ciIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ohvqOffcepW7CtlFg3ZQ+s1HR00RGP932N5zAI3tYFM=; b=ClDsx64GEqdoG36K20jDYVF5v382tNJBNlB5uuB1hyYhrAFdnkdho8PDfqhul+rb4K 3lKLv5aC8Bi4TJ7jFN0WIZRg8SiuVY5nZQbwMSfOxwLIjTs9cidF8nWtZag+EgfULSvX +MVMVXzTigA5qVsJYVaFuXL4dPOGNI1+00NELWmnAZNKnXTOn1dR1aSuidZdBCRtlt6p eSQH8RT67Sp2I1rgp0eqozx4SU/ZQ7jQ4wcpdEEbqYr1hmdCl3lerLF1l9Nd+QoM5DKP HtM/+CPacPkH+x3e8JPUicIJlfoewQOpLdOFCRtOw0PhJEm4s+gETP14HxLbmUf+2V6M Zs+g== X-Gm-Message-State: AOAM533zX+iasDcQcuTDMfhfsGESPD2bj30+zETRaLpvoiuqtjMRCJs2 axml+YD+/0du5Pa43e8kMkMBAg6uQlq2BA== X-Received: by 2002:a05:600c:1f15:b0:34f:e3cc:334b with SMTP id bd21-20020a05600c1f1500b0034fe3cc334bmr17301331wmb.0.1645435687668; Mon, 21 Feb 2022 01:28:07 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id q76sm7555778wme.1.2022.02.21.01.28.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 01:28:07 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 06/26] checkpatch: Ensure that TypeInfos are const Date: Mon, 21 Feb 2022 09:27:40 +0000 Message-Id: <20220221092800.404870-7-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220221092800.404870-1-peter.maydell@linaro.org> References: <20220221092800.404870-1-peter.maydell@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::335 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x335.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Bernhard Beschow Now that all static TypeInfo instances are declared const, prevent that new non-const instances are created. Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daudé Message-id: 20220117145805.173070-3-shentey@gmail.com Signed-off-by: Peter Maydell --- scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 5e501110601..ddd8148d87e 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2882,6 +2882,7 @@ sub process { SCSIBusInfo| SCSIReqOps| Spice[A-Z][a-zA-Z0-9]*Interface| + TypeInfo| USBDesc[A-Z][a-zA-Z0-9]*| VhostOps| VMStateDescription|