From d11307b23630e992ce25c5dbe20801217c7637f9 Mon Sep 17 00:00:00 2001 From: pangzhen1 Date: Mon, 11 Aug 2025 19:22:08 +0800 Subject: [PATCH] sched/irq: Avoid same static function name in different files In irq_attach_thread.c and irq_attach_wqueue.c, there are static functions named irq_default_handler with the same name, which can be easily misunderstood. Therefore, they have been renamed to different functions. Signed-off-by: pangzhen1 --- sched/irq/irq_attach_thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sched/irq/irq_attach_thread.c b/sched/irq/irq_attach_thread.c index 5e48a67f551..ef5f98e599c 100644 --- a/sched/irq/irq_attach_thread.c +++ b/sched/irq/irq_attach_thread.c @@ -67,7 +67,7 @@ static pid_t g_irq_thread_pid[NR_IRQS]; * Useful for oneshot interrupts. */ -static int irq_default_handler(int irq, FAR void *regs, FAR void *arg) +static int irq_thread_default_handler(int irq, FAR void *regs, FAR void *arg) { FAR struct irq_thread_info_s *info = arg; int ret = IRQ_WAKE_THREAD; @@ -101,7 +101,7 @@ static int isr_thread_main(int argc, FAR char *argv[]) nxsem_init(&sem, 0, 0); - irq_attach(irq, irq_default_handler, &info); + irq_attach(irq, irq_thread_default_handler, &info); #if !defined(CONFIG_ARCH_NOINTC) up_enable_irq(irq);