]> code.ossystems Code Review - meta-freescale.git/commit
qoriq-atf: fix array-bounds build failure 886/head
authorTing Liu <ting.liu@nxp.com>
Wed, 13 Oct 2021 07:32:32 +0000 (13:02 +0530)
committerTing Liu <ting.liu@nxp.com>
Wed, 13 Oct 2021 07:36:31 +0000 (15:36 +0800)
commitff40198bf5c0e70c63b350bbe6b612bc0559e55f
treec525ee0140f9738d0a668685281631921985189a
parent62d888821db5bb4ebb83e10c43b245cfe091dec3
qoriq-atf: fix array-bounds build failure

Fix array-bounds build error:
common/runtime_svc.c: In function 'handle_runtime_svc':
common/runtime_svc.c:55:28: error: array subscript 'rt_svc_desc_t {aka const struct rt_svc_desc}[0]' is partly outside array bounds of 'uintptr_t[1]' {aka 'long unsigned int[1]'} [-Werror=array-bounds]
   55 |         return rt_svc_descs[index].handle(smc_fid, x1, x2, x3, x4, cookie,
      |                ~~~~~~~~~~~~^~~~~~~
In file included from common/runtime_svc.c:10:
include/common/runtime_svc.h:125:18: note: while referencing '__RT_SVC_DESCS_START__'
  125 | extern uintptr_t __RT_SVC_DESCS_START__;
      |                  ^~~~~~~~~~~~~~~~~~~~~~
  CC      lib/el3_runtime/aarch64/context_mgmt.c
cc1: all warnings being treated as errors

Signed-off-by: Ting Liu <ting.liu@nxp.com>
recipes-bsp/atf/files/0001-Clean-usage-of-void-pointers-to-access-symbols.patch [new file with mode: 0644]
recipes-bsp/atf/qoriq-atf_1.5.bb