blob: 392ad4a506255c6209a6dc00cfcab415c4687311 [file] [log] [blame]
Fathi Boudra422bf772019-12-02 11:10:16 +02001#
Alexei Fedorov20fdf502020-07-27 17:36:38 +01002# Copyright (c) 2019-2020, Arm Limited. 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"),
19 ("drivers/marvell/comphy/phy-comphy-3700.c", "File is actually analyzed. False positive"),
20 ("drivers/marvell/comphy/phy-comphy-cp110.c", "File is actually analyzed. False positive"),
21 ("drivers/marvell/gwin.c", "Not used by any upstream marvell platform"),
22 ("drivers/marvell/mochi/ap807_setup.c", "Not used by any upstream marvell platform"),
23 ("drivers/renesas/rcar/ddr/ddr_b/boot_init_dram_config.c",
24 "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"),
25 ("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"),
26 ("drivers/st/scmi-msg/.*", "Not used by any upstream platform"),
Fathi Boudra422bf772019-12-02 11:10:16 +020027
Alexei Fedorov20fdf502020-07-27 17:36:38 +010028 ("plat/arm/board/fvp/fconf/fconf_nt_config_getter.c", "Not currently used. Future functionality"),
Zelalemc9531f82020-08-04 15:37:08 -050029 ("plat/marvell/armada/a8k/common/plat_bl1_setup.c", "Not used by any upstream marvell platform"),
30 ("plat/mediatek/common/custom/oem_svc.c", "Used only by mt6795 which is unsupported platform"),
31 ("plat/mediatek/mt6795/.*", "This platform fails to build and is not supported by mediatek"),
32 ("plat/mediatek/mt8173/plat_mt_gic.c", "Deprecated code"),
33 ("plat/nvidia/tegra/common/tegra_gicv3.c", "Not used by any upstream nvidia platform"),
34 ("plat/qemu/common/sp_min/sp_min_setup.c", "Not used in any upstream platform - see GENFW-2164"),
35 ("plat/rockchip/rk3399/drivers/m0/.*", "Work around the lack of support for the M0 compiler in the scripts"),
Fathi Boudra422bf772019-12-02 11:10:16 +020036
Zelalemc9531f82020-08-04 15:37:08 -050037 # The following block is excluding files that are impossible to include in a build due to a missing file
38 # this should be removed as soon as it would be possible to build stingray platform with SCP_BL2 option
39 ("drivers/brcm/iproc_gpio.c", "Cannot be built due to the missing m0_ipc.h file"),
40 ("drivers/brcm/scp.c", "Cannot be built due to the missing m0_ipc.h file"),
41 ("drivers/brcm/spi/iproc_qspi.c", "Cannot be built due to the missing m0_ipc.h file"),
42 ("drivers/brcm/spi/iproc_spi.c", "Cannot be built due to the missing m0_ipc.h file"),
43 ("drivers/brcm/spi_flash.c", "Cannot be built due to the missing m0_ipc.h file"),
44 ("drivers/brcm/spi_sf.c", "Cannot be built due to the missing m0_ipc.h file"),
45 ("plat/brcm/board/common/bcm_elog_ddr.c", "Cannot be built due to the missing m0_ipc.h file"),
46 ("plat/brcm/board/stingray/src/brcm_pm_ops.c", "Cannot be built due to the missing m0_ipc.h file"),
47 ("plat/brcm/board/stingray/src/ncsi.c", "Cannot be built due to the missing m0_ipc.h file"),
48 ("plat/brcm/board/stingray/src/scp_cmd.c", "Cannot be built due to the missing m0_ipc.h file"),
49 ("plat/brcm/board/stingray/src/scp_utils.c", "Cannot be built due to the missing m0_ipc.h file"),
50 ("plat/brcm/common/brcm_mhu.c", "Cannot be built due to the missing m0_ipc.h file"),
51 ("plat/brcm/common/brcm_scpi.c", "Cannot be built due to the missing m0_ipc.h file"),
Fathi Boudra422bf772019-12-02 11:10:16 +020052
Zelalemc9531f82020-08-04 15:37:08 -050053 ("lib/compiler-rt/.*", "3rd party libraries will not be fixed"),
54 ("lib/libfdt/.*", "3rd party libraries will not be fixed"),
Madhukar Pappireddy28cb9812020-09-14 09:52:56 -050055 ("lib/libc/strlcat.c", "Not used by any upstream platform"),
Fathi Boudra422bf772019-12-02 11:10:16 +020056
57 ("tools/.*", "Host tools"),
Fathi Boudra422bf772019-12-02 11:10:16 +020058]