Skip to content
Commit 422250d3 authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

mm: intel_adsp_mtl_tlb: suppress sparse address space warnings



There are various call to z_soc_cached_ptr() which returns values
in the cached address space and are stored in temporary variables
that are not marked as in the cached address space. This results
in sparse complaining about discarding the cached address space
attribute. These temporary variables are then passed to other
internal memory management related functions which do not have
the concept of cached address space (as it is currently Xtensa
specific). Because of this, we cannot change the signature of
these functions. Instead, we force a change of address space
when those temporary variables are being assigned to suppress
sparse warnings.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 618a478d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment