-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix compile error #15441
fix compile error #15441
Conversation
[Experimental Bot, please feedback here] No, this PR does not meet the NuttX requirements. Here's why and how to fix it: Missing Information:
How to Improve the PR:
Example of a better Summary: "Fixes a compile error in the SystemView integration for the By providing more complete information, you'll make it easier for reviewers to understand and approve your PR. |
@hujun260 If you continue to make changes to the kernel code without any testing, I will have to reject all future submissions for merging into the community ! |
…er/config/SEGGER_RTT_Conf.h" This reverts commit 5e7c640. Signed-off-by: hujun5 <[email protected]>
Error: /github/workspace/sources/nuttx/include/nuttx/spinlock_type.h:57:3: error: unknown type name 'atomic_t' 368 57 | atomic_t owner; 369 | ^~~~~~~~ 370Error: /github/workspace/sources/nuttx/include/nuttx/spinlock_type.h:58:3: error: unknown type name 'atomic_t' 371 58 | atomic_t next; 372 | ^~~~~~~~ Signed-off-by: hujun5 <[email protected]>
Summary
fix compile error
Configuration/Tool: sim/segger
In file included from segger/SystemView/SEGGER/SEGGER_SYSVIEW.h:65,
from segger/SystemView/SEGGER/SEGGER_SYSVIEW_Int.h:64,
from segger/SystemView/SEGGER/SEGGER_SYSVIEW.c:146:
segger/SystemView/SEGGER/SEGGER_SYSVIEW.c: In function '_VPrintHost': Error: segger/SystemView/SEGGER/SEGGER_SYSVIEW_ConfDefaults.h:557:51: error: implicit declaration of function 'SEGGER_RTT_LOCK'; did you mean 'SEGGER_RTT_Read'? [-Werror=implicit-function-declaration]
557 | #define SEGGER_SYSVIEW_LOCK() SEGGER_RTT_LOCK()
| ^~~~~~~~~~~~~~~
segger/SystemView/SEGGER/SEGGER_SYSVIEW.c:387:35: note: in expansion of macro 'SEGGER_SYSVIEW_LOCK'
387 | #define RECORD_START(PacketSize) SEGGER_SYSVIEW_LOCK();
| ^~~~~~~~~~~~~~~~~~~
segger/SystemView/SEGGER/SEGGER_SYSVIEW.c:1005:5: note: in expansion of macro 'RECORD_START'
1005 | RECORD_START(SEGGER_SYSVIEW_INFO_SIZE + SEGGER_SYSVIEW_MAX_STRING_LEN + 2 * SEGGER_SYSVIEW_QUANTA_U32 + SEGGER_SYSVIEW_MAX_ARGUMENTS * SEGGER_SYSVIEW_QUANTA_U32);
| ^~~~~~~~~~~~
Error: segger/SystemView/SEGGER/SEGGER_SYSVIEW_ConfDefaults.h:570:51: error: implicit declaration of function 'SEGGER_RTT_UNLOCK'; did you mean 'SEGGER_RTT_Init'? [-Werror=implicit-function-declaration]
570 | #define SEGGER_SYSVIEW_UNLOCK() SEGGER_RTT_UNLOCK()
| ^~~~~~~~~~~~~~~~~
segger/SystemView/SEGGER/SEGGER_SYSVIEW.c:390:35: note: in expansion of macro 'SEGGER_SYSVIEW_UNLOCK'
390 | #define RECORD_END() SEGGER_SYSVIEW_UNLOCK()
| ^~~~~~~~~~~~~~~~~~~~~
segger/SystemView/SEGGER/SEGGER_SYSVIEW.c:1015:5: note: in expansion of macro 'RECORD_END'
1015 | RECORD_END();
Note: Please adhere to Contributing Guidelines.
Impact
none
Testing
ci