Re: [PATCH v3] tee: remove TZMEM_MODE_GENERIC

From: Nathan Chancellor

Date: Mon Aug 31 2026 - 20:27:55 EST


Hi folks,

On Fri, Aug 07, 2026 at 12:05:13PM -0700, Nathan Chancellor wrote:
> On Fri, Aug 07, 2026 at 06:50:41PM +0100, Julian Braha wrote:
> > 'select' does not work on config options in a 'choice', so currently it is
> > possible to enable QCOMTEE without QCOM_TZMEM_MODE_SHMBRIDGE, even though
> > this is needed at runtime.
> >
> > There are no users of the generic allocator option,
> > QCOM_TZMEM_MODE_GENERIC, so let's remove it. Then, we can remove the
> > containing choice..endchoice, which allows the 'select' to work as
> > intended.
> >
> > Suggested-by: Arnd Bergmann <arnd@xxxxxxxx>
> > Signed-off-by: Julian Braha <julianbraha@xxxxxxxxx>
...

> A note to the maintainers: We would like to turn selecting a choice
> symbol into a hard error in 7.4, so please consider picking this up for
> 7.3-rc1.

I would like to pick up

https://lore.kernel.org/20260804-kconfig-warn-on-dead-select-for-choice-value-v1-1-e5c9a274d291@xxxxxxxxxx/

for 7.4 but this was the only patch that did not make 7.3-rc1. Could I
take it via the Kconfig tree with an ack or be given a shared branch so
that I can pull it in before I take the above patch?

> > drivers/firmware/qcom/Kconfig | 26 +++++---------------------
> > drivers/firmware/qcom/qcom_tzmem.c | 4 ++--
> > 2 files changed, 7 insertions(+), 23 deletions(-)

--
Cheers,
Nathan