Discussion:
spin_unlock_irqrestore parse error
(too old to reply)
Bill
2008-02-01 00:56:08 UTC
Permalink
In my device driver module, when I call spin_unlock_irqrestore(&lock,
flags) after previously calling spin_lock_irqsave(&lock, flags), I get
the following error:

error: parse error before '-' token


I am running Linux 2.6.10 on an MPC8248 processor.
Juergen Beisert
2008-02-01 10:06:54 UTC
Permalink
Post by Bill
In my device driver module, when I call spin_unlock_irqrestore(&lock,
flags) after previously calling spin_lock_irqsave(&lock, flags), I get
error: parse error before '-' token
Try to run a simple:

linux-2.6.10 $ make clean
linux-2.6.10 $ make drivers/<path/to/your/driver>/<your-drivername>.i

This will run the preprocessor only on your source. Now you should be able
to find the reason. As you are crosscompiling, don't forget the ARCH= and
CROSS_COMPILE=.

JB

Loading...