Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 43BE7D41C2B for ; Wed, 13 Nov 2024 09:56:26 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.835223.1251067 (Exim 4.92) (envelope-from ) id 1tBA6b-0007Eo-36; Wed, 13 Nov 2024 09:56:09 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 835223.1251067; Wed, 13 Nov 2024 09:56:09 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tBA6b-0007Eh-0Y; Wed, 13 Nov 2024 09:56:09 +0000 Received: by outflank-mailman (input) for mailman id 835223; Wed, 13 Nov 2024 09:56:07 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tBA6Z-0007Ea-PN for xen-devel@lists.xenproject.org; Wed, 13 Nov 2024 09:56:07 +0000 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [2a00:1450:4864:20::235]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 7e840a4a-a1a5-11ef-99a3-01e77a169b0f; Wed, 13 Nov 2024 10:56:03 +0100 (CET) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2fb599aac99so64189421fa.1 for ; Wed, 13 Nov 2024 01:56:03 -0800 (PST) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432d54e2e0esm19177055e9.2.2024.11.13.01.56.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Nov 2024 01:56:02 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 7e840a4a-a1a5-11ef-99a3-01e77a169b0f X-Custom-Connection: eyJyZW1vdGVpcCI6IjJhMDA6MTQ1MDo0ODY0OjIwOjoyMzUiLCJoZWxvIjoibWFpbC1sajEteDIzNS5nb29nbGUuY29tIn0= X-Custom-Transaction: eyJpZCI6IjdlODQwYTRhLWExYTUtMTFlZi05OWEzLTAxZTc3YTE2OWIwZiIsInRzIjoxNzMxNDkxNzYzLjczMDQ4NSwic2VuZGVyIjoiamJldWxpY2hAc3VzZS5jb20iLCJyZWNpcGllbnQiOiJ4ZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcifQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1731491763; x=1732096563; darn=lists.xenproject.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=EX0c2+xqC1iW6QJJH7fEnNgF0lQVxbc+7EOohWX/qto=; b=TVEDm/KCa49RvreHS6NBOu1cU8EOayBOANiixprO9sy6Ky0SMJIbK/AHfDKMESs7Gk OY6+sDf86nskgapWvNjhbea31RXeHXXSMkX8OxaElr/qbJKOes6hrfSj8qYvICPySQe+ FM9q02BFJtPkOzr7Skt2/dI25sJfqAUI++GW5B6WgPjyw3/8Grh8U6EllW66pDKPgrNq K+DqBIVXOt6ue94WwFAfYdSP6E2EPjcZnKz02R94OgSheGXTanrxmB4oJ7vI14fG9DIX 5A/tZ764nQkL63r1uLi46yEewF9DAqwgpTHeEUvnHYH8EWEvPv6BJoZ016Z/JOF4Y5qR GFpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731491763; x=1732096563; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=EX0c2+xqC1iW6QJJH7fEnNgF0lQVxbc+7EOohWX/qto=; b=M4E4RFlO08qZSlGsvLNHl20eyd/dZKX55ZDZblqyLl5ZMllSonZqIfYKcEaWzDoW9n o1OCNn78MRflc7x0W/9WCbo/spBn0KRvswjiDlG2axtyMSTzdq8R0qsyuEKLkBw8NXGJ Yz+LLKy/sMq2B/8y86nfMA3Pm6IYy6/b/dijXJKsX8uJ0ZNQpVRImsyVdvk8qMC/4eK/ KRDZ1s3QiCIoS45Akt2C1i0uKAJx3i9Gor3eMdG+82kAJk9rqRKFFsmClqaNaKWEnJhY y1UZLM2yqBazpnaxREzlUTebLciUxTAqxV6wfhTiRdfxLPpoD+HUgPNdnl+bmZVhrJco 1NzA== X-Forwarded-Encrypted: i=1; AJvYcCUjMm1nVhyxg/Szg7RLBcaDdkGK4CZtQ28rJdnYQ8Cj0sviUGR6XjEQmJFlHWL56/dv0k6V9GFyCUA=@lists.xenproject.org X-Gm-Message-State: AOJu0YxSAdFjdEP4+xpXbSuswftvrcboGS1KsyRLA7mOs1Af17XWRFjk mQDDJjlXsoJ1exnkpT10Wm4+4HHxa975L1esgEqI+1BkstvnQZC1dSZuRjgXWg== X-Google-Smtp-Source: AGHT+IHy0Wncpu7VDlCotQpcnXPBiVGAD7idllyWaWV/03pSPrT29i9YYDjBCnNVQKtZCnRD37gWDQ== X-Received: by 2002:a2e:be10:0:b0:2fb:5da7:47a7 with SMTP id 38308e7fff4ca-2ff20222f4cmr106004901fa.25.1731491763106; Wed, 13 Nov 2024 01:56:03 -0800 (PST) Message-ID: <1076fcfa-3004-4cc1-94ef-a84b0da4bfef@suse.com> Date: Wed, 13 Nov 2024 10:56:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [XEN PATCH v2 2/3] x86/emul: use pseudo keyword fallthrough To: Federico Serafini Cc: consulting@bugseng.com, Andrew Cooper , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Stefano Stabellini , xen-devel@lists.xenproject.org References: Content-Language: en-US From: Jan Beulich Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 13.11.2024 09:17, Federico Serafini wrote: > Make explicit the fallthrough intention by adding the pseudo keyword > where missing and replace fallthrough comments not following the > agreed syntax. > > This satisfies the requirements to deviate violations of > MISRA C:2012 Rule 16.3 "An unconditional break statement shall > terminate every switch-clause". > > No functional change. > > Signed-off-by: Federico Serafini Repeating my v1 comment: "We can certainly take this as is, as a tiny first step. Personally I'm not overly happy though to see a mix of comment- and pseudo-keyword- style annotations in individual files. After all going forward we'll want to use the latter, now that this becomes possible. Yet for that I view it a more than just helpful if bad precedents didn't exist anymore. Being the one to touch the emulator files most, I can say that here more than perhaps anywhere else new code is very often added by copy-and-paste-then-edit. Therefore question in particular to the other x86 maintainers: Won't we be better off if we fully convert to pseudo-keyword-style right away?" I'm afraid I don't like this "don't care" behavior, yet once again in the interest of making progress: Acked-by: Jan Beulich Jan