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


The following commit(s) were added to refs/heads/master by this push:
     new d11307b2363 sched/irq: Avoid same static function name in different 
files
d11307b2363 is described below

commit d11307b23630e992ce25c5dbe20801217c7637f9
Author: pangzhen1 <[email protected]>
AuthorDate: Mon Aug 11 19:22:08 2025 +0800

    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 <[email protected]>
---
 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);

Reply via email to