Skip to content

Conversation

@wangchdo
Copy link
Contributor

Summary

sched/signal: Add support to disable partial signals

Fix dependency issue when signals are only partially enabled

Co-authored-by: guoshichao [email protected]
Signed-off-by: Chengdong Wang [email protected]

Impact

Fix dependency issue when signals are only partially enabled

Testing

ostest passed on rv-virt:smp64 when CONFIG_ENABLE_PARTIAL_SIGNALS=y

nsh> uname -a
NuttX 0.0.0 3503bbec44-dirty Dec 23 2025 11:32:43 risc-v rv-virt
nsh> ostest

(...)

smp_call_test: Call cpu 1, wait
smp_call_test: Call cpu 2, nowait
smp_call_test: Call cpu 2, wait
smp_call_test: Call cpu 3, nowait
smp_call_test: Call cpu 3, wait
smp_call_test: Call cpu 4, nowait
smp_call_test: Call cpu 4, wait
smp_call_test: Call cpu 5, nowait
smp_call_test: Call cpu 5, wait
smp_call_test: Call cpu 6, nowait
smp_call_test: Call cpu 6, wait
smp_call_test: Call cpu 7, nowait
smp_call_test: Call cpu 7, wait
smp_call_test: Call multi cpu, nowait
smp_call_test: Call in interrupt, wait
smp_call_test: Call multi cpu, wait
smp_call_test: Test success

Final memory usage:
VARIABLE  BEFORE   AFTER
======== ======== ========
arena     1fc23e0  1fc23e0
ordblks         1        7
mxordblk  1fb72f0  1fa4140
uordblks     b0f0    14df8
fordblks  1fb72f0  1fad5e8
user_main: Exiting
ostest_main: Exiting with status 0

@wangchdo wangchdo force-pushed the enable_disable_signals branch 2 times, most recently from fa98b58 to 9f91860 Compare January 14, 2026 12:55
@wangchdo wangchdo force-pushed the enable_disable_signals branch 2 times, most recently from b4b7a67 to d894b11 Compare January 14, 2026 15:23
@xiaoxiang781216
Copy link
Contributor

@wangchdo please fix:

Error: dhcpd.c:1559:1: error: 'dhcpd_signal_handler' defined but not used [-Werror=unused-function]
 1559 | dhcpd_signal_handler(int signo, FAR siginfo_t *info, FAR void *ctx)
      | ^~~~~~~~~~~~~~~~~~~~

  Fix dependency issue when signals are partially or fully enabled

Co-authored-by: guoshichao <[email protected]>
Signed-off-by: Chengdong Wang <[email protected]>
@wangchdo
Copy link
Contributor Author

@wangchdo please fix:

Error: dhcpd.c:1559:1: error: 'dhcpd_signal_handler' defined but not used [-Werror=unused-function]
 1559 | dhcpd_signal_handler(int signo, FAR siginfo_t *info, FAR void *ctx)
      | ^~~~~~~~~~~~~~~~~~~~

Done

@GUIDINGLI GUIDINGLI merged commit 60d814e into apache:master Jan 15, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants