Re: [PATCH] soc: qcom: smem: fix qcom_smem_is_available and check if __smem is valid

From: Konrad Dybcio

Date: Fri Nov 21 2025 - 08:51:15 EST


On 11/21/25 10:11 AM, Christian Marangi wrote:
> Commit 7a94d5f31b54 ("soc: qcom: smem: better track SMEM uninitialized
> state") changed the usage of __smem and init now as an error pointer
> instead of NULL.
>
> qcom_smem_is_available() wasn't updated to reflect this change and also
> .qcom_smem_remove doesn't reset it on module exit.
>
> While at it also proced other expoert symbol if __smem is not set to a
> correct pointer.

I think that's a separate issue where we should inspect the impact
(or just mention "please call qcom_smem_is_available() first, probably)

Konrad