i8k: Tell gcc that *regs gets clobbered
commitf0d610fe2700397bc58fe9f255fa2186bf3b0b9b
authorJim Bos <jim876@xs4all.nl>
Sat, 13 Nov 2010 11:13:53 +0000 (13 12:13 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 23:04:44 +0000 (9 16:04 -0700)
tree1178081320e8b9dc94d24e4d9774db74b4351f90
parent41a832836d268172869e1ac965596b472dd13a92
i8k: Tell gcc that *regs gets clobbered

commit 6b4e81db2552bad04100e7d5ddeed7e848f53b48 upstream.

More recent GCC caused the i8k driver to stop working, on Slackware
compiler was upgraded from gcc-4.4.4 to gcc-4.5.1 after which it didn't
work anymore, meaning the driver didn't load or gave total nonsensical
output.

As it turned out the asm(..) statement forgot to mention it modifies the
*regs variable.

Credits to Andi Kleen and Andreas Schwab for providing the fix.

Signed-off-by: Jim Bos <jim876@xs4all.nl>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/i8k.c