blob: 466d45a90731b6cf3fc4f9194da57fa05e78f4ed [file] [log] [blame]
Fathi Boudra422bf772019-12-02 11:10:16 +02001#
Rohit Mathew2a8ee772024-02-14 22:48:10 +00002# Copyright (c) 2019-2024, Arm Limited and Contributors. All rights reserved.
Fathi Boudra422bf772019-12-02 11:10:16 +02003#
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.
17exclude_paths = [
Zelalemc9531f82020-08-04 15:37:08 -050018 ("drivers/arm/tzc/tzc_common_private.c", "File included, actually indirectly analyzed"),
Madhukar Pappireddy97ad2582021-11-15 10:29:23 -060019 ("drivers/arm/tzc/tzc_dmc500.c", "Only used by deprecated SGM platforms"),
Olivier Deprez6b8ca4b2025-04-08 10:39:55 +020020 ("drivers/arm/tzc/tzc_dmc620.c", "Only used by deprecated SGI platforms"),
21 ("drivers/arm/mhu/mhu_v2_x.c", "Not used in recent platforms, migrated to MHUv3"),
22 ("drivers/arm/mhu/mhu_wrapper_v2_x.c", "Not used in recent platforms, migrated to MHUv3"),
Zelalemc9531f82020-08-04 15:37:08 -050023 ("drivers/marvell/comphy/phy-comphy-3700.c", "File is actually analyzed. False positive"),
24 ("drivers/marvell/comphy/phy-comphy-cp110.c", "File is actually analyzed. False positive"),
25 ("drivers/marvell/gwin.c", "Not used by any upstream marvell platform"),
26 ("drivers/marvell/mochi/ap807_setup.c", "Not used by any upstream marvell platform"),
Madhukar Pappireddy97ad2582021-11-15 10:29:23 -060027 ("drivers/renesas/common/ddr/ddr_b/boot_init_dram_config.c",
Zelalemf4299672021-01-29 12:52:59 -060028 "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"),
Madhukar Pappireddy4fce99e2021-09-15 14:33:35 -050029 ("drivers/scmi-msg/power_domain.c", "Not used by any upstream platform"),
Fathi Boudra422bf772019-12-02 11:10:16 +020030
Alexei Fedorov20fdf502020-07-27 17:36:38 +010031 ("plat/arm/board/fvp/fconf/fconf_nt_config_getter.c", "Not currently used. Future functionality"),
Rohit Mathew0bcb8902025-05-01 11:07:42 +010032
33 # Exclude Neoverse RD ras files.
34 ("plat/arm/board/neoverse_rd/common/ras/nrd_ras_common.c", "Not currently used. Plans to enable for the near future"),
35 ("plat/arm/board/neoverse_rd/common/ras/nrd_ras_cpu.c", "Not currently used. Plans to enable for the near future"),
36 ("plat/arm/board/neoverse_rd/common/ras/nrd_ras_sram.c", "Not currently used. Plans to enable for the near future"),
37 ("plat/arm/board/neoverse_rd/platform/rdn2/rdn2_ras.c", "Not currently used. Plans to enable for the near future"),
38
Madhukar Pappireddy97ad2582021-11-15 10:29:23 -060039 ("plat/arm/common/arm_tzc_dmc500.c", "Only used by deprecated SGM platforms"),
Zelalemc9531f82020-08-04 15:37:08 -050040 ("plat/marvell/armada/a8k/common/plat_bl1_setup.c", "Not used by any upstream marvell platform"),
Zelalemc9531f82020-08-04 15:37:08 -050041 ("plat/mediatek/mt8173/plat_mt_gic.c", "Deprecated code"),
Madhukar Pappireddyc3ec06b2022-05-18 11:15:16 -050042 ("plat/mediatek/common/custom/oem_svc.c", "Not used by any upstream mediatek platform"),
Zelalemc9531f82020-08-04 15:37:08 -050043 ("plat/nvidia/tegra/common/tegra_gicv3.c", "Not used by any upstream nvidia platform"),
44 ("plat/qemu/common/sp_min/sp_min_setup.c", "Not used in any upstream platform - see GENFW-2164"),
45 ("plat/rockchip/rk3399/drivers/m0/.*", "Work around the lack of support for the M0 compiler in the scripts"),
Varun Wadekar1f8cd6e2021-09-03 09:15:54 -070046 ("drivers/arm/gic/v3/gic600ae_fmu.c", "Not used by any upstream platform"),
47 ("drivers/arm/gic/v3/gic600ae_fmu_helpers.c", "Not used by any upstream platform"),
Fathi Boudra422bf772019-12-02 11:10:16 +020048
Zelalemc9531f82020-08-04 15:37:08 -050049 # The following block is excluding files that are impossible to include in a build due to a missing file
50 # this should be removed as soon as it would be possible to build stingray platform with SCP_BL2 option
51 ("drivers/brcm/iproc_gpio.c", "Cannot be built due to the missing m0_ipc.h file"),
52 ("drivers/brcm/scp.c", "Cannot be built due to the missing m0_ipc.h file"),
53 ("drivers/brcm/spi/iproc_qspi.c", "Cannot be built due to the missing m0_ipc.h file"),
54 ("drivers/brcm/spi/iproc_spi.c", "Cannot be built due to the missing m0_ipc.h file"),
55 ("drivers/brcm/spi_flash.c", "Cannot be built due to the missing m0_ipc.h file"),
56 ("drivers/brcm/spi_sf.c", "Cannot be built due to the missing m0_ipc.h file"),
57 ("plat/brcm/board/common/bcm_elog_ddr.c", "Cannot be built due to the missing m0_ipc.h file"),
58 ("plat/brcm/board/stingray/src/brcm_pm_ops.c", "Cannot be built due to the missing m0_ipc.h file"),
59 ("plat/brcm/board/stingray/src/ncsi.c", "Cannot be built due to the missing m0_ipc.h file"),
60 ("plat/brcm/board/stingray/src/scp_cmd.c", "Cannot be built due to the missing m0_ipc.h file"),
61 ("plat/brcm/board/stingray/src/scp_utils.c", "Cannot be built due to the missing m0_ipc.h file"),
62 ("plat/brcm/common/brcm_mhu.c", "Cannot be built due to the missing m0_ipc.h file"),
63 ("plat/brcm/common/brcm_scpi.c", "Cannot be built due to the missing m0_ipc.h file"),
Fathi Boudra422bf772019-12-02 11:10:16 +020064
Madhukar Pappireddycaf6f4f2021-04-30 11:00:05 -050065 # The following block is excluding files specific to NXP platforms that
66 # cannot be compiled with any build flags at this moment due to external
67 # dependencies
Madhukar Pappireddycaf6f4f2021-04-30 11:00:05 -050068 ("drivers/nxp/console/console_16550.c", "Cannot be built due to external dependencies"),
Madhukar Pappireddycaf6f4f2021-04-30 11:00:05 -050069 ("drivers/nxp/csu/csu.c", "Cannot be built due to external dependencies"),
70 ("drivers/nxp/ddr/fsl-mmdc/fsl_mmdc.c", "Cannot be built due to external dependencies"),
71 ("drivers/nxp/ddr/phy-gen1/phy.c", "Cannot be built due to external dependencies"),
72 ("drivers/nxp/gic/ls_gicv2.c", "Cannot be built due to external dependencies"),
73 ("drivers/nxp/gpio/nxp_gpio.c", "Cannot be built due to external dependencies"),
74 ("drivers/nxp/interconnect/ls_cci.c", "Cannot be built due to external dependencies"),
75 ("drivers/nxp/qspi/qspi.c", "Cannot be built due to external dependencies"),
Madhukar Pappireddycaf6f4f2021-04-30 11:00:05 -050076 ("drivers/nxp/sfp/fuse_prov.c", "Cannot be built due to external dependencies"),
77 ("drivers/nxp/sfp/sfp.c", "Cannot be built due to external dependencies"),
78 ("plat/nxp/common/fip_handler/fuse_fip/fuse_io_storage.c", "Cannot be built due to external dependencies"),
Madhukar Pappireddycaf6f4f2021-04-30 11:00:05 -050079
Zelalemc9531f82020-08-04 15:37:08 -050080 ("lib/compiler-rt/.*", "3rd party libraries will not be fixed"),
81 ("lib/libfdt/.*", "3rd party libraries will not be fixed"),
Madhukar Pappireddy28cb9812020-09-14 09:52:56 -050082 ("lib/libc/strlcat.c", "Not used by any upstream platform"),
Madhukar Pappireddyb365fc92020-09-18 15:56:10 -050083 ("lib/libc/strtok.c", "Not used by any upstream platform"),
Fathi Boudra422bf772019-12-02 11:10:16 +020084
85 ("tools/.*", "Host tools"),
Madhukar Pappireddydcb31f62021-05-06 11:36:36 -050086
Zelalem4f3633e2021-06-18 11:53:47 -050087 # Temporarily exclude the following files such that tf-coverity job can be
Madhukar Pappireddydcb31f62021-05-06 11:36:36 -050088 # reinstated. Appropriate build commands to compile these files should be
Madhukar Pappireddy97ad2582021-11-15 10:29:23 -060089 # added to tf-cov-make script after v2.6 release
Madhukar Pappireddydcb31f62021-05-06 11:36:36 -050090 ("drivers/renesas/rzg/pfc/G2E/pfc_init_g2e.c", "Temporarily excluded"),
91 ("drivers/renesas/rzg/pfc/G2H/pfc_init_g2h.c", "Temporarily excluded"),
92 ("drivers/renesas/rzg/pfc/G2N/pfc_init_g2n.c", "Temporarily excluded"),
93 ("drivers/renesas/rzg/qos/G2E/qos_init_g2e_v10.c", "Temporarily excluded"),
94 ("drivers/renesas/rzg/qos/G2H/qos_init_g2h_v30.c", "Temporarily excluded"),
95 ("drivers/renesas/rzg/qos/G2N/qos_init_g2n_v10.c", "Temporarily excluded"),
Madhukar Pappireddydcb31f62021-05-06 11:36:36 -050096
Jacky Baib6cecc82021-06-07 09:49:46 +080097 # Exclude the following files of imx8mq as this platform is dropped
98 # from the CI. Put the files of this platform into a silent status.
99 ("plat/imx/imx8m/imx8mq/gpc.c", "Not currently used"),
100 ("plat/imx/imx8m/imx8mq/imx8mq_bl31_setup.c", "Not currently used"),
101 ("plat/imx/imx8m/imx8mq/imx8mq_psci.c", "Not currently used"),
Manish V Badarkhe8c227572022-11-04 08:56:25 +0000102
Raef Colesb05541a2023-02-02 13:01:40 +0000103 # Exclude the following files used for STM32MP host tools (cert_create)
Yann Gautier8508a812022-11-15 11:12:45 +0100104 ("plat/st/stm32mp1/stm32mp1_tbb_cert.c", "Used to build STM32MP cert_create"),
Manish V Badarkhe5ad31c42022-11-15 11:45:01 +0000105
Mate Toth-Pald37c1a72022-11-29 16:47:26 +0100106 # Exclude The following files used to wrap external test code
David Vinczed8ed5622024-02-23 17:00:12 +0100107 ("plat/arm/board/tc/rse_ap_test_stubs.c", "Only used for testing on arm/tc platform"),
108 ("plat/arm/board/tc/rse_ap_tests.c", "Only used for testing on arm/tc platform"),
109 ("plat/arm/board/tc/rse_ap_testsuites.c", "Only used for testing on arm/tc platform"),
Raef Colesfb290462023-01-23 13:51:47 +0000110
Mikael Olsson240b7652023-04-11 11:21:22 +0200111 # Exclude the following files used for Juno host tools (fiptool and cert_create)
112 ("plat/arm/board/juno/certificate/src/juno_tbb_cert.c", "Used to build Juno cert_create"),
113 ("plat/arm/board/juno/certificate/src/juno_tbb_ext.c", "Used to build Juno cert_create"),
114 ("plat/arm/board/juno/certificate/src/juno_tbb_key.c", "Used to build Juno cert_create"),
115 ("plat/arm/board/juno/fip/plat_def_uuid_config.c", "Used to build Juno fiptool"),
Fathi Boudra422bf772019-12-02 11:10:16 +0200116]