This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

warning: function "CanIf_ControllerModeIndication" and "CanIf_RxIndication" declared implicitly

*Following compiler warnings are reported 

MCAL: ti-processor-sdk-rtos-j721e-evm-07_03_00_07

asc_MCAL: C:\work\workspace\ACP-8.8.4_TDA4VMCR5_25907\Tresos\plugins\McalExt_TS_T31D46M1I0R0\MCAL_Delivery\mcal\Can\src\Can_Mcan.c, 409:
warning: function "CanIf_ControllerModeIndication" declared implicitly
TestSequences: Can_ComTest_1 Can_ComTest_2
asc_MCAL: C:\work\workspace\ACP-8.8.4_TDA4VMCR5_25907\Tresos\plugins\McalExt_TS_T31D46M1I0R0\MCAL_Delivery\mcal\Can\src\Can_Mcan.c, 464:
warning: function "CanIf_ControllerModeIndication" declared implicitly
TestSequences: Can_ComTest_1 Can_ComTest_2
asc_MCAL: C:\work\workspace\ACP-8.8.4_TDA4VMCR5_25907\Tresos\plugins\McalExt_TS_T31D46M1I0R0\MCAL_Delivery\mcal\Can\src\Can_Mcan.c, 479:
warning: function "CanIf_ControllerModeIndication" declared implicitly
TestSequences: Can_ComTest_1 Can_ComTest_2
asc_MCAL: C:\work\workspace\ACP-8.8.4_TDA4VMCR5_25907\Tresos\plugins\McalExt_TS_T31D46M1I0R0\MCAL_Delivery\mcal\Can\src\Can_Mcan.c, 996:
warning: function "CanIf_ControllerModeIndication" declared implicitly
TestSequences: Can_ComTest_1 Can_ComTest_2
asc_MCAL: C:\work\workspace\ACP-8.8.4_TDA4VMCR5_25907\Tresos\plugins\McalExt_TS_T31D46M1I0R0\MCAL_Delivery\mcal\Can\src\Can_Mcan.c, 1006:
warning: function "CanIf_ControllerModeIndication" declared implicitly
TestSequences: Can_ComTest_1 Can_ComTest_2
asc_MCAL: C:\work\workspace\ACP-8.8.4_TDA4VMCR5_25907\Tresos\plugins\McalExt_TS_T31D46M1I0R0\MCAL_Delivery\mcal\Can\src\Can_Mcan.c, 1018:
warning: function "CanIf_ControllerModeIndication" declared implicitly
TestSequences: Can_ComTest_1 Can_ComTest_2
asc_MCAL: C:\work\workspace\ACP-8.8.4_TDA4VMCR5_25907\Tresos\plugins\McalExt_TS_T31D46M1I0R0\MCAL_Delivery\mcal\Can\src\Can_Mcan.c, 1134:
warning: function "CanIf_RxIndication" declared implicitly
TestSequences: Can_ComTest_1 Can_ComTest_2
asc_MCAL: C:\work\workspace\ACP-8.8.4_TDA4VMCR5_25907\Tresos\plugins\McalExt_TS_T31D46M1I0R0\MCAL_Delivery\mcal\Can\src\Can_Mcan.c, 1236:
warning: function "CanIf_RxIndication" declared implicitly
TestSequences: Can_ComTest_1 Can_ComTest_2
asc_MCAL: C:\work\workspace\ACP-8.8.4_TDA4VMCR5_25907\Tresos\plugins\McalExt_TS_T31D46M1I0R0\MCAL_Delivery\mcal\Can\src\Can_Priv.c, 154:
warning: function "CanIf_ControllerModeIndication" declared implicitly
TestSequences: Can_ComTest_1 Can_ComTest_2
asc_MCAL: C:\work\workspace\ACP-8.8.4_TDA4VMCR5_25907\Tresos\plugins\McalExt_TS_T31D46M1I0R0\MCAL_Delivery\mcal\Can\src\Can_Priv.c, 194:
warning: function "CanIf_ControllerModeIndication" declared implicitly
TestSequences: Can_ComTest_1 Can_ComTest_2

*Analysis*: In the file Can_Priv.c and Can_Mcan.c ,the function CanIf_ControllerModeIndication and CanIf_RxIndication is being called but there prototype (declaration) is there in CanIf_Cbk.h which is present in Bsw_stubs and the CanIf_Cbk.h is not included in Can_Priv.c and Can_Mcan.c files so that the compiler gets its declaration before the function is called and thus the compiler reports warning function declared implicitly

PLEASE LET US KNOW REGARDING THIS.

Regards.

Kamia

  • Kamia,

    Currently the CanIf_Cbk.h is included in src/Can_Priv.h, and this is included in both Can_Priv.c and Can_Mcan.c, so I do not see this error occurring. Was there any modification done to these files? Below I have the declarations in my environment:

    ~/include/sdk/ti-processor-sdk-rtos-j721e-evm-07_03_00_07/mcusw/mcal_drv/mcal/Can$ grep -nr CanIf_Cbk.h
    src/Can_Priv.h:83:#include "CanIf_Cbk.h"

    ~/include/sdk/ti-processor-sdk-rtos-j721e-evm-07_03_00_07/mcusw/mcal_drv/mcal/Can$ grep -nr Can_Priv.h
    src/Can_Priv.c:74:#include "Can_Priv.h"
    src/Can_Irq.c:74:#include "Can_Priv.h"
    src/Can.c:77:#include "Can_Priv.h"
    src/Can_Mcan.c:74:#include "Can_Priv.h"
    src/Can_Priv.h:64: *  \file     Can_Priv.h
    src/Can_Priv.h:430:/*  End of File: Can_Priv.h */

    Regards,

    Erick

  • Hi Erick,

    Yes it cleared my doubt ,the CanIf_Cbk.h is being included  and after that i don't see the warnings.

    Thanks for the clarification..this support ticket can be closed since the warnings are no longer faced.

    Regards,

    Kamia