diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2023-05-01 00:29:11 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2023-05-18 10:08:15 +0000 |
commit | e17fe4db0f256ee4fb97dcfd6b9f7f55c966b190 (patch) | |
tree | 54f2d10480253741ad4a9296b6cc4ecb0bf61fde /src | |
parent | 177bafd4cccf505df0d02ace0d235af78cac4d8a (diff) | |
download | riscv-openocd-e17fe4db0f256ee4fb97dcfd6b9f7f55c966b190.zip riscv-openocd-e17fe4db0f256ee4fb97dcfd6b9f7f55c966b190.tar.gz riscv-openocd-e17fe4db0f256ee4fb97dcfd6b9f7f55c966b190.tar.bz2 |
pld: validate exported functions by including its own .h
Let source files to include its file .h to validate the exported
prototypes.
Detected through 'sparse' tool.
Change-Id: I217c2903fdb19e1a2cce39d2536a903c3d72f3f7
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7664
Tested-by: jenkins
Diffstat (limited to 'src')
-rw-r--r-- | src/pld/certus.c | 1 | ||||
-rw-r--r-- | src/pld/ecp2_3.c | 1 | ||||
-rw-r--r-- | src/pld/ecp5.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/pld/certus.c b/src/pld/certus.c index 692ea19..1309c1b 100644 --- a/src/pld/certus.c +++ b/src/pld/certus.c @@ -9,6 +9,7 @@ #include "config.h" #endif +#include "certus.h" #include "lattice.h" #include "lattice_cmd.h" diff --git a/src/pld/ecp2_3.c b/src/pld/ecp2_3.c index 6826d0b..b1c2833 100644 --- a/src/pld/ecp2_3.c +++ b/src/pld/ecp2_3.c @@ -9,6 +9,7 @@ #include "config.h" #endif +#include "ecp2_3.h" #include "lattice.h" #define LSCC_REFRESH 0x23 diff --git a/src/pld/ecp5.c b/src/pld/ecp5.c index 298b55f..2e1009b 100644 --- a/src/pld/ecp5.c +++ b/src/pld/ecp5.c @@ -9,6 +9,7 @@ #include "config.h" #endif +#include "ecp5.h" #include "lattice.h" #include "lattice_cmd.h" |