Re: [PATCH -v3 1/7] kexec jump: clean up #ifdef and comments

From: Andrew Morton
Date: Tue Aug 12 2008 - 23:50:55 EST


On Tue, 12 Aug 2008 11:14:21 +0800 Huang Ying <ying.huang@xxxxxxxxx> wrote:

> xchg(&kexec_lock, 0);

kernel/kexec.c: In function 'kernel_kexec':
kernel/kexec.c:1501: warning: value computed is not used

Is there any reason why we cannot use the more conventional
test_and_set_bit() etc, rather than this peculiarity?

Or perhaps spin_trylock?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/