[PATCH v10 07/24] mailbox: Add RISC-V SBI message proxy (MPXY) based mailbox driver

Paul Walmsley pjw at kernel.org
Thu Sep 25 12:16:30 PDT 2025


On Thu, 25 Sep 2025, Anup Patel wrote:

> The usage of channel_ids array is limited only to this function
> (mpxy_mbox_populate_channels()) hence we are using scoped
> kcalloc() so that channel_ids will be automatically freed when
> mpxy_mbox_populate_channels() returns.
> (Refer, "__free(kfree)" attribute in the channel_idsm declaration)

Thanks, I missed that part.  Looks fine the way you posted it.


- Paul



More information about the linux-riscv mailing list