EXTERNC not needed here

This commit is contained in:
rusEFI LLC 2025-02-13 13:52:03 -05:00 committed by rusefillc
parent 0da36b32a9
commit a030bbf216
5 changed files with 6 additions and 6 deletions

View File

@ -30,7 +30,7 @@
/*
* Stack debugging
*/
EXTERNC int getRemainingStack(thread_t *otp);
int getRemainingStack(thread_t *otp);
int CountFreeStackSpace(const void* wabase);
#define assertStackVoid(message, code, desiredAvailableStack) { if (getCurrentRemainingStack() < desiredAvailableStack) { firmwareError(code, "stack: %s", message); return; } }

View File

@ -161,7 +161,7 @@ extern uint32_t __main_stack_base__;
typedef struct port_intctx intctx_t;
EXTERNC int getRemainingStack(thread_t *otp) {
int getRemainingStack(thread_t *otp) {
#if CH_DBG_ENABLE_STACK_CHECK
// this would dismiss coverity warning - see http://rusefi.com/forum/viewtopic.php?f=5&t=655
// coverity[uninit_use]

View File

@ -174,7 +174,7 @@ int getAdcChannelPin(adc_channel_e hwChannel) {
#endif /* HAL_USE_ADC */
EXTERNC int getRemainingStack(thread_t *otp) {
int getRemainingStack(thread_t *otp) {
// todo: would stm32 code actually work here since similar Cortex?
return 888888;
}

View File

@ -149,7 +149,7 @@ void jump_to_bootloader() {
}
#endif /* EFI_DFU_JUMP */
EXTERNC int getRemainingStack(thread_t *otp) {
int getRemainingStack(thread_t *otp) {
// todo: would stm32 code actually work here since similar Cortex?
return 888888;
}

View File

@ -189,7 +189,7 @@ extern uint32_t __main_stack_base__;
typedef struct port_intctx intctx_t;
EXTERNC int getRemainingStack(thread_t *otp) {
int getRemainingStack(thread_t *otp) {
#if CH_DBG_ENABLE_STACK_CHECK
// this would dismiss coverity warning - see http://rusefi.com/forum/viewtopic.php?f=5&t=655
// coverity[uninit_use]