Nope. That needs to be an "unsigned long".
But more importantl, why not just make it a lock in the first place?
static DEFINE_SPINLOCK(kexec_lock);
#define kexec_trylock() spin_trylock(&kexec_lock)
#define kexec_unlock() spin_unlock(&kexec_lock)
and then you get it all right and clear and obvious.
Yeah, and I didn't check whether there is anything that is supposed to be
able to sleep. If there is, use a mutex instead of a spinlock, of course.
Linus
--