This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit e46c2348ceae7628ec1d7130e0c405c3595cf5aa Author: Peter van der Perk <[email protected]> AuthorDate: Mon Jan 5 13:38:52 2026 +0100 kinetis: edma compile fix Refactoring didn't add the required spinlock Signed-off-by: Peter van der Perk <[email protected]> --- arch/arm/src/kinetis/kinetis_edma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/src/kinetis/kinetis_edma.c b/arch/arm/src/kinetis/kinetis_edma.c index a44cbc0be5a..699e4dd4c8c 100644 --- a/arch/arm/src/kinetis/kinetis_edma.c +++ b/arch/arm/src/kinetis/kinetis_edma.c @@ -144,6 +144,7 @@ struct kinetis_edma_s /* This array describes each DMA channel */ struct kinetis_dmach_s dmach[KINETIS_EDMA_NCHANNELS]; + spinlock_t lock; }; /**************************************************************************** @@ -223,8 +224,6 @@ static struct kinetis_edmatcd_s *kinetis_tcd_alloc(void) #if CONFIG_KINETIS_EDMA_NTCD > 0 static void kinetis_tcd_free_nolock(struct kinetis_edmatcd_s *tcd) { - irqstate_t flags; - /* Add the the TCD to the end of the free list and post the 'dsem', * possibly waking up another thread that might be waiting for * a TCD.
