This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch releases/13.0 in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 8c1ac9c093ec567b8933bbd4cc5eafea2ac18d43 Author: Jukka Laitinen <[email protected]> AuthorDate: Fri Jun 12 14:27:42 2026 +0300 drivers/input/button_upper.c: Fix compilation with CONFIG_DISABLE_ALL_SIGNALS The optional signal delivery should be disabled when signals support is disabled for the board. Signed-off-by: Jukka Laitinen <[email protected]> --- drivers/input/button_upper.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/input/button_upper.c b/drivers/input/button_upper.c index eeb9a67cb93..2375f9cf972 100644 --- a/drivers/input/button_upper.c +++ b/drivers/input/button_upper.c @@ -186,8 +186,10 @@ static void btn_enable(FAR struct btn_upperhalf_s *priv) /* OR in the signal events */ +#ifndef CONFIG_DISABLE_ALL_SIGNALS press |= opriv->bo_notify.bn_press; release |= opriv->bo_notify.bn_release; +#endif } /* Enable/disable button interrupts */ @@ -430,7 +432,9 @@ static int btn_close(FAR struct file *filep) /* Cancel any pending notification */ +#ifndef CONFIG_DISABLE_ALL_SIGNALS nxsig_cancel_notification(&opriv->bo_work); +#endif /* And free the open structure */ @@ -629,6 +633,7 @@ static int btn_ioctl(FAR struct file *filep, int cmd, unsigned long arg) case BTNIOC_REGISTER: { +#ifndef CONFIG_DISABLE_ALL_SIGNALS FAR struct btn_notify_s *notify = (FAR struct btn_notify_s *)((uintptr_t)arg); @@ -646,6 +651,9 @@ static int btn_ioctl(FAR struct file *filep, int cmd, unsigned long arg) btn_enable(priv); ret = OK; } +#else + ret = -ENOSYS; +#endif } break;
