Skip to contentSkip to conversation

Why this error

DISCUSSION Xiaogeng (Shawn) Jin 1 participant 1 message Aug 29, 2002 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,

I use the following code to get mtd device pointer:

    mtd = get_mtd_device(NULL, MTD_MINOR);

The compiler always complains that parse error before ; /* MTD_MINOR is a defined macro. */

But when I call get_mtd_device() in this way, no complain at all.

    int mtd_minor = MTD_MINOR;
    mtd = get_mtd_device(NULL, mtd_minor);

Why does this error happen? Anybody encountered such errors before?

Thanks.

- Shawn.