yangsong8-a1 commented on PR #22283:
URL: https://github.com/apache/nuttx/pull/22283#issuecomment-7212830358

   > `arch/x86_64/src/intel64/intel64_checkstack.c` uses `addrenv_select()` and 
`addrenv_restore()` (lines 166 and 175, under `CONFIG_ARCH_ADDRENV`) and got 
their prototypes only through `nuttx/sched.h`. It is built with 
`CONFIG_STACK_COLORATION`, which no x86_64 defconfig sets, so CI does not see 
it. qemu-intel64:knsh_romfs with `CONFIG_STACK_COLORATION=y` builds on the 
merge base and fails on this PR:
   > 
   > ```
   > intel64/intel64_checkstack.c:166:7: error: implicit declaration of 
function 'addrenv_select'; did you mean 'up_addrenv_select'? 
[-Wimplicit-function-declaration]
   > intel64/intel64_checkstack.c:175:7: error: implicit declaration of 
function 'addrenv_restore'; did you mean 'up_addrenv_destroy'? 
[-Wimplicit-function-declaration]
   > ```
   > 
   > Fix: add `#include <nuttx/addrenv.h>` to `intel64_checkstack.c`, as this 
PR does for `arm64_checkstack.c`.
   > 
   > Also, the message of the first commit says "This commit removed the 
stdint.h, wqueue.h and atomic.h from the addrenv.h", but the PR does not change 
`include/nuttx/addrenv.h`. Fix: describe what the commit does (remove 
`nuttx/addrenv.h` from `nuttx/sched.h`, `nuttx/lib/elf.h` and 
`libs/libc/elf/elf.h`, and add the direct includes).
   
   @casaroli  Changes have been made; please review again. Thank you.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to