[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 09/11] xen/arm: smmuv3: Use fallthrough pseudo-keyword


  • To: Rahul Singh <Rahul.Singh@xxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Tue, 12 Jan 2021 11:34:34 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=09yoIiCafngHV0e6TWgGL7Y9etQeUAAXk5jv8vR594Y=; b=Wj29qlmt2cflICWGc9h6JZLbo7IeHnEEHq8x+FIzNcahwbkv10/tjyjajzd40k9HX/wbRIqgqKeW44mUd/O1Ah69pJCQZ2+HE86DXDYCiGcN2bBwSbe5jyrP4DbE6mPuP8ItQwJamD5cfEix/6u/d/yRfwP5nE2xkhE2T9hRYtaKvizIPEcJRkjS9LYiVfpHF7hNJOq3KpBriQBwxAKwv25UX+cOtriiYohND/2vajUxsQ0bgeQqlBxkbA9uhd330gl3dt2C7mtLrt4Mcr9Pz1S68QBe8w9VqUU+2m5N9xmN2ZRtT9Hu8HvSwTlOXQJpMTXXJH78v0JiJcqqaZft1w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TpZLCHZQGhHG+8NQvC8chY+PobDNMI3jZ8GZGtaOYAe0Q7CQbC8pQn5IKH75mniQ4Nuez4QMr/qSOzOlqiaMhed1ZRpO36C9CA6fWgNIxY+r9SVrKgcDtkvVlXLQqpuyRTt6my3XT45N6+hy9h73xd5ayY8/4qGAKRXpi5TzOSxdqSCgQSR8VtXenIvWCw3DqFDZdHpB7Ii/PW/SPM28rYZXpiFLm5csS3jpN0z/aaAvnyyWLcU10lzkhG2u/hEF/v7k4q1FkJFkBE5/f4+IWn0jqPOHbx7gxOl8wTn1qvN4Lih0h+thyuSiAiOKO8L9Rulpb+dmBgXAYC4Z3NhplQ==
  • Authentication-results-original: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Tue, 12 Jan 2021 11:35:05 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHW5c3ldi9HWeAY7EGjH9sy/0AERaoj4i4A
  • Thread-topic: [PATCH v4 09/11] xen/arm: smmuv3: Use fallthrough pseudo-keyword


> On 8 Jan 2021, at 14:46, Rahul Singh <Rahul.Singh@xxxxxxx> wrote:
> 
> Merge the patch from linux to use fallthrough pseudo-keyword.
> 
> Replace the existing /* fall through */ comments and its variants with
> the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary
> fall-through markings when it is the case.
> 
> Signed-off-by: Rahul Singh <rahul.singh@xxxxxxx>
Reviewed-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>

Maybe the fallthrough could be removed by the commiter ?

Cheers
Bertrand

> ---
> Changes in V4:
> - This patch is introduce in this verison.
> ---
> xen/drivers/passthrough/arm/smmu-v3.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/xen/drivers/passthrough/arm/smmu-v3.c 
> b/xen/drivers/passthrough/arm/smmu-v3.c
> index 5ce14850b4..f5f8b4c981 100644
> --- a/xen/drivers/passthrough/arm/smmu-v3.c
> +++ b/xen/drivers/passthrough/arm/smmu-v3.c
> @@ -932,7 +932,6 @@ static void arm_smmu_cmdq_skip_err(struct arm_smmu_device 
> *smmu)
>                */
>               return;
>       case CMDQ_ERR_CERROR_ILL_IDX:
> -             /* Fallthrough */
>       default:
>               break;
>       }
> @@ -2488,7 +2487,7 @@ static int arm_smmu_device_hw_probe(struct 
> arm_smmu_device *smmu)
>       switch (FIELD_GET(IDR0_STALL_MODEL, reg)) {
>       case IDR0_STALL_MODEL_FORCE:
>               smmu->features |= ARM_SMMU_FEAT_STALL_FORCE;
> -             /* Fallthrough */
> +             fallthrough;
>       case IDR0_STALL_MODEL_STALL:
>               smmu->features |= ARM_SMMU_FEAT_STALLS;
>       }
> @@ -2505,7 +2504,7 @@ static int arm_smmu_device_hw_probe(struct 
> arm_smmu_device *smmu)
>       switch (FIELD_GET(IDR0_TTF, reg)) {
>       case IDR0_TTF_AARCH32_64:
>               smmu->ias = 40;
> -             /* Fallthrough */
> +             fallthrough;
>       case IDR0_TTF_AARCH64:
>               break;
>       default:
> @@ -2589,7 +2588,7 @@ static int arm_smmu_device_hw_probe(struct 
> arm_smmu_device *smmu)
>       default:
>               dev_info(smmu->dev,
>                       "unknown output address size. Truncating to 48-bit\n");
> -             /* Fallthrough */
> +             fallthrough;
>       case IDR5_OAS_48_BIT:
>               smmu->oas = 48;
>       }
> -- 
> 2.17.1
> 




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.