Recently this warning started showing up in builds:

icmp/icmp_netpoll.c: In function 'icmp_poll_eventhandler':
icmp/icmp_netpoll.c:129:11: warning: implicit declaration of function
'nxsem_post'; did you mean 'sem_post'?
[-Wimplicit-function-declaration]
            nxsem_post(info->fds->sem);
            ^~~~~~~~~~
            sem_post

Caused by removal of include of nuttx/kmalloc.h, which includes
nuttx/userspace.h, which includes pthread.h, which includes sched.h,
which includes semaphore.h.

In other words, icmp/icmp_netpoll.c should include semaphore.h directly.
nxsem_post() is declared in nuttx/sempahore.h, not in semaphore.  So I don't see how this could solve the problem.
Patch attached.

I don't see anything attached.

Greg


Reply via email to