]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(gpt_rme): fix compilation error for gpt_rme.c
authorAlexeiFedorov <Alexei.Fedorov@arm.com>
Fri, 9 Dec 2022 11:27:14 +0000 (11:27 +0000)
committerAlexeiFedorov <Alexei.Fedorov@arm.com>
Fri, 9 Dec 2022 11:27:14 +0000 (11:27 +0000)
This patch fixes compilation error for gpt_init_l0_tables()
function in lib/gpt_rme/gpt_rme.c reported by GCC 13.0.0:

"gpt_rme/gpt_rme.c:765:5: error: conflicting types for
'gpt_init_l0_tables' due to enum/integer mismatch;
have 'int(unsigned int,  uintptr_t,  size_t)'
{aka 'int(unsigned int,  long unsigned int,  long unsigned int)'}"

Signed-off-by: AlexeiFedorov <Alexei.Fedorov@arm.com>
Change-Id: I38f28be290337e7d37d59b52cad7bde5b96b8d51

lib/gpt_rme/gpt_rme.c

index a6e17a34d06a4424d11b82f26c72fab09684b205..f5353cb140074a3cbcce370bc1cdc2fdbdcd4102 100644 (file)
@@ -762,7 +762,7 @@ void gpt_disable(void)
  * Return
  *   Negative Linux error code in the event of a failure, 0 for success.
  */
-int gpt_init_l0_tables(unsigned int pps, uintptr_t l0_mem_base,
+int gpt_init_l0_tables(gpccr_pps_e pps, uintptr_t l0_mem_base,
                       size_t l0_mem_size)
 {
        int ret;