Skip to content
  • Jim Bos's avatar
    i8k: Tell gcc that *regs gets clobbered · 6b4e81db
    Jim Bos authored
    
    
    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: default avatarJim Bos <jim876@xs4all.nl>
    Cc: Andi Kleen <andi@firstfloor.org>
    Cc: Andreas Schwab <schwab@linux-m68k.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    6b4e81db