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 B8D37C61DF4 for ; Fri, 24 Nov 2023 08:16:11 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.640213.998123 (Exim 4.92) (envelope-from ) id 1r6RM0-00089L-9n; Fri, 24 Nov 2023 08:16:00 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 640213.998123; Fri, 24 Nov 2023 08:16:00 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1r6RM0-00089E-65; Fri, 24 Nov 2023 08:16:00 +0000 Received: by outflank-mailman (input) for mailman id 640213; Fri, 24 Nov 2023 08:15:58 +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 1r6RLy-000898-Q8 for xen-devel@lists.xenproject.org; Fri, 24 Nov 2023 08:15:58 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id b054c1a2-8aa1-11ee-9b0e-b553b5be7939; Fri, 24 Nov 2023 09:15:54 +0100 (CET) Received: from support.bugseng.com (support.bugseng.com [162.55.131.47]) by support.bugseng.com (Postfix) with ESMTPA id 97BD64EE073C; Fri, 24 Nov 2023 09:15:54 +0100 (CET) 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: b054c1a2-8aa1-11ee-9b0e-b553b5be7939 MIME-Version: 1.0 Date: Fri, 24 Nov 2023 09:15:54 +0100 From: Nicola Vetrini To: Jan Beulich Cc: sstabellini@kernel.org, michal.orzel@amd.com, xenia.ragiadakou@amd.com, ayan.kumar.halder@amd.com, consulting@bugseng.com, andrew.cooper3@citrix.com, roger.pau@citrix.com, xen-devel@lists.xenproject.org, Julien Grall , Bertrand Marquis , Volodymyr Babchuk Subject: Re: [XEN PATCH v5 1/3] arm/bitops: encapsulate violation of MISRA C:2012 Rule 10.1 In-Reply-To: <790c0480-7235-4a2a-929e-973e7aa27864@suse.com> References: <790c0480-7235-4a2a-929e-973e7aa27864@suse.com> Message-ID: <7c07e93ad4c050a421ec97f832d0a1e5@bugseng.com> X-Sender: nicola.vetrini@bugseng.com Organization: BUGSENG s.r.l. Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit On 2023-11-24 09:06, Jan Beulich wrote: > On 23.11.2023 08:37, Nicola Vetrini wrote: >> The definitions of ffs{l}? violate Rule 10.1, by using the well-known >> pattern (x & -x); its usage is wrapped by the ISOLATE_LSB macro. >> >> No functional change. >> >> Signed-off-by: Nicola Vetrini >> Reviewed-by: Stefano Stabellini > > This patch failed my pre-push build test; apparently xen/macros.h needs > including explicitly. > > Jan Yes, indeed. I must have dropped that change when experimenting with single evaluation and then never reinstated it. -- Nicola Vetrini, BSc Software Engineer, BUGSENG srl (https://bugseng.com)