Why this error
Xiaogeng (Shawn) Jin
xjin at redswitch.com
Thu Aug 29 17:16:53 EDT 2002
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.
More information about the linux-mtd
mailing list