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

Re: [RFC PATCH 1/5] [WIP]misra: add entries to the excluded list


  • To: Luca Fancellu <luca.fancellu@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 31 Jul 2023 16:58:32 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=j+xJOf9KS9yuvl/kYOs2gcwuyOTVvFRgFKOHAyhEVxk=; b=G9/bqO1Elt4PIyMc2RjSFsyqEh4JN0Ec08Uu2juDxPnJuOPKl++igtdvkZlqaegIB2KcTnCaspCdhjwNfhvpGl7oYegK/DaQvCGoC3KOhrlt04QkJvnbeXZ+rcQTccXEUHTtFBWRTd1RKPcAobGAUfQg8DL+i7z7aghGw+1XPuO2Xx7P8zQqQ5qX1sLNJ3XniiMDLVnB91vXLwR6agYzEfw9Ie6kkWtz8vN5W/giWFK8d21LdLgC6EpNEwUBl4ZLZSKezxKmLwIbMt/r3142CYgcqNe3+XYFqMMYcyBSFu7SK5VJBo6XvkpjfF0oU+jwr+IDNC2B3PupSixo51cgLA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l4vl2/nMmZrGRHkhrAnJkYa/ZDlJrDRvMMmMBj4mLbQUi4w76PMIPu8Ul0lEVrehDC982Pp32wQENaYWiIHObLziEQ/HsiePKNat0Hg13rTahRnjkvHuM5VLnNI9Q8p5xW1TSIy0UvGNK359dWqme2cfJ+WkgfDCBd4SouXTvXquRMDvwS3qBcbv51KSB1fhmKZUunDs20ZHlFPqNFWt5oAZ2nFEx4FXbBwed4VB/VP74/dfLL9mhYbYSyGKyWpMsbNszUVOtKFcML1e12MnUqI7E89T7adKPI1QzwzwtRHSgizbOMsl4FKmMQtf/uT++8OmNPMGr4eT2aNE6Zmy9g==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: bertrand.marquis@xxxxxxx, wei.chen@xxxxxxx, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 31 Jul 2023 14:58:53 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 28.07.2023 10:11, Luca Fancellu wrote:
> Add entries to the exclusion list, so that they can be excluded
> from the formatter tool.
> 
> TBD: add a field on each entry to understand for what tool is the
> exclusion
> 
> Signed-off-by: Luca Fancellu <luca.fancellu@xxxxxxx>
> ---
>  docs/misra/exclude-list.json | 88 ++++++++++++++++++++++++++++++++++++
>  1 file changed, 88 insertions(+)
> 
> diff --git a/docs/misra/exclude-list.json b/docs/misra/exclude-list.json
> index ca1e2dd678ff..c103c69209c9 100644
> --- a/docs/misra/exclude-list.json
> +++ b/docs/misra/exclude-list.json
> @@ -1,6 +1,10 @@
>  {
>      "version": "1.0",
>      "content": [
> +        {
> +            "rel_path": "arch/arm/arm32/lib/assembler.h",
> +            "comment": "Includes mostly assembly macro and it's meant to be 
> included only in assembly code"
> +        },
>          {
>              "rel_path": "arch/arm/arm64/cpufeature.c",
>              "comment": "Imported from Linux, ignore for now"
> @@ -13,6 +17,26 @@
>              "rel_path": "arch/arm/arm64/lib/find_next_bit.c",
>              "comment": "Imported from Linux, ignore for now"
>          },
> +        {
> +            "rel_path": "arch/arm/include/asm/arm32/macros.h",
> +            "comment": "Includes only assembly macro"
> +        },
> +        {
> +            "rel_path": "arch/arm/include/asm/arm64/macros.h",
> +            "comment": "Includes only assembly macro"
> +        },
> +        {
> +            "rel_path": "arch/arm/include/asm/alternative.h",
> +            "comment": "Imported from Linux, ignore for now"
> +        },
> +        {
> +            "rel_path": "arch/arm/include/asm/asm_defns.h",
> +            "comment": "Includes mostly assembly macro"
> +        },
> +        {
> +            "rel_path": "arch/arm/include/asm/macros.h",
> +            "comment": "Includes mostly assembly macro and it's meant to be 
> included only in assembly code"
> +        },
>          {
>              "rel_path": "arch/x86/acpi/boot.c",
>              "comment": "Imported from Linux, ignore for now"
> @@ -69,6 +93,30 @@
>              "rel_path": "arch/x86/cpu/mwait-idle.c",
>              "comment": "Imported from Linux, ignore for now"
>          },
> +        {
> +            "rel_path": "arch/x86/include/asm/alternative-asm.h",
> +            "comment": "Includes mostly assembly macro and it's meant to be 
> included only in assembly code"
> +        },
> +        {
> +            "rel_path": "arch/x86/include/asm/asm_defns.h",
> +            "comment": "Includes mostly assembly macro"
> +        },
> +        {
> +            "rel_path": "arch/x86/include/asm/asm-defns.h",
> +            "comment": "Includes mostly assembly macro"
> +        },
> +        {
> +            "rel_path": "arch/x86/include/asm/bug.h",
> +            "comment": "Includes mostly assembly macro"
> +        },

Mind me asking why assembly macros wouldn't want maintaining in proper
style?

> +        {
> +            "rel_path": "arch/x86/include/asm/mpspec.h",
> +            "comment": "Imported from Linux, also case ranges are not 
> handled by clang-format, ignore for now"
> +        },
> +        {
> +            "rel_path": "arch/x86/include/asm/spec_ctrl_asm.h",
> +            "comment": "Includes mostly assembly macro"
> +        },
>          {
>              "rel_path": "arch/x86/delay.c",
>              "comment": "Imported from Linux, ignore for now"
> @@ -181,6 +229,42 @@
>              "rel_path": "drivers/video/font_*",
>              "comment": "Imported from Linux, ignore for now"
>          },
> +        {
> +            "rel_path": "include/efi/*.h",
> +            "comment": "Imported from gnu-efi-3.0k"
> +        },
> +        {
> +            "rel_path": "include/public/arch-x86/cpufeatureset.h",
> +            "comment": "This file contains some inputs for the gen-cpuid.py 
> script, leave it out"
> +        },
> +        {
> +            "rel_path": "include/public/**/**/*.h",
> +            "comment": "Public headers are quite sensitive to format tools"
> +        },
> +        {
> +            "rel_path": "include/public/**/*.h",
> +            "comment": "Public headers are quite sensitive to format tools"
> +        },

The common meaning of ** that I know is "any level directories", but
since you use **/**/ above that can't be it here. Could you clarify
what the difference of */ and **/ is here (or maybe in JSON in general)?

Jan



 


Rackspace

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