public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Why this error
@ 2002-08-29 21:16 Xiaogeng (Shawn) Jin
  0 siblings, 0 replies; only message in thread
From: Xiaogeng (Shawn) Jin @ 2002-08-29 21:16 UTC (permalink / raw)
  To: linux-mtd

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-08-29 21:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-29 21:16 Why this error Xiaogeng (Shawn) Jin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox