Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame^] | 1 | Fix function protype mismatches |
| 2 | |
| 3 | These are flagged by gcc13 |
| 4 | avs_gic.c:241:1: error: conflicting types for 'val_gic_get_info' due to enum/integer mismatch; have 'uint32_t(uint32_t)' {aka 'unsigned int(unsigned int)'} [-Werror=enum-int-mismatch] |
| 5 | | 241 | val_gic_get_info(uint32_t type) |
| 6 | | | ^~~~~~~~~~~~~~~~ |
| 7 | |
| 8 | Upstream-Status: Submitted [https://github.com/ARM-software/sbsa-acs/pull/291] |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | |
| 11 | --- a/ShellPkg/Application/sbsa-acs/val/include/val_interface.h |
| 12 | +++ b/ShellPkg/Application/sbsa-acs/val/include/val_interface.h |
| 13 | @@ -155,7 +155,7 @@ typedef enum { |
| 14 | void val_wd_create_info_table(uint64_t *wd_info_table); |
| 15 | void val_wd_free_info_table(void); |
| 16 | uint32_t val_wd_execute_tests(uint32_t level, uint32_t num_pe); |
| 17 | -uint64_t val_wd_get_info(uint32_t index, uint32_t info_type); |
| 18 | +uint64_t val_wd_get_info(uint32_t index, WD_INFO_TYPE_e info_type); |
| 19 | uint32_t val_wd_set_ws0(uint32_t index, uint32_t timeout); |
| 20 | |
| 21 | |
| 22 | --- a/ShellPkg/Application/sbsa-acs/val/src/avs_gic.c |
| 23 | +++ b/ShellPkg/Application/sbsa-acs/val/src/avs_gic.c |
| 24 | @@ -238,7 +238,7 @@ val_get_cpuif_base(void) |
| 25 | @return 32-bit data |
| 26 | **/ |
| 27 | uint32_t |
| 28 | -val_gic_get_info(uint32_t type) |
| 29 | +val_gic_get_info(GIC_INFO_e type) |
| 30 | { |
| 31 | uint32_t rdbase_len; |
| 32 | |