Home
last modified time | relevance | path

Searched hist:e221a1da97d97a9b452f8be78bd14333bb5605aa (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/soc/qcom/
H A Dsmem.cdiff e221a1da97d97a9b452f8be78bd14333bb5605aa Tue Apr 10 17:25:38 CDT 2018 Alex Elder <elder@linaro.org> soc: qcom: smem: return proper type for cached entry functions

What phdr_to_last_uncached_entry() returns is the address of the
start of the free space following all allocated uncached entries.
It really doesn't refer to an actual (initialized) private entry
structure. Similarly phdr_to_last_cached_entry() returns the
address of the end of free space, preceding the last allocated cache
entry. Change both functions' return type to be pointer to void
to reflect this.

Meanwhile, phdr_to_first_cached_entry() really *does* point to a
private entry structure, so change its return type to reflect
this fact.

Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>