As I tried to compile yaffs under ydi mode in
our system,I found the definition of ¡°kmalloc¡± is not consistent with the usage
in other sources code.
As defined in ydirectenv.h:
#define kmalloc(x,flags) yaffsfs_malloc(x)
But when in yaffs_flashif.c,it is used as
that:
kmalloc(sizeof(yflash_Block *) *
ramdisk.nBlocks)
the second parameter is lost.
Is it a mistake or I¡¯m not understand it
correct?
----------
Regards,
Ezio