Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 1 | # |
Jacky Bai | b6cecc8 | 2021-06-07 09:49:46 +0800 | [diff] [blame] | 2 | # Copyright (c) 2019-2021, Arm Limited. All rights reserved. |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | # |
| 8 | # This file lists the source files that are expected to be excluded from |
| 9 | # Coverity's analysis, and the reason why. |
| 10 | # |
| 11 | |
| 12 | # The expected format is an array of tuples (filename_pattern, description). |
| 13 | # - filename_pattern is a Python regular expression (as in the 're' module) |
| 14 | # describing the file(s) to exclude. |
| 15 | # - description aims at providing the reason why the files are expected |
| 16 | # to be excluded. |
| 17 | exclude_paths = [ |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 18 | ("drivers/arm/tzc/tzc_common_private.c", "File included, actually indirectly analyzed"), |
Madhukar Pappireddy | 97ad258 | 2021-11-15 10:29:23 -0600 | [diff] [blame] | 19 | ("drivers/arm/tzc/tzc_dmc500.c", "Only used by deprecated SGM platforms"), |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 20 | ("drivers/marvell/comphy/phy-comphy-3700.c", "File is actually analyzed. False positive"), |
| 21 | ("drivers/marvell/comphy/phy-comphy-cp110.c", "File is actually analyzed. False positive"), |
| 22 | ("drivers/marvell/gwin.c", "Not used by any upstream marvell platform"), |
| 23 | ("drivers/marvell/mochi/ap807_setup.c", "Not used by any upstream marvell platform"), |
Madhukar Pappireddy | 97ad258 | 2021-11-15 10:29:23 -0600 | [diff] [blame] | 24 | ("drivers/renesas/common/ddr/ddr_b/boot_init_dram_config.c", |
Zelalem | f429967 | 2021-01-29 12:52:59 -0600 | [diff] [blame] | 25 | "It is used as a header file and is included in boot_init_dram.c .Since it is not explicitly compiled, such file cannot be converted into an instrumented binary for further analysis"), |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 26 | ("drivers/auth/cryptocell/713/.*", "There is no dummy library to support 713 for now. This can be removed once we have this library in place"), |
Madhukar Pappireddy | 4fce99e | 2021-09-15 14:33:35 -0500 | [diff] [blame] | 27 | ("drivers/scmi-msg/power_domain.c", "Not used by any upstream platform"), |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 28 | |
Alexei Fedorov | 20fdf50 | 2020-07-27 17:36:38 +0100 | [diff] [blame] | 29 | ("plat/arm/board/fvp/fconf/fconf_nt_config_getter.c", "Not currently used. Future functionality"), |
Madhukar Pappireddy | 97ad258 | 2021-11-15 10:29:23 -0600 | [diff] [blame] | 30 | ("plat/arm/board/sgm775/sgm775_err.c", "sgm775 deprecated"), |
| 31 | ("plat/arm/board/sgm775/sgm775_trusted_boot.c", "sgm775 deprecated"), |
| 32 | ("plat/arm/common/arm_tzc_dmc500.c", "Only used by deprecated SGM platforms"), |
| 33 | ("plat/arm/css/sgm/sgm_bl1_setup.c", "Only used by deprecated SGM platforms"), |
| 34 | ("plat/arm/css/sgm/sgm_bl31_setup.c", "Only used by deprecated SGM platforms"), |
| 35 | ("plat/arm/css/sgm/sgm_interconnect.c", "Only used by deprecated SGM platforms"), |
| 36 | ("plat/arm/css/sgm/sgm_mmap_config.c", "Only used by deprecated SGM platforms"), |
| 37 | ("plat/arm/css/sgm/sgm_plat_config.c", "Only used by deprecated SGM platforms"), |
| 38 | ("plat/arm/css/sgm/sgm_security.c", "Only used by deprecated SGM platforms"), |
| 39 | ("plat/arm/css/sgm/sgm_topology.c", "Only used by deprecated SGM platforms"), |
| 40 | ("plat/arm/css/sgm/tsp/sgm_tsp_setup.c", "Only used by deprecated SGM platforms"), |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 41 | ("plat/marvell/armada/a8k/common/plat_bl1_setup.c", "Not used by any upstream marvell platform"), |
| 42 | ("plat/mediatek/common/custom/oem_svc.c", "Used only by mt6795 which is unsupported platform"), |
| 43 | ("plat/mediatek/mt6795/.*", "This platform fails to build and is not supported by mediatek"), |
| 44 | ("plat/mediatek/mt8173/plat_mt_gic.c", "Deprecated code"), |
| 45 | ("plat/nvidia/tegra/common/tegra_gicv3.c", "Not used by any upstream nvidia platform"), |
| 46 | ("plat/qemu/common/sp_min/sp_min_setup.c", "Not used in any upstream platform - see GENFW-2164"), |
| 47 | ("plat/rockchip/rk3399/drivers/m0/.*", "Work around the lack of support for the M0 compiler in the scripts"), |
Varun Wadekar | 1f8cd6e | 2021-09-03 09:15:54 -0700 | [diff] [blame] | 48 | ("drivers/arm/gic/v3/gic600ae_fmu.c", "Not used by any upstream platform"), |
| 49 | ("drivers/arm/gic/v3/gic600ae_fmu_helpers.c", "Not used by any upstream platform"), |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 50 | |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 51 | # The following block is excluding files that are impossible to include in a build due to a missing file |
| 52 | # this should be removed as soon as it would be possible to build stingray platform with SCP_BL2 option |
| 53 | ("drivers/brcm/iproc_gpio.c", "Cannot be built due to the missing m0_ipc.h file"), |
| 54 | ("drivers/brcm/scp.c", "Cannot be built due to the missing m0_ipc.h file"), |
| 55 | ("drivers/brcm/spi/iproc_qspi.c", "Cannot be built due to the missing m0_ipc.h file"), |
| 56 | ("drivers/brcm/spi/iproc_spi.c", "Cannot be built due to the missing m0_ipc.h file"), |
| 57 | ("drivers/brcm/spi_flash.c", "Cannot be built due to the missing m0_ipc.h file"), |
| 58 | ("drivers/brcm/spi_sf.c", "Cannot be built due to the missing m0_ipc.h file"), |
| 59 | ("plat/brcm/board/common/bcm_elog_ddr.c", "Cannot be built due to the missing m0_ipc.h file"), |
| 60 | ("plat/brcm/board/stingray/src/brcm_pm_ops.c", "Cannot be built due to the missing m0_ipc.h file"), |
| 61 | ("plat/brcm/board/stingray/src/ncsi.c", "Cannot be built due to the missing m0_ipc.h file"), |
| 62 | ("plat/brcm/board/stingray/src/scp_cmd.c", "Cannot be built due to the missing m0_ipc.h file"), |
| 63 | ("plat/brcm/board/stingray/src/scp_utils.c", "Cannot be built due to the missing m0_ipc.h file"), |
| 64 | ("plat/brcm/common/brcm_mhu.c", "Cannot be built due to the missing m0_ipc.h file"), |
| 65 | ("plat/brcm/common/brcm_scpi.c", "Cannot be built due to the missing m0_ipc.h file"), |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 66 | |
Madhukar Pappireddy | caf6f4f | 2021-04-30 11:00:05 -0500 | [diff] [blame] | 67 | # The following block is excluding files specific to NXP platforms that |
| 68 | # cannot be compiled with any build flags at this moment due to external |
| 69 | # dependencies |
Madhukar Pappireddy | caf6f4f | 2021-04-30 11:00:05 -0500 | [diff] [blame] | 70 | ("drivers/nxp/console/console_16550.c", "Cannot be built due to external dependencies"), |
Madhukar Pappireddy | caf6f4f | 2021-04-30 11:00:05 -0500 | [diff] [blame] | 71 | ("drivers/nxp/csu/csu.c", "Cannot be built due to external dependencies"), |
| 72 | ("drivers/nxp/ddr/fsl-mmdc/fsl_mmdc.c", "Cannot be built due to external dependencies"), |
| 73 | ("drivers/nxp/ddr/phy-gen1/phy.c", "Cannot be built due to external dependencies"), |
| 74 | ("drivers/nxp/gic/ls_gicv2.c", "Cannot be built due to external dependencies"), |
| 75 | ("drivers/nxp/gpio/nxp_gpio.c", "Cannot be built due to external dependencies"), |
| 76 | ("drivers/nxp/interconnect/ls_cci.c", "Cannot be built due to external dependencies"), |
| 77 | ("drivers/nxp/qspi/qspi.c", "Cannot be built due to external dependencies"), |
Madhukar Pappireddy | caf6f4f | 2021-04-30 11:00:05 -0500 | [diff] [blame] | 78 | ("drivers/nxp/sfp/fuse_prov.c", "Cannot be built due to external dependencies"), |
| 79 | ("drivers/nxp/sfp/sfp.c", "Cannot be built due to external dependencies"), |
| 80 | ("plat/nxp/common/fip_handler/fuse_fip/fuse_io_storage.c", "Cannot be built due to external dependencies"), |
Madhukar Pappireddy | caf6f4f | 2021-04-30 11:00:05 -0500 | [diff] [blame] | 81 | |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 82 | ("lib/compiler-rt/.*", "3rd party libraries will not be fixed"), |
| 83 | ("lib/libfdt/.*", "3rd party libraries will not be fixed"), |
Madhukar Pappireddy | 28cb981 | 2020-09-14 09:52:56 -0500 | [diff] [blame] | 84 | ("lib/libc/strlcat.c", "Not used by any upstream platform"), |
Madhukar Pappireddy | b365fc9 | 2020-09-18 15:56:10 -0500 | [diff] [blame] | 85 | ("lib/libc/strtok.c", "Not used by any upstream platform"), |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 86 | |
| 87 | ("tools/.*", "Host tools"), |
Madhukar Pappireddy | dcb31f6 | 2021-05-06 11:36:36 -0500 | [diff] [blame] | 88 | |
Zelalem | 4f3633e | 2021-06-18 11:53:47 -0500 | [diff] [blame] | 89 | # Temporarily exclude the following files such that tf-coverity job can be |
Madhukar Pappireddy | dcb31f6 | 2021-05-06 11:36:36 -0500 | [diff] [blame] | 90 | # reinstated. Appropriate build commands to compile these files should be |
Madhukar Pappireddy | 97ad258 | 2021-11-15 10:29:23 -0600 | [diff] [blame] | 91 | # added to tf-cov-make script after v2.6 release |
Madhukar Pappireddy | dcb31f6 | 2021-05-06 11:36:36 -0500 | [diff] [blame] | 92 | ("drivers/renesas/rzg/pfc/G2E/pfc_init_g2e.c", "Temporarily excluded"), |
| 93 | ("drivers/renesas/rzg/pfc/G2H/pfc_init_g2h.c", "Temporarily excluded"), |
| 94 | ("drivers/renesas/rzg/pfc/G2N/pfc_init_g2n.c", "Temporarily excluded"), |
| 95 | ("drivers/renesas/rzg/qos/G2E/qos_init_g2e_v10.c", "Temporarily excluded"), |
| 96 | ("drivers/renesas/rzg/qos/G2H/qos_init_g2h_v30.c", "Temporarily excluded"), |
| 97 | ("drivers/renesas/rzg/qos/G2N/qos_init_g2n_v10.c", "Temporarily excluded"), |
Madhukar Pappireddy | dcb31f6 | 2021-05-06 11:36:36 -0500 | [diff] [blame] | 98 | |
Jacky Bai | b6cecc8 | 2021-06-07 09:49:46 +0800 | [diff] [blame] | 99 | # Exclude the following files of imx8mq as this platform is dropped |
| 100 | # from the CI. Put the files of this platform into a silent status. |
| 101 | ("plat/imx/imx8m/imx8mq/gpc.c", "Not currently used"), |
| 102 | ("plat/imx/imx8m/imx8mq/imx8mq_bl31_setup.c", "Not currently used"), |
| 103 | ("plat/imx/imx8m/imx8mq/imx8mq_psci.c", "Not currently used"), |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 104 | ] |