Skip to content

CRL_APB_RST_LPD_TOP redefinition warning #385

Description

@dozius

From what I can tell, this warning is generated because xfsbl_hw.h is being injected into psu_init.h by CMake.

list(PREPEND defs "#include \"xfsbl_hw.h\"\n\n")

CRL_APB_RST_LPD_TOP is defined in my HW designs generated psu_init.c and also in xfsbl_hw.h. The included board files under misc also define CRL_APB_RST_LPD_TOP and would have the same warning generated if used, so I suspect this isn't a problem with my particular HW design files.

#define CRL_APB_RST_LPD_TOP ((CRL_APB_BASEADDR) + 0X0000023CU)

#define CRL_APB_RST_LPD_TOP ( ( CRL_APB_BASEADDR ) + 0X0000023CU )

I removed the xfsbl_hw.h injection from CMakeLists.txt and was able to compile successfully without any errors or warnings. I'm not sure what the intended purpose of injecting that header is, maybe there are cases where it is needed, but it seems to only cause problems for me and doesn't appear to be needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions