anjiahao1 opened a new pull request, #22515:
URL: https://github.com/apache/nuttx/pull/22515

   ## Summary
   
   Fix the build of mm/mempool/mempool.c when backtrace recording is
   enabled without procfs.
   
   mempool_add_backtrace() reads pool->procfs.backtrace, but the procfs
   member only exists when CONFIG_FS_PROCFS is enabled and procfs is not
   excluded.  With CONFIG_MM_BACKTRACE > 0 and
   CONFIG_FS_PROCFS_EXCLUDE_MEMPOOL=y the file does not compile.  Guard
   the procfs branch and keep the fallback unconditional.
   
   ## Impact
   
   * Is new feature added? NO - build fix.
   * Impact on user: NO
   * Impact on build: YES - fixes a configuration that did not compile.
   * Impact on hardware: NO
   * Impact on documentation: NO
   * Impact on security: NO
   * Impact on compatibility: NO
   
   ## Testing
   
   Build host: Linux x86_64, gcc 13.3.
   
   ```
   tools/configure.sh -a <apps> sim:nsh
   # enable CONFIG_MM_BACKTRACE=4 and CONFIG_FS_PROCFS_EXCLUDE_MEMPOOL=y
   make -j10
   ```
   
   The build completes with the guarded code compiled in; the same
   configuration fails to compile without this change.
   
   ## PR verification
   
   * [x] This PR introduces only one functional change.
   * [x] I have updated all required description fields above.
   * [x] My PR adheres to Contributing Guidelines and Documentation.
   * [ ] My PR is still work in progress (not ready for review).
   * [x] My PR is ready for review and can be safely merged into a codebase.
   


-- 
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