jwang12340 opened a new pull request, #17928: URL: https://github.com/apache/nuttx/pull/17928
## Summary This PR fixes a compiler error in the CAN sender driver by adding the missing container_of macro definition. Issue The CAN sender driver (drivers/can/can_sender.c) was missing the necessary include file for the container_of macro, causing compilation failures when the CAN sender functionality is enabled. Solution Added #include <nuttx/nuttx.h> header to provide the container_of macro definition. This is a minimal, non-invasive fix that aligns with standard NuttX conventions for header includes. ## Impact Stability: Very low risk. Only fixes a compilation error with no functional changes. Compatibility: Backward compatible. The header include is standard and widely used. Code Quality: Minimal change following NuttX conventions. Breaking Changes: None. ## Testing Test Environment Host OS: Ubuntu 22.04 x86_64 NuttX Configuration: sim:nsh with CAN driver enabled Build Tool: CMake Test Steps Build Configuration with CAN Support passed -- 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]
