Hi,
We are using AM5718 processor in our custom module.
When we enable the GPMC driver in uboot, the following compiler error observed.
CC drivers/memory/ti-gpmc.o
In file included from ./arch/arm/include/asm/arch/sys_proto.h:16,
from drivers/memory/ti-gpmc.c:9:
./arch/arm/include/asm/ti-common/sys_proto.h:9:1: warning: data definition has no type or storage class
9 | DECLARE_GLOBAL_DATA_PTR;
| ^~~~~~~~~~~~~~~~~~~~~~~
./arch/arm/include/asm/ti-common/sys_proto.h:9:1: warning: type defaults to ‘int’ in declaration of ‘DECLARE_GLOBAL_DATA_PTR’ [-Wimplicit-int]
./arch/arm/include/asm/ti-common/sys_proto.h: In function ‘uboot_loaded_by_spl’:
./arch/arm/include/asm/ti-common/sys_proto.h:38:6: error: ‘gd’ undeclared (first use in this function)
38 | if (gd->arch.omap_ch_flags & CH_FLAGS_CHSETTINGS)
| ^~
./arch/arm/include/asm/ti-common/sys_proto.h:38:6: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:265: recipe for target 'drivers/memory/ti-gpmc.o' failed
make[2]: *** [drivers/memory/ti-gpmc.o] Error 1
CC drivers/mtd/nand/raw/omap_gpmc.o
scripts/Makefile.build:419: recipe for target 'drivers/memory' failed
make[1]: *** [drivers/memory] Error 2
make[1]: *** Waiting for unfinished jobs....
CC lib/display_options.o
The SDK package we are using is PROCESSOR-SDK-LINUX-RT-AM57X 08.02.01.00.
Kindly suggest on this issue.
Regards,
Moorthi S